Hi Olivier,
The maxmsp.lib definition of biquad collides with
your definition of biquad in the global namespace.
I've taken to using library() to avoid such
collisions by placing each loaded library into its own namespace:
ml = library("music.lib");
ol = library("oscillator.lib");
fl = library("filter.lib");
el = library("effect.lib");
biquad(a0,a1,a2,b1,b2) = + ~ ((-1)* fl.conv((b1, b2))) ...
- Julius
At 09:08 AM 5/1/2014, Olivier Baudry wrote:
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
Julius O. Smith III <[email protected]>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/
------------------------------------------------------------------------------
"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