A Song Select message with a song number.
SongSel events have 1 field numbered 0 :
0
- A song number from 0 to 127. (Field size : 1 byte)
Creates a SongSel event and returns a pointer to the event or NIL if there is no more memory space.
MidiEvPtr SongSel ( long date, short song, short port) { MidiEvPtr e; if ( e = MidiNewEv( typeSongSel ) )/* Allocate a new event. Check not NIL */ { Date(e) = date; /* These information are common to all */ Port(e) = port; /* kind of events */ MidiSetField(e,0,song); /* Field particular to SongSel */ } return e; }