public bool Send(int shortMessage) { if (!this.IsOpened) { return(false); } this._lastError = Midi.MIDI_OutShortMsg(this._device, shortMessage); return(this._lastError == MIDIError.MIDI_OK); }
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); }