Hi Olivier,
biquad is already defined in maxmsp.lib, this is why the compiler complains. In
Faust it
is forbidden to redefine a symbol. So you should remove your own definition of
biquad
(which was anyway incorrect as x was missing from the formal parameters list).
Moreover your process is not correct because S1..S7 are not defined and the 7
biquads are
used without suppling the a0..b2 parameters.
Cheers
Yann
Le 01/05/2014 18:08, Olivier Baudry a écrit :
>
>
> Dear all
>
> I write today biquad structure like this
>
>
> import("math.lib");
> import("maxmsp.lib");
> import("music.lib");
> import("oscillator.lib");
> import("reduce.lib");
> import("filter.lib");
> import("effect.lib");
>
>
> //le biquad dans max est définit avec 0.029, 0.058, 0.029, -1.647, 0.764);
>
>
> a0 = 0.029;
> a1 = 0.058;
> a2 = 0.029;
> b1 = -1.647;
> b2 = 0.764;
> biquad(a0,a1,a2,b1,b2) = + ~ ((-1)*conv2(b1, b2)) : conv3(a0, a1, a2)
> with {
> conv2(c0,c1,x) = c0*x+c1*x';
> conv3(c0,c1,c2,x) = c0*x+c1*x'+c2*x'';
> };
>
> //soit 7 entrées de signal S1 à S7 allant vers 7 biquad définit plus haut
> // Le module doit comporter 7 sorties
>
> process = (S1, S2, S3, S4, S5, S6, S7) : (biquad, biquad, biquad,
> biquad, biquad, biquad,biquad);
>
> Is it impossible to compile it : ( maxmsp.lib:161 ERROR: redefinition of
> symbols are not allowed : biquad)
>
>
>
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos. Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
>
>
>
> _______________________________________________
> Faudiostream-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/faudiostream-users
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users