HISE Logo Forum
    • Categories
    • Register
    • Login

    NoteOn Callback Precedence?

    Scheduled Pinned Locked Moved Solved Scripting
    7 Posts 3 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

      If I understand correctly, when a note comes in, it activates both the UI-thread Note-On Callback, and the Real-Time Note-On Callback.

      Question: Do both Callbacks get the same Message, or does it go first to the Real-Time Callback—and any changes there are reflected in the Messages received by the UI-thread Note-On Callback?

      Thanks!

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

        @clevername27 The ui thread is only triggered if the ui is open (if I remember correctly).

        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 How would the UI not be open?

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

            @clevername27 When you load a plugin in a DAW it's common to set the parameters to where you want them and close the plugin UI.

            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 never thought of that, lol.

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

                @clevername27 any script with a non defer callback gets executed synchronously in the audio thread and the deferred callbacks will get a notification to run at the next timer interval which might happen within the next 30ms or never (if the timer isn‘t running because there is no UI open).

                But it‘s guaranteed that a realtime script will always execute before a UI script.

                clevername27C 1 Reply Last reply Reply Quote 1
                • clevername27C
                  clevername27 @Christoph Hart
                  last edited by

                  @Christoph-Hart Thank you, both.

                  1 Reply Last reply Reply Quote 0
                  • clevername27C clevername27 has marked this topic as solved on
                  • First post
                    Last post

                  47

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  102.1k

                  Posts