HISE Logo Forum
    • Categories
    • Register
    • Login

    store an artificial noteOn as an eventId?

    Scheduled Pinned Locked Moved General Questions
    6 Posts 3 Posters 516 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ulrikU
      ulrik
      last edited by

      Is it possible to set(store) an eventId on a Synth.addNoteOn or Synth.playNote event?
      If it is, where can I find an example how to do it?

      Hise Develop branch
      MacOs 15.3.1, Xcode 16.2
      http://musikboden.se

      1 Reply Last reply Reply Quote 0
      • Christoph HartC
        Christoph Hart
        last edited by

        Sure, these methods return the event ID and you can store them for later use - I am using this for the legato MIDI module.

        ulrikU 2 Replies Last reply Reply Quote 1
        • ulrikU
          ulrik @Christoph Hart
          last edited by

          @Christoph-Hart Great, do you have an example?

          Hise Develop branch
          MacOs 15.3.1, Xcode 16.2
          http://musikboden.se

          d.healeyD 1 Reply Last reply Reply Quote 0
          • ulrikU
            ulrik @Christoph Hart
            last edited by

            @Christoph-Hart My setup is this:
            I have a panel divided in several zones and via event.MouseDownX + event.dragX it decides in which zone I am, so dragging from zone 1 to zone 2 sends a noteOff that should kill the noteOn from zone 1, and it also sends a noteOn when inside zone 2. That works perfect, however, this is an iPad app so I would like it to work for, at most, 10 different tones at the same time and I can't figure out a good way to do it without having Id's for each event

            Hise Develop branch
            MacOs 15.3.1, Xcode 16.2
            http://musikboden.se

            1 Reply Last reply Reply Quote 0
            • d.healeyD
              d.healey @ulrik
              last edited by

              @ulrik said in store an artificial noteOn as an eventId?:

              @Christoph-Hart Great, do you have an example?

              myId = Synth.playNote(some parameters);

              Libre Wave - Freedom respecting instruments and effects
              My Patreon - HISE tutorials
              YouTube Channel - Public HISE tutorials

              ulrikU 1 Reply Last reply Reply Quote 2
              • ulrikU
                ulrik @d.healey
                last edited by

                @d-healey Haha, beautiful, I didn't know you could do that, thanks!

                Hise Develop branch
                MacOs 15.3.1, Xcode 16.2
                http://musikboden.se

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post

                30

                Online

                1.7k

                Users

                11.8k

                Topics

                102.8k

                Posts