Re: [PD] Resonant filter using cpole~ czero~

2012-02-25 Thread Frank Barknecht
On Fri, Feb 24, 2012 at 12:46:13PM -0500, Mathieu Bouchard wrote: Le 2012-02-24 à 09:07:00, Frank Barknecht a écrit : I made it half signal-rate: The object accepts signal parameters, but these are just linearly interpolated internally, i.e. they don't move correctly on a circle. If you

Re: [PD] Resonant filter using cpole~ czero~

2012-02-24 Thread Frank Barknecht
On Sun, Feb 19, 2012 at 11:33:28AM -0500, Mathieu Bouchard wrote: Le 2012-02-03 à 09:46:00, Frank Barknecht a écrit : Most filters in the rj library (https://github.com/rjdj/rjlib) use a similar approach. They even include a biquad-clone written with elementary filters. Why would you

Re: [PD] Resonant filter using cpole~ czero~

2012-02-24 Thread Mathieu Bouchard
Le 2012-02-24 à 09:07:00, Frank Barknecht a écrit : I made it half signal-rate: The object accepts signal parameters, but these are just linearly interpolated internally, i.e. they don't move correctly on a circle. If you interpolate, it means that you are doing something at non-signal

Re: [PD] Resonant filter using cpole~ czero~

2012-02-19 Thread Mathieu Bouchard
Le 2012-02-03 à 09:46:00, Frank Barknecht a écrit : Most filters in the rj library (https://github.com/rjdj/rjlib) use a similar approach. They even include a biquad-clone written with elementary filters. Why would you clone biquad using elementary filters ? Is it just to show that it's

Re: [PD] Resonant filter using cpole~ czero~

2012-02-19 Thread Mathieu Bouchard
Le 2012-02-02 à 19:13:00, Mike Moser-Booth a écrit : a = -r² b = 2r*cos(ω) c = 1 (an overall gain is applied separately, which is like scaling a,b,c all at once) I don't think this is entirely accurate. I think a and c should be switched here, though of course when finding b²-4ac that doesn't

Re: [PD] Resonant filter using cpole~ czero~

2012-02-19 Thread Mike Moser-Booth
On Sun, Feb 19, 2012 at 1:04 PM, Mathieu Bouchard ma...@artengine.ca wrote: Le 2012-02-02 à 19:13:00, Mike Moser-Booth a écrit : I don't think this is entirely accurate. I think a and c should be switched here, though of course when finding b²-4ac that doesn't really matter. It depends

Re: [PD] Resonant filter using cpole~ czero~

2012-02-19 Thread Mathieu Bouchard
Le 2012-02-19 à 14:08:00, Mike Moser-Booth a écrit : Pretty sure, though I mess that up all the time. Aren't you supposed change the signs of the feedback coefficients when z-transforming the difference equation? Why would you change the signs of a and b but not c ? (Was I giving the

Re: [PD] Resonant filter using cpole~ czero~

2012-02-19 Thread Mike Moser-Booth
On Sun, Feb 19, 2012 at 4:54 PM, Mathieu Bouchard ma...@artengine.ca wrote: Why would you change the signs of a and b but not c ? (Was I giving the formula relative to ax²+bx+c=0 or did I assume ax²+bx=c by accident ?) I think it has to do with where c is in the difference equation: c*y[n] =

Re: [PD] Resonant filter using cpole~ czero~

2012-02-19 Thread Mathieu Bouchard
Le 2012-02-19 à 17:48:00, Mike Moser-Booth a écrit : On Sun, Feb 19, 2012 at 4:54 PM, Mathieu Bouchard ma...@artengine.ca wrote: Why would you change the signs of a and b but not c ? (Was I giving the formula relative to ax²+bx+c=0 or did I assume ax²+bx=c by accident ?) I think it has to do

Re: [PD] Resonant filter using cpole~ czero~

2012-02-19 Thread Mike Moser-Booth
On Sun, Feb 19, 2012 at 6:12 PM, Mathieu Bouchard ma...@artengine.ca wrote: Le 2012-02-19 à 17:48:00, Mike Moser-Booth a écrit : On Sun, Feb 19, 2012 at 4:54 PM, Mathieu Bouchard ma...@artengine.ca wrote: Why would you change the signs of a and b but not c ? (Was I giving the formula

Re: [PD] Resonant filter using cpole~ czero~

2012-02-19 Thread Mathieu Bouchard
Le 2012-02-19 à 22:31:00, Mike Moser-Booth a écrit : To clarify, think of the z-transform of the filter as H(z) = 1/A(z), where A(z) = 1 - 2r*cos(ω)*z^-1 + r^2*z^-2. If we decide c=1, b=2r*cos(ω), and a=r^2, we have A(z) = c - bz^-1 + az^-2. In order to apply the quadratic formula, those

Re: [PD] Resonant filter using cpole~ czero~

2012-02-19 Thread Mike Moser-Booth
On Sun, Feb 19, 2012 at 10:41 PM, Mathieu Bouchard ma...@artengine.ca wrote: Curiously (but not interestingly), it's in d_osc.c instead of d_filter.c. This makes no sense and you shouldn't try to make sense of it. Just use grep or any other means to search multiple files for a word, and you'll

Re: [PD] Resonant filter using cpole~ czero~

2012-02-03 Thread Frank Barknecht
On Thu, Feb 02, 2012 at 03:32:00AM +, Ed Kelly wrote: Here is my first attempt at making a resonant lowpass filter using cpole~ and czero~ objects. It's the first version I've made which actually sounds halfway towards what I want to achieve, which is a decent diode-ladder or

Re: [PD] Resonant filter using cpole~ czero~

2012-02-02 Thread Patrice Colet
De: Ed Kelly morph_2...@yahoo.co.uk Hi all, Here is my first attempt at making a resonant lowpass filter using cpole~ and czero~ objects. It's the first version I've made which actually sounds halfway towards what I want to achieve, which is a decent diode-ladder or transistor-ladder

Re: [PD] Resonant filter using cpole~ czero~

2012-02-02 Thread Charles Henry
On 2/2/12, Patrice Colet colet.patr...@free.fr wrote: De: Ed Kelly morph_2...@yahoo.co.uk Hi all, Here is my first attempt at making a resonant lowpass filter using cpole~ and czero~ objects. It's the first version I've made which actually sounds halfway towards what I want to achieve,

Re: [PD] Resonant filter using cpole~ czero~

2012-02-02 Thread Mathieu Bouchard
Le 2012-02-02 à 12:50:00, Patrice Colet a écrit : De: Ed Kelly morph_2...@yahoo.co.uk Here is my first attempt at making a resonant lowpass filter using cpole~ and czero~ objects. using biquad~ gives very nice results for resonant filtering, ggee audio filters show how it sounds. It should be

Re: [PD] Resonant filter using cpole~ czero~

2012-02-02 Thread Mathieu Bouchard
Le 2012-02-02 à 11:40:00, Mathieu Bouchard a écrit : So a real ax²+bx+c is something between a pair of [rpole~] and a pair of [cpole~]. It's equivalent to a pair of [cpole~] in which you force two numbers to be the same, and two other numbers to be negatives of each other. Actually, [bp~] is

Re: [PD] Resonant filter using cpole~ czero~

2012-02-02 Thread Mike Moser-Booth
On Thu, Feb 2, 2012 at 1:37 PM, Mathieu Bouchard ma...@artengine.ca wrote: Le 2012-02-02 à 11:40:00, Mathieu Bouchard a écrit : Actually, [bp~] is pretty much a 2-pole resonant real filter, right ? Yep. Both poles sit right on top of each other along the real axis. The input parameters f

[PD] Resonant filter using cpole~ czero~

2012-02-01 Thread Ed Kelly
Hi all, Here is my first attempt at making a resonant lowpass filter using cpole~ and czero~ objects. It's the first version I've made which actually sounds halfway towards what I want to achieve, which is a decent diode-ladder or transistor-ladder filter emulation. I want to make this using

[PD] Resonant filter using cpole~ czero~

2012-02-01 Thread Ed Kelly
Ooops! Here's the patch.   Gemnotes-0.1alpha: Live music notation for Pure Data http://sharktracks.co.uk/ filter_0.01.pd Description: Binary data ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -