musikinformatik / Steno

Concatenative little metalanguage for live coding
GNU General Public License v2.0
65 stars 7 forks source link

replacement of routing function has incorrect fading input #25

Closed telephon closed 7 years ago

telephon commented 7 years ago
t = Steno.push;
t.setGlobal(\attack, 5, \fadeTime, 5);
t.filter(\f, { |in, controls| SinOsc.ar(ExpRand(1000, 2000), 0, Decay.ar(Impulse.ar(10, Rand(0, pi)), 0.01))  * controls[\env].postln });
t.filter(\i, { |in, controls| RLPF.ar(in, Rand(4000, 8000), 0.1) });

Then do:

-- f(i)
-- f[i] // sound stops until fade time is over

and

-- f
-- f(i) // works
-- f // same problem

So it is the fade-out section of the routing function.

The problem is either in Steno::initSynthDefs, or in Stack::endParallel.

telephon commented 7 years ago

Maybe this is a hint?

https://github.com/telephon/Steno/blob/master/Classes/StenoSignal.sc#L105