Setting the link to a Global Modulator
-
So I want to programmatically set the link to a global modulator.. so in my sound source I have a filter, and Attached to the filter Freq is a Global Time variant modulator, and I'd like to dynamically swap it, but I can only see options for "invert" and "use table" in the documentation...
so this:
Please tell me this is possible ....it seems so obvious....clearly I'm missing something...
-
@Lindon Not possible as far as I can see. How many mods do you want to switch between?
-
@d-healey said in Setting the link to a Global Modulator:
@Lindon Not possible as far as I can see. How many mods do you want to switch between?
12....across 10 voices....
-
@Lindon voices = samplers?
-
@d-healey said in Setting the link to a Global Modulator:
@Lindon voices = samplers?
4 x samplers , 4 x synths, 2 x audio loop players...
-
@Lindon I'll see if I can hack the source code to add this feature
-
@d-healey said in Setting the link to a Global Modulator:
@Lindon I'll see if I can hack the source code to add this feature
..and I will for ever be grateful...... AGAIN
-
@Lindon I've done it
I just need to tidy the code a little then I'll push it.
-
Here's the pull request. https://github.com/christophhart/HISE/pull/323. We'll have to wait for Christoph to let me know if this is acceptable.
I added two functions.
connectToGlobalModulator(globalModulationContainerId, globalModulatorId);
andgetGlobalModulatorId()
. The second function will return the id of the currently connected global modulation container and the id of the modulator itself. -
@Lindon
David helped me with this long ago, watch this topic
https://forum.hise.audio/topic/5346/addconnection-globalmodulators-solved/7 -
@ulrik - that's an interesting solution - but not what Im looking for, I'm looking of the ability to change the destination Global Modulator, not the TYPE of global modulator...but wiht luck David has it sorted...
-
@d-healey said in Setting the link to a Global Modulator:
@Lindon I've done it
I just need to tidy the code a little then I'll push it.
You're a star...
-
@Lindon why can you not have multiple Global TimeVariant modulators (routed to your different GMs) in your filter, and then switch them on and off as you need?
-
@DanH That's why I asked him how many global mods he'll be switching. It's too many to be practical but of course that is the usual solution.
-
@DanH as David says - 10 "voices" and 12 modulators would mean setting up 120 modulator routing options - WAAAAY too many.
-
@Lindon pushing this to the top of the pile so Christoph can see the pull request from Dave..
Here's the pull request. https://github.com/christophhart/HISE/pull/323.
-
@Lindon It's merged now, but I've made a few modifications: it returns true if the connection can be established and if you call this method with an invalid target, it will throw a script error.
It won't show up in the Autocomplete though until the next time I'll push something from my Windows machine (probably tomorrow).
-
@Christoph-Hart great!!