<div class="markdown_content"><hr />
<p><strong> <a class="alink" href="http://sourceforge.net/p/pure-data/patches/548">[patches:#548]</a> ggee/filter fix for actual samplerate</strong></p>
<p><strong>Status:</strong> open<br />
<strong>Group:</strong> bugfix<br />
<strong>Labels:</strong> ggee fixed sample rate <br />
<strong>Created:</strong> Mon May 04, 2015 08:34 AM UTC by electrickery<br />
<strong>Last Updated:</strong> Mon May 04, 2015 08:34 AM UTC<br />
<strong>Owner:</strong> Guenter  Geiger</p>
<p>The ggee/filters bandpass, equalizer, highpass, highshelf, hlsshelf, lowpass, lowshelf and notch use a hardcoded sample rate value of 44100.0 for the filter coefficient calculation. This fixed sample rate is also found in experimental/fofsynth~. This results in incorrect filter settings for other sample rates. Nowhere in the documentation or code this 44100 Hz sample rate limitation is mentioned, so it is assumed to be an omission. This patch attempts to fix this omission.</p>
<p>The sample rate for this objects is stored in the object struct x->x_rate, but this is replaced by a direct call to sys_getsr(), as sample rate is a dynamic property within Pure data. For the fofsynth~ object this takes place within the perform method, so this could lead to performance issues. But placing it in the dsp method would lead to more structural changes in the code. Given the object is "experimental" since 1999, the current solution is chosen.</p>
<hr />
<p>Sent from sourceforge.net because pd-dev@lists.iem.at is subscribed to <a href="https://sourceforge.net/p/pure-data/patches">https://sourceforge.net/p/pure-data/patches/</a></p>
<p>To unsubscribe from further messages, a project admin can change settings at <a href="https://sourceforge.net/p/pure-data/admin/patches/options.">https://sourceforge.net/p/pure-data/admin/patches/options.</a>  Or, if this is a mailing list, you can unsubscribe from the mailing list.</p></div>