示例#1
0
 public bool Send(int shortMessage)
 {
     if (!this.IsOpened)
     {
         return(false);
     }
     this._lastError = Midi.MIDI_OutShortMsg(this._device, shortMessage);
     return(this._lastError == MIDIError.MIDI_OK);
 }
示例#2
0
        public bool Send(byte status, byte data1, byte data2)
        {
            if (!this.IsOpened)
            {
                return(false);
            }
            MidiShortMessage midiShortMessage = new MidiShortMessage(status, data1, data2, 0, 0L);

            this._lastError = Midi.MIDI_OutShortMsg(this._device, midiShortMessage.Message);
            return(this._lastError == MIDIError.MIDI_OK);
        }