Exemple #1
0
        //-- Send MIDI Data by specifying a message from an Enumeration
        public void SendMessage(MIDIStatusMessages Msg, ref byte Data1, byte Data2 = 0, byte Data3 = 0)
        {
            int  MidiMsg       = 0;
            byte CmdAndChannel = 0;

            CmdAndChannel = StuffByte(GetByte(Msg), OutputChannel);
            MidiMsg       = StuffInt32(CmdAndChannel, Data1, Data2, Data3);
            MIDI.midiOutShortMsg(hMidiOUT, MidiMsg);
        }
 //-- Send MIDI Data by specifying a message from an Enumeration
 public void SendMessage(MIDIStatusMessages Msg, ref byte Data1, byte Data2 = 0, byte Data3 = 0)
 {
     int MidiMsg = 0;
     byte CmdAndChannel = 0;
     CmdAndChannel = StuffByte(GetByte(Msg), OutputChannel);
     MidiMsg = StuffInt32(CmdAndChannel, Data1, Data2, Data3);
     MIDI.midiOutShortMsg(hMidiOUT, MidiMsg);
 }