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?
-
@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!!
-
@Lindon - OK trying to implement this now, and the call is confusing me.
Lets say have a Global modulator called "GlobalLFO1", in a GlobalModulatorContainer called "Global Modulator Container1"
and a modulator in a filter on a synth called "FilterLFO1".....
it seems I must make the call on the modulator so:
FilterLFO1.connectToGlobalModulator(String globalModulationContainerId, String modulatorId)
..so what goes in the string globalModulationContainerId???
.. what goes in the string modualorId ???I've tried this and it doesn't work..
const var GlobalModulatorContainer1 = Synth.getChildSynth("Global Modulator Container1"); const var GlobalLFO1 = Synth.getModulator("GlobalLFO1"); const var FilterLFO1 = Synth.getModulator("FilterLFO1"); FilterLFO1.connectToGlobalModulator(GlobalModulatorContainer1,GlobalLFO1);
I've even tried (which seems a bit silly..):
const var GlobalModulatorContainer1 = Synth.getChildSynth("Global Modulator Container1"); const var GlobalLFO1 = Synth.getModulator("GlobalLFO1"); const var FilterLFO1 = Synth.getModulator("FilterLFO1"); GlobalLFO1.connectToGlobalModulator(GlobalModulatorContainer1,FilterLFO1);
-
The parameters are
Strings
.HiseSnippet 1351.3oc6Y0sahbCEdFfoJv1FsaaTUUUqznndAQMEAYSS+SUKIjPDpgDTfMsR8hUNCFvJdrm5wS5hp1K608AnuT8QYeCZO1y.3IgPXoIYiVEt.gO1G6Oe9+XZI3d3vPtvxNemgAXK622o8PlbPsAHBypwtV1K6zmxOEQax6Vm7RqcFFfBCwcsrsytuZM14yYo+75msChhXd3IjrrNgS7vGP7IxITaU8mHTZcTWbGhuwp2rZCONqFmxi.7j0orU.x6LTe7gH0xx3XY+d60kH4h1RjDGZYmaGd2gsGv+cV75OgDRNkhUCpX0F1nXx04ztJDqnZUa.g1s0n6cnEroslHExFKEVwoIoKYL8IRiGqmvcBGlxC6LogW1TvqhI7Ja.uo.IaCHkKFROwosmfDHmLiBOOxoAShE8PfX2DJwq0JyelwoFGVASVxGcFtt.FLlihaUt75tvWq8CEJ.h9Po64Hg69Z8sR2bBRPPLIn5inH3hUw8Gc0lGk5imPs3pwb3pXwMgG2ILspZ6ILJggc6Ew7jDNyky1IRJ4rJJ3I3zhdb+.NC.55.HnQ30J7GExS54VLYT97y.Wk.zyvdxN78GYrdArMlh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