NiCMidi 1.1.0
A MIDI library derived from J.D.Koftinoff jdksmidi
|
Stores current MIDI parameters for a sequencer track. More...
#include <sequencer.h>
Public Member Functions | |
MIDISequencerTrackState () | |
The constructor. More... | |
virtual | ~MIDISequencerTrackState () |
The destructor does nothing. More... | |
virtual void | Reset () |
Resets default values. More... | |
Public Attributes | |
int16_t | program |
the current program change, or -1 if undefined More... | |
int16_t | bender_value |
the last seen bender value More... | |
std::string | track_name |
the track name More... | |
bool | notes_are_on |
true if there are notes currently on More... | |
MIDIMatrix | note_matrix |
to keep track of all notes on More... | |
int16_t | control_values [C_ALL_NOTES_OFF] |
an array of current control change values, or -1 if not defined More... | |
bool | got_good_track_name |
internal use More... | |
Stores current MIDI parameters for a sequencer track.
It stores track name, program, pitch bend, all control changes values and a matrix with notes on and off. The MIDISequencerState class contains a MIDISequencerTrackState for every MIDI Track, and it take care of updating parameters. You can ask the MIDISequencerTrackState if you want to know actual track parameters, however advanced class AdvancedSequencer allows you to get them without dealing with it, so the use of this class is mainly internal. However, you could subclass it if you want to keep track of other parameters.
MIDISequencerTrackState::MIDISequencerTrackState | ( | ) |
The constructor.
Initial attributes are program = -1 (undefined), bender_value = 0, all controls = -1, track_name = "", all notes off.
|
inlinevirtual |
The destructor does nothing.
|
virtual |
Resets default values.
int16_t MIDISequencerTrackState::program |
the current program change, or -1 if undefined
int16_t MIDISequencerTrackState::bender_value |
the last seen bender value
std::string MIDISequencerTrackState::track_name |
the track name
bool MIDISequencerTrackState::notes_are_on |
true if there are notes currently on
MIDIMatrix MIDISequencerTrackState::note_matrix |
to keep track of all notes on
int16_t MIDISequencerTrackState::control_values[C_ALL_NOTES_OFF] |
an array of current control change values, or -1 if not defined
bool MIDISequencerTrackState::got_good_track_name |
internal use