HISE Logo Forum
    • Categories
    • Register
    • Login

    Script only works when interface is open

    Scheduled Pinned Locked Moved Scripting
    8 Posts 3 Posters 370 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.
    • d.healeyD
      d.healey
      last edited by

      When used as a VSTi the keyswitching part of my woodwind library only works if the interface is open. If I close the interface and try to KS it doesn't work properly. Any ideas what could cause this? I've tried removing all related code that affects the GUI but this didn't make a difference.

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

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

        Turns out I'm an idiot. I had HISE open in the background while testing the plugin in my DAW :p

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

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

          @d-healey it happens now and then for me too :)

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

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

            Seems I'm not a complete fool.

            My on note callback is only triggering when the interface is open - I test this by dumping a json file in the callback.

            @Christoph-Hart Any idea what could cause this?

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

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

              Synth.deferCallbacks()?

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

                @Christoph-Hart That'll do it! I've been going crazy. Thanks!

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

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

                  Calling Synth.deferCallbacks(true) will move the execution into the message queue, however if there is no interface open, it won't get called. The reason behind this is to free up resources. We had complaints from HEXERACT users about a year ago that reported a UI freeze when they load more than 20 instances, and this was the fix for the problem.

                  But if you're relying on the message thread to do more than just UI stuff, your application design is flawed anyway :)

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

                    @Christoph-Hart

                    But if you're relying on the message thread to do more than just UI stuff, your application design is flawed anyway :)

                    Yup. I've moved my other non-ui stuff into a separate script now and all is working well :)

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

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

                    52

                    Online

                    1.7k

                    Users

                    11.7k

                    Topics

                    102.1k

                    Posts