Claude Heiland-Allen wrote:
IOhannes m zmoelnig wrote:
brandon zeeb wrote:
Btw, this seems to be a feature of almost all of the GGEE biquad coefficient externals. Check line 67 on highpass.c, bandpass.c, equalizer.c, and so forth. I'm not sure how you would want to handle this, but keep in mind it's systemic.
you would systematically use x->x_rate=sys_getsr().
Some additional questions:
What about [block~] up/downsampling? does that get taken into account by sys_getsr()? when is it safe/recommended to call sys_getsr()? (I guess in the dsp add method?)
ok.
sys_getsr() reports the sample-rate of the audio-backend. whatever happens within the patch (up/downsampling) does not affect this value. if you want to get the sample-blocks samplerate, you get this from the t_signal structure (as passed to the dsp callback)
unfortunately, the sr in this structure always munges in the overlap factor...
vfsamsdr IOhannes