[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Synth call not working within task
Den 6. jun. 2006 kl. 20.18 skrev Joshua Parmenter:
Hi Kyrre,
Ah, we meet again, Monsieur Parmenter!
Is there a need to assign the output of Synth to a variable?
Yeah, there is. I'm manipulating the rate of it with a seperate task
with a sample1_play.set.
sample1_playtask = Task({
1.do({
sample1_length.wait;
Synth("sample1_play", [\sample_length, 4, \ratearray, 1, \loop,
1], s, \addToHead);
})
});
This works, but I don't know how to control it afterwards.
Also... do you have the same problem using Server Messaging?
This works as well, but I don't know how to control that one either.
That may say more about me, though.
sample1_playtask = Task({
1.do({
sample1_length.wait;
s.sendMsg(\s_new, "sample1_play", sample1_play = s.nextNodeID, 0,
1, \sample_length, 4, \ratearray, 1, \loop, 1);
})
});
I don't know why this isn't working. It shouldn't make a difference
if it's called as a variable or not? I just tried calling as variable
a = Synth("etc...., and that worked as well, but not when I tried to
call it sample1_play, or just play. Weird.
Josh
Thanks,
Kyrre.