Forum

    • Register
    • Login
    • Search
    • Categories

    store an artificial noteOn as an eventId?

    General Questions
    3
    6
    317
    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.
    • ulrik
      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 13, Xcode 14.0.1
      http://musikboden.se

      1 Reply Last reply Reply Quote 0
      • Christoph Hart
        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.

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

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

          Hise Develop branch
          MacOs 13, Xcode 14.0.1
          http://musikboden.se

          d.healey 1 Reply Last reply Reply Quote 0
          • ulrik
            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 13, Xcode 14.0.1
            http://musikboden.se

            1 Reply Last reply Reply Quote 0
            • d.healey
              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

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

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

                Hise Develop branch
                MacOs 13, Xcode 14.0.1
                http://musikboden.se

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

                8
                Online

                983
                Users

                6.6k
                Topics

                60.8k
                Posts