HISE Logo Forum
    • Categories
    • Register
    • Login

    How to Set Note Durations

    Scheduled Pinned Locked Moved Unsolved General Questions
    7 Posts 2 Posters 233 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.
    • clevername27C
      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.

      d.healeyD 1 Reply Last reply Reply Quote 0
      • clevername27C clevername27 marked this topic as a question on
      • d.healeyD
        d.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()

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

        clevername27C 1 Reply Last reply Reply Quote 1
        • clevername27C
          clevername27 @d.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?

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

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

            clevername27C 1 Reply Last reply Reply Quote 1
            • clevername27C
              clevername27 @d.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?

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

                @clevername27 Hmmm, try it and report back.

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

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

                  10

                  Online

                  1.7k

                  Users

                  11.8k

                  Topics

                  103.1k

                  Posts