View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide

How to use an event stream directly without playing it?

Home   How To   Code Pool   Public Library   Theory   Events
a = Pbind(\note, Prand([1, 3, 4], inf)).asStream;

// passing in an default event
a.next(Event.default); 
z = a.next(Event.default);
z.use { ~midinote.value } // for example

// Pevent
x = Pbind(\note, Prand([1, 3, 4], inf));
a = Pevent(x, Event.default).asStream;
a.next;

// pattern composition
x = Pbind(\note, Prand([1, 3, 4], inf));
a = (x <> Event.default).asStream;
a.next;


Link to this Page