[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] Event's sustain





2014-11-29 15:02 GMT+01:00 yota morimoto <yotamorimoto@xxxxxxxxx>:

[...] 
legato inconsistent between different tempi.
[...]

I don't think so, but maybe try:

s.boot;

(
SynthDef("test", { | out = 0, amp = 0.1, gate = 1, freq = 440, tempo = 1 |
var src, eg, r;
r = freq.reciprocal;
eg = Linen.kr(gate, r, 1, r, 2);
src = "" width: 0.4);
Out.ar(out, src * eg * amp)
}).add;

v = Pbind(
\instrument, "test", 
\degree, Pseq([ 0, 7, 6, 7, 4, \ ], inf), 
\legato, 0.5, // change this
\out, Pn(Pseries(0, 1, 2))
).play
)

// line by line
v.clock.tempo = 3;
v.clock.tempo = 0.5;
v.clock.tempo = 7;
v.clock.tempo = 15;


v.stop;