-
... }; } addBoid {|initPos| var boid, initVel; initPos = initPos ? centerOfMass; // place it near the center of the flock initVel = centerOfVel; // give it the average velocity of the flock boid = BoidUnit2D.new(initVel, initPos, bounds, center ...
-
... is time only loading of a SuperCollider source file is possible. `Scene` is the place where one adds and removes `nodes`. As can be seen in the above diagram, there are three types of `node`: - `Source` (or generator), in other words, an in ...
-
... e model-view-controller design pattern suggests that we keep values in a single place (the model), and notify objects that display or use those values (views) when a value changes. Connection provides a ControlValue class to store values, a ...
-
... complete soundfield, allowing and encouraging the composer to think beyond the placement // of sounds in a sound-space and instead attend to the impression and image of a soundfield. // This approach takes advantage of the model the Ambiso ...
-
... r window. If the parent is nil , then EZSlider will create its own Window , and place it conveniently on the screen if the bounds are a Point . If the bounds are a Rect , then the Rect determines the window bounds. bounds An instance of Rec ...
-
... written it // three years ago, for that matter. Let's add automation to it: // Place the control GUI in above window, and set the control's length // to 30 seconds (that's simply and only for the time slider). control = Automation(30).fron ...
-
... the key value pair already exists in the Dictionary, the key's value will be replaced. ( d = Dictionary.new; d.add(\monkey -> 0).postln; d.add(\robot -> 1).postln; // Add robot as a key with a value of 1 d.add(\monkey -> 2).postln; // Repl ...
-
... / m; while({ m > 0 }, { //TO DO: MAKE INTO A FUNCTION (CAN BE USED AT MULTIPLE PLACES) if((angle-0.0).abs < 1e-14 or: { (angle-pi).abs < 1e-14 } or: { (angle-2pi).abs < 1e-14 }, { zroots = zroots.add(magnitude) }, { if((angle-0.5pi).abs < ...
-
... ey. For the first event, the first key is 'degree' and the value is 0 . This is placed into the event before moving to the next pair: the event in transition contains ( 'degree': 0 ) . Then the next key supplies 0.5 for 'dur' , and since th ...
-
... he mechanics are different depending on your platform. The macOS standard is to place the cursor anywhere on this line and press the "Enter" key on the numeric keypad. Pressing the main return key does not execute code! This allows you to w ...