« Return to Thread: Is it possible to Pbind arrays?

Re: Is it possible to Pbind arrays?

by James Harkins-2 :: Rate this Message:

Reply to Author | View in Thread

On May 12, 2008, at 1:52 PM, Eduard Resina Bertran wrote:

Is there any way to Pbind a whole array as the value to an event's key?

I mean something like:

Pbind(
\instrument, \dynklankexample,
\freqs, `[150, 300, 600, 900],
\dur, 2).play;

That does associate the whole array with the freqs key:

p = Pbind(
\instrument, \dynklankexample,
\freqs, `[150, 300, 600, 900],
\dur, 2).asStream;

p.next(());

--> ( 'instrument': dynklankexample, 'dur': 2, 'freqs': [ 150, 300, 600, 900 ] )

So what isn't happening that should be in your case? Pbind is constructing the event properly according to the pattern's specification.

hjh


: H. James Harkins

: jamshark70@...

: http://www.dewdrop-world.net

.::!:.:.......:.::........:..!.::.::...:..:...:.:.:.:..:


"Come said the Muse,

Sing me a song no poet has yet chanted,

Sing me the universal."  -- Whitman



_______________________________________________
sc-users mailing list
sc-users@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-users

 « Return to Thread: Is it possible to Pbind arrays?

LightInTheBox - Buy quality products at wholesale price