HISE Logo Forum
    • Categories
    • Register
    • Login

    Get data from external script processor

    Scheduled Pinned Locked Moved General Questions
    19 Posts 4 Posters 811 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 @ulrik
      last edited by

      @ulrik said in Get data from external script processor:

      The delayed note off is taken from the external script processor (because it will be accurate)

      What do you mean by external script processor? Are you referring to the ReadNotes script?

      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 said in Get data from external script processor:

        @ulrik said in Get data from external script processor:

        The delayed note off is taken from the external script processor (because it will be accurate)

        What do you mean by external script processor? Are you referring to the ReadNotes script?

        Yes

        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 d.healey

          So I can see a different route for this. Keep only GUI related stuff to the Interface script, any delaying of events can be done in another script processor, and updating the keyboard colours can be done with a timer (or multiple timers).

          If you add Synth.deferCallbacks(true); at the top of your UI script it will force you to separate GUI stuff from real-time MIDI stuff.

          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 said in Get data from external script processor:

            So I can see a different route for this. Keep only GUI related stuff to the Interface script, any delaying of events can be done in another script processor, and updating the keyboard colours can be done with a timer (or multiple timers).

            If you add Synth.deferCallbacks(true); at the top of your UI script it will force you to separate GUI stuff from real-time MIDI stuff.

            Well that isn't the issue, the issue is that I can't get data from the "ReadNotes" script when I compile it as Midi FX plugin, it will not work

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

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

              @ulrik said in Get data from external script processor:

              I can't get data

              What do you mean? If you're trying to pass information from the ReadNotes script to the UI script then I think you are doing it wrong :) The scripts should be able to function separately.

              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 My question was, how do I pass data from the "ReadNotes" script to the main script,
                well that is indeed working but, it's not working if I export the project as Midi FX plugin.

                Let me ask this instead:
                Is it possible to get data from the ReadNotes" script to the main script, if I export the project as a Midi FX plugin?
                The "ReadNotes" script is not meant to function separately, the script is there for the reason to pass data to the main script.

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

                d.healeyD ulrikU 2 Replies Last reply Reply Quote 0
                • d.healeyD
                  d.healey @ulrik
                  last edited by

                  @ulrik said in Get data from external script processor:

                  Is it possible to get data from the ReadNotes" script to the main script, if I export the project as a Midi FX plugin?

                  Not sure, I haven't worked with MIDI FX. Are you relying on a global variable to pass this data back? If so that might be the cause of the issue.

                  @ulrik said in Get data from external script processor:

                  The "ReadNotes" script is not meant to function separately, the script is there for the reason to pass data to the main script.

                  I understand this is your design, but separating UI logic from realtime processing is usually the way to go. Unless there is some reason why that can't be done I would recommend exploring it, although of course it might require too much disruption to implement it in your current project.

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

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

                    @ulrik Another try to get data
                    I have a sliderpack in the ReadNotes script, and in the main script
                    They are connected via sliderPackData, and it works in Hise.

                    externalslp.gif

                    but as soon as I compile and export to Midi FX plugin, the connection is broken.

                    @Christoph-Hart is it possible to make sub containers, with script processor to work in a Midi FX Plugin, is it not meant to work or is it a bug?
                    If it's not meant to work, is it possible to make changes to the Hise code so it will work?

                    this is the snipp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lCmp8a.NUKyDLpVl13urD3y67SKga8NeWgXBY3VuyuIgkUfE0xzLcik.tdCDpeDO5GD3QOWLUMV8YTYHSUco.zf3.cgjwpxvzjr1IsBb.v8zK923Wxl0RqfTaVKcy7GweQ7Q7tVCvm803d0GvekdM4awodHOBP7tpDTsWAn2+0aePuwCceANbbTfHZAEO.lvt.uqFkmnZL1P3GzyLmm9g37qqbqe9gGiGxUJy.pbZntza4wHMdMfwq8ACX72CZnrv7BES8wArIA9PO9UfO11W6iegUx+eKoTWrV9LAWDLVvYt4SzmC3cvQifv799JOPcjR0iCYTtW6yAeflun8229wXwFMou9FEKp8F+WvYk4qesUr6RTW.Iu+9PvVe7gf+aeH3+E1XB0MT78twyhnpS+DME7by0+UYKZclZMoV5zGyykSvtbeuq6hp5FBVeSEb2MUvFapf6soBt+lJ3AapfMe8BpdDpyToXR7USCiy52SC71zrGmhU45aDF+G.Jkbwq.
                    

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

                    ulrikU 1 Reply Last reply Reply Quote 1
                    • ulrikU
                      ulrik @ulrik
                      last edited by

                      @ulrik Ok I investigated how to visually display the delayed note ons and note offs without actually reading them from an external script processor (since it's not possible to do that when compiling to a Midi FX plugin).
                      So I used the

                      Content.callAfterDelay()
                      

                      function applied to 16 separate panel components and got it to work, you can see the effect here, when I rotate the polygons (delaying the note on and offs), the keys will be painted according to the delay.

                      polygonarp.gif

                      Thank you David for pressing me to deal with the task in another way, finally it worked 🙏🏻

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

                      d.healeyD orangeO 2 Replies Last reply Reply Quote 4
                      • d.healeyD
                        d.healey @ulrik
                        last edited by

                        @ulrik Nice! You always make such cool GUIs!

                        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 Thank you David!

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

                          1 Reply Last reply Reply Quote 0
                          • orangeO
                            orange @ulrik
                            last edited by

                            @ulrik Interesting and inspiring GUI! Very cool.

                            develop Branch / XCode 13.1
                            macOS Monterey / M1 Max

                            ulrikU 1 Reply Last reply Reply Quote 0
                            • ulrikU
                              ulrik @orange
                              last edited by

                              @orange Thank you!

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

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

                              28

                              Online

                              1.8k

                              Users

                              12.0k

                              Topics

                              104.7k

                              Posts