[PD-dev] [pure-data:patches] #548 ggee/filter fix for actual samplerate

electrickery electrickery at users.sf.net
Mon May 4 10:34:27 CEST 2015




---

** [patches:#548] ggee/filter fix for actual samplerate**

**Status:** open
**Group:** bugfix
**Labels:** ggee fixed sample rate 
**Created:** Mon May 04, 2015 08:34 AM UTC by electrickery
**Last Updated:** Mon May 04, 2015 08:34 AM UTC
**Owner:** Guenter  Geiger

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.

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.


---

Sent from sourceforge.net because pd-dev at lists.iem.at is subscribed to https://sourceforge.net/p/pure-data/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/pure-data/admin/patches/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20150504/98f927c5/attachment.html>


More information about the Pd-dev mailing list