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

Re: [sc-users] changing the rate of Routine



Try using Pseg. It produces interpolated line segments, either linear
or with a curve given by the user.

r = Task({
	var	durStream = Pseg(Pseq([2.0, 0.1], inf), 10).asStream;
	loop {
		"!@#$%".scramble.postln;
		durStream.next.wait;
	}
}).play;

hjh

On 12/29/05, Chan <MultoChan@xxxxxxxxxxx> wrote:
> Hi List.
> I can't find any documentation on how to change the rate of
> a routine in realtime.
> For example if
> I have a routine with 1.wait...play(SystemClock)..as below,
> how could I change this code so that the rate
> increases or decreases gradually - As XLine would do in
> the synthesis side.

--
James Harkins /// dewdrop world
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