(
SynthDef.new(\pulseTest, {
arg fund=40, maxPartial=8, width=0.5;
var freq1, freq2, sig1, sig2;
freq1 = LFNoise0.kr(4).exprange(fund, fund*maxPartial).round(fund);
freq2 = LFNoise0.kr(4).exprange(fund, fund*maxPartial).round(fund);
sig1 = freq1*LFPulse.ar(8, add:1);
sig2 = freq2*LFPulse.ar(6, add:1);
sig1 = FreeVerb.ar(sig1, 0.7, 0.8, 0.25);
sig2 = FreeVerb.ar(sig2, 0.7, 0.8, 0.25);
Out.ar(0, sig1);
Out.ar(1, sig2);
}).add;
)
Now if you issue: x = Synth.new(\pulseTest); it will work ... this is a sort of 'broke your speaker' Synth, but anyway
Last advice, if you're a newbie try to use the least possible 'cut'n paste' , if you write each line of code you will discover implementation errors, logic errors and finally you will remember the classes and methods you're using.
have fun
:Dan