resonance 1.0.1
Loading...
Searching...
No Matches
tempomap.h
Go to the documentation of this file.
1#pragma once
2
3#include "app/attachment.h"
4
5namespace Sch {
6
43class TempoMap : public Attachment {
44public:
52 TempoMap(int nMicrosecondsPerQuarter);
53
62 virtual ~TempoMap();
63
76 void SetTempo(int nMicrosecondsPerQuarter, long long nTick);
77
80
83
93 long long mCeilingBias;
94
97};
98
99} // namespace Sch
Attachment()
Definition attachment.h:26
long long mOriginNanoseconds
Scheduler time, in nanoseconds, that song position zero maps to.
Definition tempomap.h:82
TempoMap(int nMicrosecondsPerQuarter)
Start a map at the requested tempo, with song position zero at scheduler time zero.
int mMicrosecondsPerQuarter
The current tempo, in microseconds per quarter note.
Definition tempomap.h:96
long long mNanosecondsPerTick
Nanoseconds each MIDI tick lasts at the current tempo.
Definition tempomap.h:79
long long mCeilingBias
Numerator bias that turns the scheduler-time-to-tick division into a rounding-up one.
Definition tempomap.h:93
void SetTempo(int nMicrosecondsPerQuarter, long long nTick)
Change the tempo from the requested song position onwards.
virtual ~TempoMap()
Release the map.
Scheduling of timed commands.
Definition activefilter.h:9