//-- Send a controller change by using an Enumeration public void SendControllerChange(MIDIControllers Controller, ref byte Data1, byte Data2 = 0) { int MidiMsg = 0; byte CmdAndChannel = 0; CmdAndChannel = StuffByte(GetByte(MIDIStatusMessages.ControllerChange), OutputChannel); MidiMsg = StuffInt32(CmdAndChannel, GetByte(Controller), Data1, Data2); MIDI.midiOutShortMsg(hMidiOUT, MidiMsg); }