Is it possible to script a bypass control for an external modulator?

Alcot60890
Alcot60890 Member Posts: 17 Member
edited October 2024 in Scripting Workshop

I would like to script an interface which lets me decide which of 3 modulation curves to use for any given group. Is it possible to script a bypass for an external modulator? My thought was I could create 3 modulators, each controlled by a unique CC and with the curves I need, and then I could use a scripted control to bypass the modulators I don't need.


Otherwise, is it possible to script a control which selects a user-preset for the modulation shaper?

One thing I've tried is using $ENGINE_PAR_MOD_TARGET_INTENSITY to attempt to create an effective bypass, but that gives me results I don't quite understand.

My last resort is to just duplicate all the groups for each of the 3 curves, and then activate/deactivate groups to achieve the result. But I'm wondering if there's a better way.

Thanks in advance!

Comments

  • Gablux
    Gablux Member Posts: 88 Helper

    you are on the right track, to bypass the modulator, use ENGINE_PAR_MOD_TARGET_INTENSITY and pass the value as 0 for intensity 0% and 1000000 for intensity 100%

    an example using a modulator on group 0:

    set_engine_par($ENGINE_PAR_MOD_TARGET_INTENSITY, 0, 0, find_mod(0,"VEL_VOLUME"),-1) { "bypass" }
    set_engine_par($ENGINE_PAR_MOD_TARGET_INTENSITY, 1000000, 0, find_mod(0,"VEL_VOLUME"),-1) { "bypass off" }
    
  • Alcot60890
    Alcot60890 Member Posts: 17 Member

    Excellent! Works exactly as I was hoping. Thank you! :)

This discussion has been closed.
Back To Top