Closed HEnquist closed 3 years ago
I'll try to make the description a select
field.
By Bandpass
filters, you mean highpass and lowpass, right?
What tooltip and default value should the bandwidth
parameter have?
Oh the gui is missing the Bandpass type! https://github.com/HEnquist/camilladsp/blob/master/src/biquad.rs#L206 The bandwidth parameter is allowed for Peaking/Allpass/Notch/Bandpass (the ones where it makes sense). 1.0 is a nice and simple default, tooltip "Filter bandwidth in octaves".
I pushed an implementation to develop
.
Please have a look.
While you're at it, you might want to fix the validation errors :)
I'll try it! Which branch of pycamilladsp-plot did you use? I haven't merged the changes to master yet, they are still in "filterspec".
Works great! Validations also seem to work fine with the updated branch of pycamilladsp-plot. One thing to think about, now the new dropdown says "q", and for other fiters it's "Q". I have no strong preference for q or Q, but it should be the same everywhere.
"Q" is now shown consistently.
I also did some other cleanup/organizational stuff.
It's all in the develop
branch.
This is working fine, closing
Peaking/Allpass/Notch/Bandpass will allow giving either
bandwidth
orq
, and High/Lowshelf will allow eitherslope
orq
. The question is how to implement this in the gui. Simplest is probably a dropdown to select which definition is used. Other ideas?Example definitions, both valid: