Is there a way to find out which was the last clicked EQ band?
-
@ForeverLive for some reason it's controlling gain instead of Frequency.
-
@ForeverLive Show your code
-
const CurveEq = Synth.getEffect("EQ_slot_CurveEq"); inline function onEQHiKnobControl(component, value) { CurveEq. setAttribute(CurveEq. Freq0 * CurveEq. BandOffset, value); }; Content.getComponent("EQHiKnob").setControlCallback(onEQHiKnobControl);
-
@ForeverLive Ok, the problem here is you have copied Matt's typos.
When you call a function on an object (or access one of its properties) using a
.
you mustn't leave a space between the object name and the.
Also the property name is
Freq
not Freq0 (use the auto-complete popup to help you). You need to add the band number as Matt showed. -
@ForeverLive yep sorry about that it's the damn autocorrect from my cellphone, which forces me to put spaces after dots...
-
@d-healey My apologies but it says error when i trying to add Band identifier like in example. Found identifier when expecting ','
Thank you for help!
-
@ForeverLive Post code
-
@d-healey sorry that was my mistake, i set const bandNum and then it's int inside of a function. Now it's working! Thank you alot!!! You are really the best.
-
One more small question if it's ok. Is there a way to make some bands on EQ has no ability to be deleted via Draggable Filter Panel? Like the ones that are connected to the knobs? So it's possible to add or delete bands but not the ones that are connected to the knobs? Thank you!
-
@ForeverLive Not as far as I know (well you can if you edit the source code).
-
This post is deleted! -
@d-healey Thank you. God bless!