addModulator
-
After spending a couple of years with Hise, I've finally understand that it is possible to add effects and modulators after init ( yes you can call me stupid, retarded or what ever you like, it will have no effect on me, I'm just happy and you're not able to change that 🤪
So in my slotsFX project I'm implementing filters and modulators, and I want them to be added by the user in a running plugin, that works nicely, I use this code to add a connection to a Global Modulator but I don't know how to chose which global modulator to connect to, any hints?
this will create a slot in the right effect chain
local modulator = Slots[0].getCurrentEffect().addModulator(type, "GlobalTimeVariantModulator", "LFO Intensity Mod");
but how do I chose the right Global Modulator?
I tried to use the reference to the newly added slot like this, but what should I write inside the brackets?modulator.addModulator(??????);
-
@ulrik the only attributes available in the created slot is "UseTable" & "Inverted"
-
How do I implement an independent LFO module in a FXPlugin?
I have tried this:compiled a fx plugin with a Global Module Container containing a LFO Modulator
it compiles fine but it's not possible to read the LFO Modulator values? Is it possible? Any hints is much appreciated :) -
@ulrik my intention is to use the independent LFO and use it to control some of the effect parameters
LFO.getCurrentLevel()
-
@ulrik ok, I found a way to do this, I loaded 4 SimpleGain in 4 Effect Slots, applied an LFO Modulator in the Delay chain on each of them, sat Delay to zero and now I can get the LFO.getCurrentLevel from them all, it's a bit of a work around but it works.
-
@ulrik said in addModulator:
my intention is to use the independent LFO and use it to control some of the effect parameters
Check out the macro container, put an LFO in there and then connect the effect parameters to the macro.
HiseSnippet 1094.3oc2X8zaiSDEebRmUaJKUrhUZk3jO1UrT4jll1JNjPSZPQj1FUW1hDGplZOodTsmwq83tjh3a.RHNt23SARbiqbiuBHwk8FeCf23+D6ranjFEJYwGr779yL+d+Ydya7f.gEMLTDfzpbxHeJR6AXyQboSaGBii50AosF9.RnjFnmPZuQ9jvPpMRSq7mpHnUYET7yezbOhKgaQyIgPOSvrn8YdLYN0As9LlqaWhM8DlWAoq2pmkf2V3Jh.7TFaf7IVWRtfdHQIVILR6d6ayjh.SIQRCAY1SXOxzQ7Bdh7OiExN2kpFTEYBSTBYTaGlq8fLaMDgzvCxs7xIV9ivGvrYiom6AduXF54ZTzGnU5lfT0aAjz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ZkQ+Ere+pNI
-
@Christoph-Hart Ahh, I've never tried the macros, now is the time, thanks!
-
@Christoph-Hart Unfortunately the macro container behave just like the Global Modulator Container, it's impossible?? to get currentValue from neither of them, this is what I try to do:
the 4 LFOs in the picture is 4 Modulators attached to SimpleGains Delay chain which is set to zero, and I pick up their currentLevels and read them in the Synth timer callbackit works ok so far but it would have been nice to use the Global or Macros
I'm going easy on the timer it's set to Synth.startTimer(1/10) -
@ulrik I forgot to tell that this plugin is a midiControlled FX so I have to load it as