Err InterpretMIDIMessage( ScoreContext *ScoreCon,char *MIDIMsg, int32 IfMute )
InterpretMIDIMessage()
is called by InterpretMIDIEvent()
, which extracts MIDI messages from Juggler sequences containing MIDI events. Although this function is used most often as an internal call of the Music library, tasks may call it directly to execute a supplied MIDI message. The message should be stored in the first byte (first character) of the MIDIMsg string, followed by data bytes (if present) in subsequent bytes of the string.
Whenever the IfMute argument is set to TRUE, this function does not process Note On messages with velocity values greater than zero. In other words, it doesn't start new notes, but it does release existing notes and process all other recognized MIDI messages. When IfMute is set to FALSE, this function processes all recognizable messages, including Note On messages.
Note that InterpretMIDIEvent()
reads a Juggler sequence's mute flag and, if true, passes that true setting on to InterpretMIDIMessage()
so that the sequence stops playing notes. It likewise passes a false setting on to InterpretMIDIMessage()
so that the sequence can play notes.
InterpretMIDIEvent
()