Ok so after racking my brains for the last week on this, I've thought of a possible third workaround making a filmstrip slider (Knob1) to do the animation and having that linked to the lfo modulation (LFOModulator1).
I have a similar thing in another project running gain reduction meters from the dynamics module reduction that works perfectly so I'm trying to adapt it to fit this, but it doesn't seem to work the same way trying to link the slider to the lfo modulation.
I think I know where the problem is in the code but not sure what I need to replace it with. (I think 'GainModulation' needs to be replaced with something else. I've tried a few things but I'm still stuck :( )
I'm basically trying to get the slider to animate up and down on its own so that it reflects the behavior of the custom table in the lfo modulator (so frame 0 on the slider when the custom tables volume is 0, and frame 128 when the custom tables volume is all the way up)
Heres the code:
const var LFOModulator1 = Synth.getEffect("LFOModulator1");
const var Knob1 = Content.getComponent("Knob1");
const var t = Engine.createTimerObject();
t.setTimerCallback(function()
{
var v = LFOModulator1.getAttribute(LFOModulator1.GainModulation);
v = Engine.getDecibelsForGainFactor(v);
GainModulation.setValue(v);
});
t.startTimer(30);
Snippet here if anyone can please help...
HiseSnippet 1229.3oc0X0raaaDDdoj2Fa0pzjzbnGIL5AEzTEo5eZKJJBskrBD7ORnz0oE8P5JxURaL4tLjKkqRP.xgdnOFE8InuR4MnuAsyRRQsLQw1PMoHlGHzL6Ly9MyN+rT8CENznHQHxXsimFPQFeD1dJWNt0XBii51FY7Y3ioQRyNhPyc8holGv3vqN8Ls8XtzPyc3LeztSCHQQTWjgQ4GnzzXsUPIO+882k3Q3Nz4rPnSDLG5ALelbN29V6y775PboGy70jdSqtNBdKgmHFPYYbCT.w4TxH5QDkXkvHiOXOWlTDZKIRZDxXkcEtSsGKNimJ+IrH1.OphnIxFLTJ6NBOWEhUbQsFy7b6OKZDg.qzedrobZr413CYtrb9yiQ2HYAy4ZnGOLJcdvqoN7Zb4gmgF7VIEd2Da6DxBjyWQgsOD2kKogCIvQfNrRkEUpUIbKAHAWV2mbJsSHPjqQssaz3tla0nwc91pUpV4d2qZE3v.RGlPBUIAGJbi8Hfy0z76LSRbpOhJ2a3Ppir15EDX8TSLW884hAJ0ls6fhsD9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