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

Re: [sc-users] envgen freeing synth immediatelly at synth start



On 16-12-2014 13:01, Peter Morris wrote:
> Miguel,
> 
> I modified your code slightly to use a new group so as not to trash my
> server:
> 
> (
> g = Group.new;
> x = SynthDef(\test, {
> 
>         var env = Env([ 1, 0, 0 ],[ 6, 0 ], \lin );
> 
>         EnvGen.kr(env, \gate.kr <http://gate.kr>(0), doneAction:14).poll
> 
> }).play(g);
> )
> 
> Yes, the freeing of the Group by doneAction: 14 frees both group and
> synth.  I changed the \gate to \gate.kr <http://gate.kr>(1) and that, as
> expected, ran the envelope down to to zero, where the poll stopped.
> 
> Not exactly sure what outcome you are trying to achieve with \gate.kr
> <http://gate.kr>(0) but I can confirm that the behaviours between
> DoneAction 2 and 14 are quite different..  PlotTree confirms what's
> happening, as I'm sure you've checked. . .
> 
> Pete


Hi Pete,

Ok, good that you can reproduce it too. I would expect with \gate.kr(0)
for the synth to just keep playing indefintelly (until I set gate to 1),
which is what happens with all the other doneActions 0-13.

So, I think this is bug, I will add it to github.

best,
Miguel Negrão
http://www.friendlyvirus.org/miguelnegrao

Attachment: signature.asc
Description: OpenPGP digital signature