Add EQ Band programmatically
-
Happy New Year to all! :-)
Is there a way to programmatically add a band to a ParametriqEQ?
Thank you very much
Oli -
-
@Oli-Ullmann unfortunately no...
Happy new year to you too!
-
@Matt_SF
Thank you for your answer.
Happy New Year to you too! -
-
you should be able to using .setAttribute
the indexes of the attribute go in order for each band, and there's the band offset property.
Here's my example, where I have the reference in the FX namespace
FX.solidEQ.setAttribute(FX.solidEQ.Freq + FX.solidEQ.BandOffset * 1, value);
Multiply the band offset with the band number, 0-based.
the properties you have at disposal are Type, Freq, Q, Gain, BandOffset. BandOffset is 0-based.
Keep going with as many bands as you wish. They'll be added automatically the moment you try to control them. I don't know how or whether you can delete them programatically.
-
@aaronventure Alright, it's been a bit since I used this so I went digging a bit more There's also the Enabled property, but I was wrong, the bands don't get added automatically as you reference them.
But you can add as many as you'd like to possibly use, disable them and only enable them when in use.
-
This post is deleted! -
@aaronventure said in Add EQ Band programmatically:
@aaronventure Alright, it's been a bit since I used this so I went digging a bit more There's also the Enabled property, but I was wrong, the bands don't get added automatically as you reference them.
But you can add as many as you'd like to possibly use, disable them and only enable them when in use.
That's right. But then they cannot be generated dynamically by the user at runtime.
Thanks anyway! :-) I have now found a solution. I limit the possible number of EQ bands. Not the best solution but it works for my project.
-
@Oli-Ullmann well, you can give them the impression that they can, but up to a certain limit. In any case, 32 biquads will add a decent amount of noise, and 32 SVF bands will boink the CPU a bit harder, so in both cases it's a bit of a push
-
@Christoph-Hart It's a good idea to limit the addition of filters with
AllowFilterResizing
.But can you give an example of allowing adding up to a certain number of bands and then locking the adding?
Also, how can we monitor the number of active filter bands? There is no such thing in Broadcaster events.