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

Re: [sc-dev] Scheduler -> seconds



hi all,
can someone commit this small fix please ? =)

thanks,

x

On 10/31/06, Sciss <contact@xxxxxxxx> wrote:
hallo,

in Scheduler.rtf (Help file):

// scheduling tasks

(
x = Scheduler(TempoClock.default);

Task {
        inf.do { |i|
                ("next " ++ i ++  " in task." + Main.elapsedTime).postln;
                0.5.wait;
        }
}.play(x)
)

x.advance(0.1);
x.seconds;
x.advance(5);
x.seconds;


---> throws an error, because 'seconds' is not a recognized instance
method of Scheduler.

Looking in Clock.sc:

Scheduler {
        var clock, drift, beats = 0.0, seconds = 0.0, queue;

... should this perhaps be changed into:

Scheduler {
        var clock, drift, beats = 0.0, <seconds = 0.0, queue;

?

ciao, -sciss-

_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-dev