HISE Logo Forum
    • Categories
    • Register
    • Login
    1. HISE
    2. WillDevelop
    3. Topics
    W
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 21
    • Groups 0

    Topics

    • W

      Is there a clever way to deal with overlapping MIDI notes?

      Watching Ignoring Scheduled Pinned Locked Moved Scripting
      6
      0 Votes
      6 Posts
      296 Views
      W

      I have found a simple solution with the MidiList object:

      When a Note On command comes in, then in a MidiList the index of the pressed key is set to the value of the note that is output. e.g. I press key 60 which is not active but only the next key so "60 -> 61" is stored in the MidiList. When a Note Off command comes in, before the Note Off command is sent, it is first checked whether another key also has this value If no key has this value, a Note Off command is sent for the note and the key is set to -1 in the MidiList. If one or more keys have this value, the NoteOff command is not sent

      onInit()

      reg midiKeyList = Engine.createMidiList();

      onNoteOn()

      const receivedNote = Message.getNoteNumber(); var outputNote = getOutputNoteBySnapMode(receivedNote); midiKeyList.setValue(receivedNote, outputNote); sendNoteToMidiOut(outputNote);

      onNoteOff()

      const receivedNote = Message.getNoteNumber(); var outputNote = getOutputNoteBySnapMode(receivedNote); midiKeyList.setValue(receivedNote, -1); // set pressed Note in midiList to -1 if (midiKeyList.getValueAmount(outputNote) <= 0) { sendNoteToMidiOut(outputNote); }

      I hope you can understand it.
      Thanks guys

    • W

      Set step size of button for pluginParameter ?

      Watching Ignoring Scheduled Pinned Locked Moved Solved Scripting
      7
      0 Votes
      7 Posts
      290 Views
      d.healeyD

      @WillDevelop said in Set step size of button for pluginParameter ?:

      then there's nothing you can do about it, right?

      Open an issue on the github page and link to this thread.

    • W

      How to make a Panic Button (Send All MIDI Off)?

      Watching Ignoring Scheduled Pinned Locked Moved Solved Scripting
      39
      0 Votes
      39 Posts
      2k Views
      ulrikU

      @WillDevelop Ok I see,