<div dir="ltr">Isn't this the way to do it?<br>x->x_rate = sys_getsr();<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 3, 2015 at 6:32 AM, Peter P. <span dir="ltr"><<a href="mailto:peterparker@fastmail.com" target="_blank">peterparker@fastmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">* Raphaël Ilias <<a href="mailto:phae.ilias@gmail.com">phae.ilias@gmail.com</a>> [2015-05-02 16:36]:<br>
<div><div class="h5">> Hello,<br>
><br>
> I was testing the [bandpass] and [notch] object's from "ggee" library,<br>
> which compute coefficients values for vanilla's [biquad~] and discovered<br>
> that the center frequency wasn't the one expected, but was shifted<br>
> something like 10%.<br>
><br>
> After a few measurement I found that the real center frequency was around<br>
> 1.08841 upwards the ferquency value set to [bandpass] or to [notch]<br>
> inlets...<br>
><br>
> ...and I later realized that 48000/44100 = 1.088435... and that on my<br>
> computer, pd is working at 48000 Hz.<br>
> So, apparently these objects are calculating the coefficients with an<br>
> supposed samplerate of 44100 Hz.<br>
<br>
</div></div>You are right. I just looked at the source file for one of these<br>
objects, and it contains a line<br>
<br>
x->x_rate = 44100.0;<br>
<br>
So apparently the sample rate for it is hard-coded. I don't know ir<br>
Günther is actively monitoring the pd-list, but perhaps someone else<br>
here might know how to get that code to be more responsive to different<br>
sampling rates...<br>
(you could change your sampling rate to 44100 in the meantime though,<br>
Raphaël)<br>
best, P<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br></div>