<div dir="ltr">Thanks for the abstractions Chris. Am I correct in thinking the licensing issues for [expr] have been resolved now?<div><br></div><div>Cheers,</div><div>Joe</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On 21 May 2014 23:22, Chris Clepper <span dir="ltr"><<a href="mailto:cgclepper@gmail.com" target="_blank">cgclepper@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div class="">On Wed, May 21, 2014 at 5:31 PM, Joe White <span dir="ltr"><<a href="mailto:white.joe4@gmail.com" target="_blank">white.joe4@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><br><br></div>

Is it intentional to not a bank of go-to filters? [biquad~] is the next one I would go to, but generating your own coefficients isn't that... err.. efficient when you're wanting some that just 'works' :)<br>




<br></div></div></div></blockquote><div><br></div></div><div>Attached are a set of abstractions wrapping most of the 'Audio EQ Cookbook' formulae around biquad~.  It would be nice for Pd to include something like this.</div>


<div><br></div><div>The only drawback to [biquad~] is it doesn't take audio rate coefficients.  There are of course externals that do audio rate for cutoff, Q, etc.</div><span class="HOEnZb"><font color="#888888"><div>

<br></div><div>Chris</div></font></span><div><div class="h5"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div></div></div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On 21 May 2014 17:31, Miller Puckette <span dir="ltr"><<a href="mailto:msp@ucsd.edu" target="_blank">msp@ucsd.edu</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Joe -<br>
<br>
That code is an approximation that works well for low cutoff<br>
frequencies but badly for high ones.  (I should probably warn<br>
about this in the help window... that'll go on my dolist)<br>
<br>
cheers<br>
M<br>
<div><br>
<br>
On Fri, May 16, 2014 at 12:58:31PM +0100, Joe White wrote:<br>
> Hi,<br>
><br>
> I've been looking at the [lop~] implementation (Pd-0.45-4) and noticed<br>
> something that seem weird to me.<br>
><br>
> In d_filter, line 176:<br>
><br>
> static void siglop_ft1(t_siglop *x, t_floatarg f)<br>
> {<br>
>     if (f < 0) f = 0;<br>
>     x->x_hz = f;<br>
>     x->x_ctl->c_coef = f * (2 * 3.14159) / x->x_sr;<br>
>     if (x->x_ctl->c_coef > 1)<br>
>         x->x_ctl->c_coef = 1;<br>
>     else if (x->x_ctl->c_coef < 0)<br>
>         x->x_ctl->c_coef = 0;<br>
> }<br>
><br>
><br>
> Is it correct that for:<br>
><br>
> y[n] = x[n] * a + y[n-1] * b<br>
><br>
</div>> *a = 2π * Fc / Fs*<br>
<div>> b = 1.0 - a<br>
><br>
> where Fc is the cut-off frequency and Fs the sampling frequency.<br>
><br>
> I appreciate the a coefficient is bounded afterwards but wouldn't that mean<br>
> that Fc values greater than Fs / 2π will have no impact on the sound being<br>
> processed.<br>
><br>
> For example if Fs is 44100, then Fc values above ~7020Hz will not affect<br>
> the filter.<br>
><br>
> Have I missed something crucial or could this a bug in the code?<br>
><br>
> The simple IIR filter described in<br>
> <a href="http://en.wikipedia.org/wiki/Low-pass_filter" target="_blank">http://en.wikipedia.org/wiki/Low-pass_filter</a> suggests that the actual<br>
> coefficient calculation should be more like:<br>
><br>
> a = 2π*Fc / (2π*Fc + Fs)<br>
><br>
> Looking forward to understand this more!<br>
><br>
> Cheers,<br>
> Joe<br>
><br>
> --<br>
> Follow me on Twitter @diplojocus<br>
<br>
</div>> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at" target="_blank">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>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Follow me on Twitter @diplojocus
</div>
</div></div><br>_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">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>
<br></blockquote></div></div></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Follow me on Twitter @diplojocus
</div>