[sc-users] Re: Control Pbind's sequence

Renick Bell renick at gmail.com
Tue Dec 12 00:45:17 PST 2006


AH, here's one that I can answer :)

(

w = JSCWindow("step through a Pseq", Rect(0, 0, 200, 50));

b = JSCButton(w,Rect(0,0,150,30));
b.states = [
			["press here to step",Color.black],
			];
b.action =
	{arg step;
	b = a.next;
	b.postln;
	};
w.front;

a = Pseq([60, 62, 63], inf).asStream; // Minor feels better to me...
b = a.next;

c = Pbind(
        \midinote, Pfunc({b}),
	\dur, 0.08,
	\delta, 0.1
);

c.play;

)

How's that?

-- 
Renick Bell
http://www.the3rd2nd.com


More information about the sc-users mailing list