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

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



On Jun 6, 2006, at 7:01 PM, Kyrre Laastad wrote:

Does the same problem occur if you run the Synth playing task only,
without the synth manipulating one?

That's it! It's working now.  I don't know what's wrong about the synth controlling task, though, it's quite basic:

sample1_ratetask = Task({
inf.do({
sample1_play.set(\ratearray, sample1_ratearray);
sample1_length.rand.wait;
})
});

This task might wait for 3 seconds, or 0.1 seconds, or 1.213 seconds... since it isn't synchronized in any way with the synth playing task, you could be sending the set message not long after the synth is created.

What happens if you create the synth manually, outside the routine, then send the set message manually? If it's the same thing (the synth gets stopped), it could mean that the value you're passing over is invalid.

What's the value of the sample1_ratearray variable?

Also, what is freeing the synths? Your synths are going to pile up and eventually choke the CPU.

James


: H. James Harkins

: 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