// MidiChannel interface // (We don't currently derive from MidiChannel, // but if we ever do, this will make it easy.) public void NoteOff(byte note) { if (!On) { return; } MidiChannel mc = MidiChannel; if (mc != null) { mc.NoteOff(note); } else if (Percussion) { mc = Player.MidiDriver.GetPercussionChannel(); if (mc != null) { mc.NoteOff(note); } } }