Global Modulator Visibility
-
Okay.. so bare with me....
I'd like to be able to modulate a range of parameters in my product that DONT have modulation slots in them...
For example the wet level of a samplers Simple Reverb FX....
I would also like this "transform" to happen based upon a table (lets say we are using Velocity as our modulation source....)
So I'd like to set up a Velocity Modulator and "read" it after the modulation value has been calculated....
So I can put a simple velocity modulator in the Global Modulators, but.....I have no way of "reading" its value in any following script (the script cant "see" the Global Modulators, only other modulators can see Global Modulators).
I tried putting a script processor in the Global Modulators, just after the Velocity Modulator, and getting it to read the Velocity Modulator values, and then "sending" these to a script in my sampler... but scripts in Global Velocity Modulators cant "see" anything "down stream" so that doesnt work....
The only way I can seem to get this to work is to add a "fake" modulator(set its depth = 0%) to the samplers Gain or Pitch chain, and then reading it in a script - but this ends up running exactly one note behind where I need it to be - so fail there.
So unless someone has a crafty way of doing this. I would like to request that Global Modulators be just that Global - and thus accessible from downstream scripts (so I can read their value) . So I can say
const var myGlobalVelo = Synth.getModulator("myGlobalVelo");
in a downstream script, and then be able to say
function onNoteOn() { Console.print(myGlobalVelo .getCurrentLevel()); }
in the same script...
Always open to cool alternative ways to do this....
-
@lindon I don't know how difficult it would be to add modulation slots to the simple reverb effect, but might be an option worth attempting. Another possibility is to use scriptnode.
You could also get your global script to set a global variable which can be picked up by your down stream scripts.
-
@lindon I had the same problem, this is what I did:
- Added a Effect Slot with a SimpleGain in it
- Added a modulator in the SimpleGains chain at "Delay"
- Set the "Delay" at 0 (so that the modulator wouldn't affect the Delay
So the SimpleGain will not have any influence on anything, it's only used to host a modulator that can be read.
I pick up the Modulator.getCurrentValue() in the Synth.Timer to read and using the value to manipulate what I needed
Here the modulator controls the Chorus
-
@lindon example
HiseSnippet 1079.3oc0WstaaaCElx1rH1cKnsqO.B4WNXcd1qYY2vP8hcbgwbRLlyZ2v9QAiDsEQnH0nnbmwPeF1q5vdA1NjRVRN0KwyHcnw+Pvma77ctnygZrR5QiikJjS8yWDQQNe.dxBgNnW.gIPC6ib1EeBIVSUtorNZQDINl5ibbp9b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hFl9bBQqXv0dvmlDNA97JOJ.UgfxiMWuohYBSJcaCscvEU3aI9a3WlvNFZmLgcVJ7+EeDR7TxW4kdESy3jcrbf3VX+3v5vWoBztcVdsRLtcq1nP3C2dkmm4lCeBjeVuMe1VXyS2BaNXKr4y2BaNbKr4K1Ba9xq0Fy2L+cIvVqz9efw3iS2W4ju2yoJ5e.HAtqk.
-
@Lindon Isn't this exactly what the macro modulators are for?
-
@danh what is a macro modulator? Is it the same as Global modulator?
-
@ulrik said in Global Modulator Visibility:
@danh what is a macro modulator? Is it the same as Global modulator?
These are only useful for controls that have a range of 0 - 127
There's also this - https://docs.hise.audio/hise-modules/modulators/time-variant-modulators/list/macromodulator.html#parameters
-
@d-healey said in Global Modulator Visibility:
@ulrik said in Global Modulator Visibility:
@danh what is a macro modulator? Is it the same as Global modulator?
These are only useful for controls that have a range of 0 - 127
There's also this - https://docs.hise.audio/hise-modules/modulators/time-variant-modulators/list/macromodulator.html#parameters
..and they are massively unstable in my experience.... truth is the modulator system is very dodgey at the global level all round...'s why I'm trying to roll my own...
-
@d-healey Ok, thanks
-
@ulrik thanks to @DanH and @d-healey I finally understand the Macro stuff :)
@Lindon you could try the macro like this, with a hidden knob connected to a macro modulator, and control your stuff inside the knob cb?
I don't know if this will work for your case but, I think I can redo my way of modulating parameters in effects with no modulation slot
HiseSnippet 1199.3oc4X8taiSDDecR2iKgiBmtSBIjPx59Tp3HMNosoUmPWnoMPD8OQjRADRTs0dSyptdWi8lVBn6q7UdN3sfGAdDtGAdCfY8ZG6TRqBU8NHf+fkmY1c1e6ryN+w8BktznHYHxpzQiCnHqGf6OVnF1dHgIPc2AYsLdeRjhFZaXs83.RTD0CYYU7SzLrJsDJ942e91DNQ3RyXgPGKYtz8X9LUF2ds9LFm2g3QOh4mazq0pqqTzVxki.7TDWCEPbOmbF8.hdXEvHq6sqGSIC6qHJZDxZoskdi6OTdovL9iYQrS4TMgCpOnHC6NRtmFw5uQsGx3d8R22QHjEtWlUnnwJ7X79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4Ow0UWf2GBp1xM82c3cR.IDzihp+ag51wy+ymxIy7m6RHOwrzWsycecmPXbsp0L8a+FXm5MABt7xT9CgF1yDvDWPCUoEfERIdRAebxQ5r2l0S2lIqyTarqYNMtEyYsawbV+VLmMtEyo4sXNadiyQ2q2GOBp2yzgBvn2tlJ8rlTwnUQzehXM0eO
-
@lindon mine work very well
-
@danh good for you - they crash the systems I work on.
-
@danh and Macro Modulators are NOT available downstream...