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

Re: [sc-users] Synth call not working within task



Hi Kyrre,

On Jun 6, 2006, at 4:56 AM, Kyrre Laastad wrote:

sample1_playtask = Task({
1.do({
sample1_length.wait;
sample1_play = Synth("sample1_play", [\sample_length, 4, \ratearray, 1, \loop, 1], s, \addToHead);
})
});


Is there a need to assign the output of Synth to a variable?

sample1_playtask = Task({
1.do({
sample1_length.wait;
Synth("sample1_play", [\sample_length, 4, \ratearray, 1, \loop, 1], s, \addToHead);
})
});

Also... do you have the same problem using Server Messaging?

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);
})
});

Josh