public void AllNotesOff() { if (MidiChannel == null) { return; } MidiChannel.AllNotesOff(); }
public void Off() { if (MidiChannel != null) { MidiChannel.AllNotesOff(); MidiChannel.Release(); MidiChannel = null; } }