class MidiStatus

Stores the MIDI status. More...

Definition#include <midistat.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

Stores the status of a MIDI device . That is, current patch in each channel, controller settings, pitch bender value, etc.

This is used to "play" with all those values and then send them to the MIDI device just by using sendData()

 MidiStatus ()

MidiStatus

Constructor.

 ~MidiStatus ()

~MidiStatus

Destructor.

void  keyPressure ( uchar chn, uchar note, uchar vel )

keyPressure

Stores a new value for the key aftertouch.

See also: MidiOut::keyPressure()

void  chnPatchChange ( uchar chn, uchar patch )

chnPatchChange

Stores a new patch in channel chn.

See also: chnPatch(), MidiOut::chnPatchChange()

uchar  chnPatch ( uchar chn )

chnPatch

Returns the patch currently used in channel chn.

void  chnPressure ( uchar chn, uchar vel )

chnPressure

Stores a new channel pressure value in channel chn.

See also: MidiOut::chnPressure()

uchar  chnPressure ( uchar chn )

chnPressure

Returns the pressure value currently used in channel chn.

void  chnPitchBender ( uchar chn, uchar lsb, uchar msb )

chnPitchBender

Stores a new pitch bender value in channel chn

int  chnPitchBender ( uchar chn)

chnPitchBender

Returns the pitch bender value used in channel chn

void  chnController ( uchar chn, uchar ctl , uchar v )

chnController

Stores a new value for controller ctl in channel chn.

uchar  chnController ( uchar chn, uchar ctl )

chnController

Returns the value used for controller ctl in channel chn

void  sysex ( uchar *data, ulong size)

sysex

Stores a sysex message that will be send in the next call to sendData

void  tmrSetTempo ( int v )

tmrSetTempo

Sets the tempo.

See also: DeviceManager::tmrSetTempo()

void  sendData ( class DeviceManager *midi, int gm=1 )

sendData

Sends the current MIDI state to the DeviceManager object used as parameter (you should have already set the default device to the one you want to use). The gm parameter specifies if the patches used follow the GM standard (1), or follow the MT32 standard (0), in which case, they will be converted to GM before being sent.