/// <summary> /// Sends a MIDI out message /// </summary> /// <param name="message">Message</param> /// <param name="param1">Parameter 1</param> /// <param name="param2">Parameter 2</param> public void SendDriverMessage(int message, int param1, int param2) { MmException.Try(MidiInterop.midiOutMessage(hMidiOut, message, (IntPtr)param1, (IntPtr)param2), "midiOutMessage"); }