Exemplo n.º 1
0
 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)));
     }
 }
Exemplo n.º 2
0
 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)));
     }
 }