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

[sc-users] Re: Tdef



chanof wrote
> Hi there, i tried to trigger two different synthdefs by one Tdef with a
> pattern, like below, x and y are the names of synthdefs which i tied to
> trig.
> Any idea??
> Thanks!
> 
> (
> Tdef(\x, {
> 	var f= (Pseq([Pshuf([x,y,y,x,x, y,y,x],2)], inf)).asStream;
> 	loop{
> 		s.sendMsg("/s_new", f.next, -1,0,0);
> 		0.12.wait;
> 	}
> })
> );

In your code example, x and y are not names. They are variables.

If you want them to be names, they must be either "strings" or \symbols.

Pshuf([\x, \y, ...], 2)

hjh



--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Tdef-tp7629803p7629807.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.

_______________________________________________
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/