ProcessContext

Audio processing context. For each processing block the host provides timing information and musical parameters that can change over time. For a host that supports jumps (like cycle) it is possible to split up a processing block into multiple parts in order to provide a correct project time inside of every block, but this behaviour is not mandatory. Since the timing will be correct at the beginning of the next block again, a host that is dependent on a fixed processing block size can choose to neglect this problem. \see IAudioProcessor, ProcessData

Members

Aliases

StatesAndFlags
alias StatesAndFlags = int

Transport state & other flags

Enums

kPlaying
anonymousenum kPlaying
Undocumented in source.

Variables

barPositionMusic
TQuarterNotes barPositionMusic;

< last bar start position, in quarter notes

chord
Chord chord;

< musical info

continousTimeSamples
TSamples continousTimeSamples;

< project time, without loop (optional)

cycleEndMusic
TQuarterNotes cycleEndMusic;

< cycle end in quarter notes

cycleStartMusic
TQuarterNotes cycleStartMusic;

< cycle start in quarter notes

frameRate
FrameRate frameRate;

< frame rate

projectTimeMusic
TQuarterNotes projectTimeMusic;

< musical position in quarter notes (1.0 equals 1 quarter note)

projectTimeSamples
TSamples projectTimeSamples;

< project time in samples (always valid)

sampleRate
double sampleRate;

< current sample rate (always valid)

samplesToNextClock
int32 samplesToNextClock;

< MIDI Clock Resolution (24 Per Quarter Note), can be negative (nearest)

smpteOffsetSubframes
int32 smpteOffsetSubframes;

< SMPTE (sync) offset in subframes (1/80 of frame)

state
uint32 state;

< a combination of the values from \ref StatesAndFlags

systemTime
int64 systemTime;

< system time in nanoseconds (optional)

tempo
double tempo;

< tempo in BPM (Beats Per Minute)

timeSigDenominator
int32 timeSigDenominator;

< time signature denominator (e.g. 4 for 3/4)

timeSigNumerator
int32 timeSigNumerator;

< time signature numerator (e.g. 3 for 3/4)

Meta