/// <summary>
        /// Triggers a note on event for the Helm instance(s) this points to.
        /// You must trigger a note off event later for this note by calling NoteOff.
        /// </summary>
        /// <param name="note">The MIDI keyboard note to play. [0, 127]</param>
        /// <param name="velocity">How hard you hit the key. [0.0, 1.0]</param>
        public void NoteOn(int note, float velocity = 1.0f)
        {
            int number = 0;

            pressedNotes.TryGetValue(note, out number);
            pressedNotes[note] = number + 1;
            Native.HelmNoteOn(channel, note, velocity);
        }
        /// <summary>
        /// Triggers a note on event for the Helm instance(s) this points to.
        /// You must trigger a note off event later for this note by calling NoteOff.
        /// </summary>
        /// <param name="note">The MIDI keyboard note to play. [0, 127]</param>
        /// <param name="velocity">How hard you hit the key. [0.0, 1.0]</param>
        public void NoteOn(int note, float velocity = 1.0f)
        {
            int number = 0;

            pressedNotes.TryGetValue(note, out number);
            pressedNotes[note] = number + 1;
            // Julian: habe ich hinzugefügt
            pressedNotesDurations[note].coroutine = StartCoroutine(CountNoteOnTime(note));
            Native.HelmNoteOn(channel, note, velocity);
        }
Exemple #3
0
 /// <summary>
 /// Triggers a note on event for the Helm instance(s) this points to.
 /// You must trigger a note off event later for this note by calling NoteOff.
 /// </summary>
 /// <param name="note">The MIDI keyboard note to play. [0, 127]</param>
 /// <param name="velocity">How hard you hit the key. [0.0, 1.0]</param>
 public override void NoteOn(int note, float velocity = 1.0f)
 {
     Native.HelmNoteOn(channel, note, velocity);
 }