Forum
    • Categories
    • Register
    • Login

    How to Set Note Durations

    Scheduled Pinned Locked Moved Unsolved General Questions
    7 Posts 2 Posters 260 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.
    • C
      clevername27
      last edited by clevername27

      Does anyone know the best way to intercept incoming notes, and manually their duration (i.e., when the note-off occurs)? Ideally, this method would be compatible with delayEvent(). Thank you.

      David HealeyD 1 Reply Last reply Reply Quote 0
      • C clevername27 marked this topic as a question on
      • David HealeyD
        David Healey @clevername27
        last edited by

        @clevername27 I haven't tested this but you'd need to turn it into an artificial event and then you could probably use Synth.noteOffDelayedByEventId()

        Free HISE Bootcamp Full Course for beginners.
        YouTube Channel - Public HISE tutorials
        My Patreon - HISE tutorials

        C 1 Reply Last reply Reply Quote 1
        • C
          clevername27 @David Healey
          last edited by clevername27

          Thanks, man.

          @d-healey said in How to Set Note Durations:

          Synth.noteOffDelayedByEventId()

          So I would make a copy of the real event with Message.makeArtificial(), and then Message.ignoreEvent() the original?

          But if Message.makeArtificial() returns an event ID, how do I get to Synth.noteOffDelayedByEventId()?

          I also don't understand how II should use Synth or what that refers to?

          4acb40c1-eaa7-414c-89d0-d376fe6c6ec3-image.png Thank you - why would it need to be artificial?

          David HealeyD 1 Reply Last reply Reply Quote 0
          • David HealeyD
            David Healey @clevername27
            last edited by

            @clevername27 you don't need to ignore the original, just make it artificial. You can't kill real events so you need to make it artificial first. Synth is just the name of a class, like Content or Engine.

            Free HISE Bootcamp Full Course for beginners.
            YouTube Channel - Public HISE tutorials
            My Patreon - HISE tutorials

            C 1 Reply Last reply Reply Quote 1
            • C
              clevername27 @David Healey
              last edited by

              @d-healey I guess I'm thrown because the docs say it creates a "copy", which seemed to mean that there were now two identical events?

              David HealeyD 1 Reply Last reply Reply Quote 0
              • David HealeyD
                David Healey @clevername27
                last edited by

                @clevername27 Hmmm, try it and report back.

                Free HISE Bootcamp Full Course for beginners.
                YouTube Channel - Public HISE tutorials
                My Patreon - HISE tutorials

                C 1 Reply Last reply Reply Quote 0
                • C
                  clevername27 @David Healey
                  last edited by

                  @d-healey You are kind, thank you. I'll donate some code. 🚀

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

                  22

                  Online

                  2.1k

                  Users

                  13.0k

                  Topics

                  112.6k

                  Posts