OMIDIV
CookedMidi.TempoMap_ Class Reference

Stores the tempo changes within the midi. More...

Public Member Functions

void Clear ()
 
void Set (long timeMicros, uint tempoMicros)
 
void UpdateChanges ()
 Applies changes made with Set.
 
long uint tempoMicros GetAtIndex (int index)
 
int? GTIndex (long timeMicros)
 
long uint? tempoMicros GT (long timeMicros)
 
int? GTEIndex (long timeMicros)
 
long uint? tempoMicros GTE (long timeMicros)
 
int? LTIndex (long timeMicros)
 
long uint? tempoMicros LT (long timeMicros)
 
int? LTEIndex (long timeMicros)
 
long uint? tempoMicros LTE (long timeMicros)
 

Public Attributes

long timeMicros
 Returns the tempo at a given time in microseconds, as well as the time where it is set.
 

Properties

int Count [get]
 
long uint tempoMicros this[long timeMicros] [get]
 

Detailed Description

Stores the tempo changes within the midi.

Member Function Documentation

◆ GTEIndex()

int? CookedMidi.TempoMap_.GTEIndex ( long timeMicros)
Returns
The index of the tempo change at or after timeMicros , or null if there is no next tempo change.

◆ GTIndex()

int? CookedMidi.TempoMap_.GTIndex ( long timeMicros)
Returns
The index of the next tempo change after (not including) timeMicros , or null if there is no next tempo change.

◆ LTEIndex()

int? CookedMidi.TempoMap_.LTEIndex ( long timeMicros)
Returns
The index of the tempo change at or before timeMicros , or null if there is no previous tempo change.

◆ LTIndex()

int? CookedMidi.TempoMap_.LTIndex ( long timeMicros)
Returns
The index of the previous tempo change before (not including) timeMicros , or null if there is no previous tempo change.

◆ Set()

void CookedMidi.TempoMap_.Set ( long timeMicros,
uint tempoMicros )

Changes will not be applied until UpdateChanges is called.

Member Data Documentation

◆ timeMicros

long CookedMidi.TempoMap_.timeMicros

Returns the tempo at a given time in microseconds, as well as the time where it is set.

Returns
The nth tempo change's time and tempo.
Returns
The next tempo change after (not including) timeMicros , or null if there is no next tempo change.
Returns
The tempo change at or after timeMicros , or null if there is no next tempo change.
Returns
The previous tempo change before (not including) timeMicros , or null if there is no previous tempo change.
Returns
The tempo change at or before timeMicros , or null if there is no previous tempo change.

The documentation for this class was generated from the following file: