NiCMidi 1.1.0
A MIDI library derived from J.D.Koftinoff jdksmidi
MIDISequencerTrackState Class Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MIDISequencerTrackState()

MIDISequencerTrackState::MIDISequencerTrackState ( )

The constructor.

Initial attributes are program = -1 (undefined), bender_value = 0, all controls = -1, track_name = "", all notes off.

◆ ~MIDISequencerTrackState()

virtual MIDISequencerTrackState::~MIDISequencerTrackState ( )
inlinevirtual

The destructor does nothing.

Member Function Documentation

◆ Reset()

virtual void MIDISequencerTrackState::Reset ( )
virtual

Resets default values.

Member Data Documentation

◆ program

int16_t MIDISequencerTrackState::program

the current program change, or -1 if undefined

◆ bender_value

int16_t MIDISequencerTrackState::bender_value

the last seen bender value

◆ track_name

std::string MIDISequencerTrackState::track_name

the track name

◆ notes_are_on

bool MIDISequencerTrackState::notes_are_on

true if there are notes currently on

◆ note_matrix

MIDIMatrix MIDISequencerTrackState::note_matrix

to keep track of all notes on

◆ control_values

int16_t MIDISequencerTrackState::control_values[C_ALL_NOTES_OFF]

an array of current control change values, or -1 if not defined

◆ got_good_track_name

bool MIDISequencerTrackState::got_good_track_name

internal use


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