예제 #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)));
     }
 }
예제 #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)));
     }
 }