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

Re: [sc-users] time trace



Hi,

time with respect to the player can also be get by Ptime

(
p = Pbind(
	\degree, Pseq((0..7)),
	\dur, 1,
	\time, Ptime.new
);

~pattern = Pdef(\myPat, p).trace.play(quant: 1);
);


Now your example with repeated embedding of the pattern with Pseq is
a bit special, time also starts from 0 again:

(
p = Pbind(
	\degree, Pseq((0..7)),
	\dur, 1,
	\time, Ptime.new
);
~pattern = Pdef(\myPat, Pseq([p], inf)).trace.play(quant: 1);
);


If you don't want that you can e.g. do this:


(
p = Pbind(
	\degree, Pseq((0..7)),
	\dur, 1
);
q = Pbindf(Pn(p), \time, Ptime.new);

~pattern = Pdef(\myPat, q.trace.play(quant: 1));
);


Regards

Daniel

-----------------------------
www.daniel-mayer.at
-----------------------------




_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/