Bug? : Env.asr doesn't release

View: New views
4 Messages — Rating Filter:   Alert me  

Bug? : Env.asr doesn't release

by Dionysis Athinaios :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Is it only me?

Env.asr(0.02, 0.5, 1, -4).test(2).plot;

Best

Dionysis

Re: Bug? : Env.asr doesn't release

by Dionysis Athinaios :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Really sorry to reply to my own thread...

I really need to solve this fast as it breaks the code
for an installation that I am going to present
in 10 days.  Any help would be greatly appreciated.

Best :)

Dionysis

Dionysis Athinaios wrote:
Is it only me?

Env.asr(0.02, 0.5, 1, -4).test(2).plot;

Best

Dionysis

Re: Bug? : Env.asr doesn't release

by James Harkins-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There's no bug with the envelope.

a = { |gate = 1|
var sig = SinOsc.ar(400, 0, 0.1),
eg = EnvGen.kr(e, gate, doneAction: 2);
(sig * eg) ! 2
}.play;

a.set(\gate, 0); // the node will release here

The bug is in the test method. For some reason, it seems to be clumping the s_new with the release in the same bundle... no idea why.

Anyway, 'test' is not to be trusted with gated envelopes.
hjh

On Apr 25, 2009, at 9:31 AM, Dionysis Athinaios wrote:


Really sorry to reply to my own thread...

I really need to solve this fast as it breaks the code 
for an installation that I am going to present 
in 10 days.  Any help would be greatly appreciated.

Best :)

Dionysis


: H. James Harkins
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman


Re: Bug? : Env.asr doesn't release

by Dionysis Athinaios :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks James :)

I was misguided by the test example. My
problem was that I had .set([\gate, 0]).
But my code used to work like that in the
past for sure! Anyway I am not going to try
to solve that...

Thanks again :)

James Harkins-2 wrote:
There's no bug with the envelope.

a = { |gate = 1|
        var sig = SinOsc.ar(400, 0, 0.1),
                eg = EnvGen.kr(e, gate, doneAction: 2);
        (sig * eg) ! 2
}.play;

a.set(\gate, 0); // the node will release here

The bug is in the test method. For some reason, it seems to be  
clumping the s_new with the release in the same bundle... no idea why.

Anyway, 'test' is not to be trusted with gated envelopes.
hjh

On Apr 25, 2009, at 9:31 AM, Dionysis Athinaios wrote:

>
> Really sorry to reply to my own thread...
>
> I really need to solve this fast as it breaks the code
> for an installation that I am going to present
> in 10 days.  Any help would be greatly appreciated.
>
> Best :)
>
> Dionysis


: H. James Harkins
: jamshark70@dewdrop-world.net
: http://www.dewdrop-world.net
.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal."  -- Whitman