public void SendControlChange(Channel channel, UInt7 note, UInt7 value) { lock (this) { this.CheckOpen(); CheckReturnCode(Win32Api.Api.midiOutShortMsg(this.handle, ShortMessage.EncodeMessage(channel, note, value, ShortMessageType.ControlChange))); } }
public void SendNoteOff(Channel channel, UInt7 note, UInt7 velocity) { lock (this) { this.CheckOpen(); CheckReturnCode(Win32Api.Api.midiOutShortMsg(this.handle, ShortMessage.EncodeMessage(channel, note, velocity, ShortMessageType.NoteOff))); } }