@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.