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

Re: [sc-users] out of scope variables when passing functions was: Re: [sc-users] SystemClock-schedAbs explodes when time arg not used?



That's just what I was going to suggest.

hjh

On 9/22/05, Charlls Quarra <charlls_quarra@xxxxxxxxxxxx> wrote:
>  Ok, i found this... solution? hack? workaround? who
> cares?

> 5.do{arg i;
>   var val;
>  val = k;
> SystemClock.schedAbs( thisThread.clock.seconds + i +
> 1.0 , {arg time; myA.dump( val ); nil } );
> ("but while i is "++i++" k is "++k).postln;
> k = k + i;
> }

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

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