[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-users] SynthDef in Ndef mystery
How come I observe the following behavior?
( boot interpreter, server )
SynthDef(
\foo,
{ |out=nil, freq=440, amp=0.5, gate=1, pos=0.14, c1=1, c3=30,
release=0.1, fB=2|
var env = Env.new([0,1, 1, 0],[0.001,0.006, 0.0005],[5,-5, -8]);
var egen = EnvGen.ar(env, gate);
var inp = amp * LFClipNoise.ar(2000) * egen;
var son = DWGPluckedStiff.ar(freq, amp, gate, pos, c1, c3,
inp, release, fB);
DetectSilence.ar(son, 0.001, doneAction:2);
Out.ar(out, son * 0.2);
}
).add;
Pbind(
\instrument, \foo,
\out, 0,
\fB, Pseq([2, Rest(), 1000, Rest()], inf), // two different tones
\dur, 1
).play;
( boot interpreter, server )
(
Ndef.ar(\foo, 1);
Ndef(\foo).quant = nil;
)
Ndef(\foo,
SynthDef(
\foo,
{ |out=nil, freq=440, amp=0.5, gate=1, pos=0.14, c1=1, c3=30,
release=0.1, fB=2|
var env = Env.new([0,1, 1, 0],[0.001,0.006, 0.0005],[5,-5, -8]);
var egen = EnvGen.ar(env, gate);
var inp = amp * LFClipNoise.ar(2000) * egen;
var son = DWGPluckedStiff.ar(freq, amp, gate, pos, c1, c3,
inp, release, fB);
DetectSilence.ar(son, 0.001, doneAction:2);
Out.ar(out, son * 0.2);
}
)
)
Pbind(
\instrument, \foo,
\out, 0,
\fB, Pseq([2, Rest(), 1000, Rest()], inf), // the same tone??
\dur, 1
).play;
Thank You For Your Attention
--
Time is an imaginary number. Entropy always wins.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/