HISE Logo Forum
    • Categories
    • Register
    • Login

    How do I transfer from the main interface script processor to another script processor?

    Scheduled Pinned Locked Moved Scripting
    8 Posts 2 Posters 135 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.
    • VirtualVirginV
      VirtualVirgin
      last edited by

      I made a keyboard on the main Interface script and would like to move the whole thing to a script processor in a different container.

      Screenshot 2024-12-06 at 3.57.11 PM.png

      When I copy/paste the script, I compile and obviously it can't find the components.
      How can I copy the components to that container script?

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

        @VirtualVirgin The easiest way is if those components are within a panel, then you can click the panel in the widget list, press J on your keyboard to view the JSON and copy it. Then you can add a panel to your new MIDI processor, hit J, paste the JSON.

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

        VirtualVirginV 1 Reply Last reply Reply Quote 0
        • VirtualVirginV
          VirtualVirgin @d.healey
          last edited by

          @d-healey said in How do I transfer from the main interface script processor to another script processor?:

          @VirtualVirgin The easiest way is if those components are within a panel, then you can click the panel in the widget list, press J on your keyboard to view the JSON and copy it. Then you can add a panel to your new MIDI processor, hit J, paste the JSON.

          Excellent!
          Now that I have it in another container, what is the interaction of the two containers both making a front interface? So far I have only had all of the components on the default interface.

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

            @VirtualVirgin You can only have one main interface script.

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

            VirtualVirginV 1 Reply Last reply Reply Quote 0
            • VirtualVirginV
              VirtualVirgin @d.healey
              last edited by

              @d-healey said in How do I transfer from the main interface script processor to another script processor?:

              @VirtualVirgin You can only have one main interface script.

              How can I keep everything related to the keyboard in the separate container, yet see it in the front interface?

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

                @VirtualVirgin You can't, you need to separate functionality from UI. So in your secondary script you can have all the keyboard functionality that you want, but it doesn't matter what it looks like, so you don't have to use the same UI that are using on the front end, but you can if you want. Often a good choice when there is lots of data is to use a sliderpack. Then on your UI script you connect the controls to the secondary script, just like with the built in HISE modules.

                If you want separate your keyboard script into a separate script for organisational purposes, you should put the code into a namespace, and put the entire namespace into a separate js file that you can "include" in on init.

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

                VirtualVirginV 1 Reply Last reply Reply Quote 0
                • VirtualVirginV
                  VirtualVirgin @d.healey
                  last edited by VirtualVirgin

                  @d-healey said in How do I transfer from the main interface script processor to another script processor?:

                  @VirtualVirgin You can't, you need to separate functionality from UI. So in your secondary script you can have all the keyboard functionality that you want, but it doesn't matter what it looks like, so you don't have to use the same UI that are using on the front end, but you can if you want. Often a good choice when there is lots of data is to use a sliderpack. Then on your UI script you connect the controls to the secondary script, just like with the built in HISE modules.

                  If you want separate your keyboard script into a separate script for organisational purposes, you should put the code into a namespace, and put the entire namespace into a separate js file that you can "include" in on init.

                  I've been looking at the namespace into .js and made a few earlier and getting a grasp.

                  The reason I am moving the keyboard to the container though is that I need multiple keyboards representing multiple stages of MIDI signal flow, so picture an input keyboard, a transformation keyboard (showing what you are doing in an intermediary stage), and a post-transformation output keyboard. I figure the easiest way to route those stages is the subsequent keyboards just pick up the incoming notes at that stage, because it sees any generated MIDI as new callback inputs.

                  One reason for making my own keyboard in the first place is that the built-in one is hard-coded to the MIDI inputs, and when you add it to subsequent stages (of script processors), it still reads directly from the inputs selected in the "MIDI In" of the project settings, and not the input of just that stage.

                  VirtualVirginV 1 Reply Last reply Reply Quote 0
                  • VirtualVirginV
                    VirtualVirgin @VirtualVirgin
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post

                    13

                    Online

                    1.8k

                    Users

                    12.1k

                    Topics

                    105.4k

                    Posts