Just to say I got this working in the end by taking the new maxmsp.lib and
putting it in faustgen~.mxo. I had tried this previously, but got spurious
results since I had clipped the coefficients.
I still find it extremely difficult to get faust syntax correct when recursion
is involved. Hoping it's all going to click at some point.
this morning i got stuck with the code below, trying to recreate biquad
manually
oli
//import("maxmsp.lib");
//c(i) = hslider("coeff%3i", 0.,-100, 100, 1e-20);
//dummy coefficients
c(0) = 0.1;
c(1) = 0.2;
c(2) = 0.3;
c(3) = 0.4;
c(4) = 0.5;
biquadx(x,a0,a1,a2,b1,b2) = ff(x) : fb
with {
ff(x) = (x * a0) + (x' * a1) + (x'' * a2);
fb(y) = (y - _) ~ (y' * b1) + (y'' * b2); // recursion incorrect
};
//process(x) = biquad(x, c(0), c(1), c(2), c(3), c(4));
process(x) = biquadx(x, c(0), c(1), c(2), c(3), c(4));
On 8 Feb 2014, at 11:59, urban wrote:
> Oli Larkin wrote:
>> Hi,
>>
>> I'm struggling to use filtergraph~ with biquad in maxmsp.lib - the filter
>> response is significantly different to using a biquad~ object in MaxMSP. I
>> tried urban's suggestion in a previous post of inverting the b1 and b2
>> coefficients, but that results in NaN.
>>
>> Does anyone know what the issue is here?
>
> If I recall right, Stephane fixed the issue (at the cost of backward
> compatibility). Try using the coeffs as they come out of filtergrap~ .
>
>
>> ps. Ideally i'd like to replicate the functionality of using cascade~
>
> I used a ffunction in a recursive structure for that purpose but it was
> too expensive, so I abandonned the project. If you still want to
> calculate coeffs in maxmsp, then use them in faust, I can provide the
> code, but it is merely a proof of concept. My table of coeffs reads
> about 10000 entries. The text files were originally written by coll~ .
>
> Cheers,
> Urban
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users