3.4 Enumerations

3.4.1 midimsgtype

: midimsgtype

A midimsg type enumeration for values of the midimsg type.

Enumeration values are:

DataStopSongPositionPointer
PolyOnPolyKeyPressureNoteOff
EOXActiveSensingSongSelect
MonoOnChannelPressureControlChange
TimingClockSystemResetAllSoundOff
OmniOnPitchBendProgramChange
StartTuneRequestResetAllControllers
OmniOffUndefinedSystemExclusive
ContinueMIDITimeCodeQuarterFrameLocalControl
AllNotesOffMetaEvent

The enumeration value can be used instead of a string in midimsg creation.

Examples

Use both a string and a midimsgtype for the type parameter of a midimsg.

 
 # both statements are equivalent
 msg = midimsg('NoteOn', 1, 60, 100);
 msg = midimsg(midimsgtype.NoteOn, 1, 60, 100);
 
 

See also: midimsg.