public void NoteOff(MidiNote note, MidiOctave octave) { EnsureReady(); Output.Send(new byte[] { MidiEvent.NoteOff, MapNote(note, octave), 0x7f }, 0, 3, 0); }
static byte MapNote(MidiNote note, MidiOctave octave) { int midinum = 12 * (int)octave + (int)note + 12; return((byte)midinum); }