-
... tStreamPlayer EventStreamPlayer is a subclass of PauseStream . A PauseStream is just a wrapper for a stream allowing to play, stop, start it, etc... EventStreamPlayers are initialized using the event stream returned by Pbind-asStream, as we ...
-
... ract classes , which means that you don't actually make instances of them, they just exist to provide a common set of methods and variables to their subclasses. We might for instance imagine an abstract class called Dog, which has a number ...
-
... but it's only because there are lots of phrases. The structure is very simple: just a set of phrases chosen in succession by Pfsm. Third-party extension alert: In this example, the selection of the next phrase is explicitly weighted by rep ...
-
... lso Prewrite) // special care is taken so that no infinite loops can happen. // just like with non recursive phrasing, new values override old values, // any values that are not provided within the pattern definition // are passed in from t ...
-
... loset.removeAll([ \hat , \coat , \shoe , \shoe ]); // Doesn't empty the closet, just removes what we wanted to See removeEvery (below) for a related method that removes all occurrences. removeEvery(aCollection) Remove all occurrences of the ...
-
... me -- sequencing sonic events using patterns. Don't worry about how Pbind works just yet... all in good time. Let's start with a very quick reference of some basic patterns. More complete descriptions follow this list. The list might seem l ...
-
... Pen .moveTo(0@0); Pen .lineTo(50@100); Pen .lineTo(100@100); // forget what we just drew Pen .beginPath; Pen .moveTo(100@100); Pen .lineTo(0@150); Pen .lineTo(-100@100); Pen .lineTo(-50@100); Pen .lineTo(0@0); Pen .stroke }; w.refresh; ) * ...
-
... reply is received. Examples // boot the default server s = Server .default; // just to be sure s.boot; ( // send a synth def to server SynthDef ( "tpulse" , { arg out = 0,freq = 700, sawFreq = 440.0; Out .ar(out, SyncSaw .ar(freq, sawFreq, ...
-
... ndler = {value = View .currentDrag; v.doAction }; // what to do on receiving // just for testing drag and drop Slider (w, Rect (50,100,200,20)); StaticText (w, Rect (50,150,350,50)).string_( "To Test Drag and Drop,\nHold down Cmd (Ctl) Key" ...
-
... seconds Env .new([0,1,0.1,0],[0.5,0.5,2], 'lin' , 2, 0).test(3.5).plot; // this just sustains at node 0, because there is no other node to loop around! Env .new([0,1,0],[0.5,2], 'lin' , 1, 0).test(3.5).plot; // more complex example: release ...