Esben Stien <b0ef@xxxxxxxxxxxxxxxx> writes:
control timing of events inside a Task
I guess this can be:
k = Task({
arg timeisme;
var startCycle, baseTime;
loop{
startCycle = thisThread.clock.beats;
baseTime = thisThread.clock.beats.roundUp(1);
thisThread.clock.schedAbs(baseTime + timeisme,{Synth("foo");});
(startCycle + 8.0 - thisThread.clock.beats).wait;
}
})
set an offset
In the code above, I provided an arg to the task.
have some variable I could bind a midi controller
~timeonme = Bus.control(s,1);
~timeonme.set(1.0)
k.map(\timeisme, ~timeonme.index);
This won't work, of course. I guess the problem is that I can't figure
out how to control an arg that is provided to a task.
--
Esben Stien is b0ef@e s a
http://www. s t n m
irc://irc. b - i . e/%23contact
[sip|iax]: e e
jid:b0ef@ n n
_______________________________________________
sc-users mailing list
sc-users@xxxxxxxxxxxxxxx
http://www.create.ucsb.edu/mailman/listinfo/sc-users