Hello i get this error:
expected unqualified-id before ‘-’ token in expansion of macro ‘mydsp’
while trying to compile my dsp code to a pd-externals.
The code works fine when compiling into an jack application
thank you,
Moritz
import("envelopes.lib");
import("maths.lib");
import("basics.lib");
import("oscillators.lib");
import("vaeffects.lib");
import("ahr.dsp");
//--------GUI----------------------
spread = hslider("spread", 0, 0, 1, 0.01);
freq = hslider("freq", 0, 0, 1, 0.01) * 127 : midikey2hz ;
c = hslider("mix", 0.5, 0, 1, 0.01);
//Filter
cutoff = hslider("cutoff", 0, 0, 1, 0.01) * 7000 /*: fmin(10)*/;
q = hslider("res", 0.3, 0, 1, 0.01);
fa = hslider("attack-vcf", 0, 0, 1, 0.01);
fh = hslider("hold-vcf", 0, 0, 1, 0.01);
fr = hslider("release-vcf", 0, 0, 1, 0.01);
envAmt = hslider("vcf-amount", 1, 0, 1, 0.01)*5000;
//Amp Envelope
a = hslider("Attack", 0, 0, 1, 0.01);
h = hslider("Hold", 1, 0, 1, 0.1);
r = hslider("Release", 0, 0, 1, 0.01);
trigger = button("Trigger");
//--------PROCESS----------
saw = par(i,5,sawtooth(freq+((i*2)-4)*spread)) :> *(0.25);
pwm = par(i,5,square(freq+((i*2)-4)*spread)) :> *(0.25);
mix = saw * c + pwm * (1-c);
filter = mix : moog_vcf( q, cutoff + (envAmt * ahr(fa,fh,fr,trigger)));
amp = filter * ahr(a,h,r,trigger);
process = amp;
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users