-
... e class appropriate to the gui kit Kit-dependant gui classes have a prefix. For example, to make a window, the CocoaGUI kit uses SCWindow , or the swing kit uses JSCWindow . It is generally discouraged to use the kit-dependant classes direc ...
-
... he note should cut off early and the next event should produce a new synth. The example uses Pfsm (finite state machine) to arrange a set of predefined phrases in a partially randomized order. Each phrase is followed by a list pointing to t ...
-
... ct to capture inside the SCWindow. By default, it is the window size. // WINDOW Example: // First create a window and draw inside of it ( w = SCWindow .new; w.front; // comment this to copy offscreen window w.view.background_( Color .white) ...
-
... r to keep in your head than writing it out. In the list comprehension compiler, simple series like (1..5) and (1..x) are treated as special cases and implemented as loops rather than making a collection. A list comprehension in SC is really ...
-
... s just one pattern; wrapping Plazy in Pn does it many times.) The logic in this example is a bit more involved: for each measure, start with arrays containing the basic rhythmic pattern for each part (kick drum, snare and hi-hat) and insert ...
-
... h) *cacheCapacity *cacheCapacity_ (megaBytes) *cacheActive *cacheActive_ (bool) Examples ( w = SCWindow .new( "soundfile test" , Rect (200, 200, 800, 400)); a = SCSoundFileView .new(w, Rect (20,20, 700, 60)); f = SoundFile .new; f.openRead( ...
-
... ssigned work, and return control to the parent level when it's finished. When a simple pattern finishes, its parent level is the Routine itself. After 'embedInStream' returns, there is nothing else for the Routine to do, so that stream is o ...
-
... n. It only matters when one synth is reading the output of another. The rule is simple: if you have a synth on the server (i.e. an "effect") that depends on the output from another synth (the "source"), the effect must appear later in the c ...
-
... nt for more details. Event as a name space for keeping objects: Because of this simple syntax, Events are often used as name space for keeping objects: // using an event to store values q = (n: 10, x: [1, 2, 3]); q[ \y ] = q[ \x ] * q[ \n ] ...
-
What's that Pbind thing? Some of the examples in the last tutorial played notes using Pbind, and you might be wondering how it works in general and what else you can do with it. In the most general sense, Pbind is just a way to give names t ...