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

            return((byte)midinum);
        }