linking slider to a simplegain, the other way around.
-
i have a filmstrip of a vumeter on a slider, iam just tryin to effect the slider values with the value of the peak on a simplegain, iam using the getAttribute function ,but the console says function now found. i could have used a matrixpeakmeter with laf to run the filmstrip but this is just how i want to do it.
const var SimpleGain = Synth.getEffect("SimpleGain1"); const var vumt = Content.getComponent("vumt"); const var VUTimer = Engine.createTimerObject(); VUTimer.setTimerCallback(function() { var peak = SimpleGain.getAttribute(SimpleGain.Peaks); vumt.setValue(peak); }); VUTimer.startTimer(30); -
@Jeetender I don't think the SimpleGain has an attribute named Peaks
SimpleGain.getAttribute(SimpleGain.Peaks) // try SimpleGain.getAttribute(SimpleGain.Gain) -
@Jeetender Use a peak meter floating tile and look and feel.