/// <summary> /// Triggers a note off event for the Helm instance(s) this points to. /// </summary> /// <param name="note">The MIDI keyboard note to turn off. [0, 127]</param> public void NoteOff(int note) { int number = 0; pressedNotes.TryGetValue(note, out number); if (number <= 1) { pressedNotes.Remove(note); Native.HelmNoteOff(channel, note); } else { pressedNotes[note] = number - 1; } }
/// <summary> /// Triggers a note off event for the Helm instance(s) this points to. /// </summary> /// <param name="note">The MIDI keyboard note to turn off. [0, 127]</param> public void NoteOff(int note) { int number = 0; pressedNotes.TryGetValue(note, out number); if (number <= 1) { pressedNotes.Remove(note); Native.HelmNoteOff(channel, note); } else { pressedNotes[note] = number - 1; } // Julian: habe ich hinzugefügt StopCoroutine(pressedNotesDurations[note].coroutine); pressedNotesDurations[note].duration = 0; }
/// <summary> /// Triggers a note off event for the Helm instance(s) this points to. /// </summary> /// <param name="note">The MIDI keyboard note to turn off. [0, 127]</param> public override void NoteOff(int note) { Native.HelmNoteOff(channel, note); }
public void NoteOff(int note) { Native.HelmNoteOff(channel, note); }