-
... test } tearDown { // this will be called after each test } test_yourMethod { // every method named test_ // will be run this.assert( 6 == 6, "6 should equal 6"); this.assertEquals( 9, 9, "9 should equal 9"); this.assertFloatEquals( 4.0 , 1. ...
-
... .postln }); ⧉ ✔ Notice that when you do this, 'SystemClock' prints immediately. Every time you run something in SuperCollider, it has to return a value right away; the method's return value is the clock. Before returning, however, the clock ...
-
... vanced use only. Suggest you never put this too low, ie near zero, because then every possible lag in the autocorrelation becomes a potential peak, CPU cost goes up, and results won't necessarily be any good. Inherited class methods Instanc ...
-
... fills based on musical motifs lifted from Squarepusher tracks. The fills occur every fourth bar by default, but change their frequency with this parameter. fillscramble chance of a fill being scrambled, rather than played back exactly as s ...
-
... wnAction = { "you touched me".postln; }; ) ⧉ ✔ focus on the slider. notice that every key stroke is passed, the slider does not swallow them. or you can use KeyCodeResponder kcr = KeyCodeResponder.new; kcr.option( 36 -> { "option 36".postln ...
-
... le servers with the same options, or to archive different sets of options, etc. Every Server has an instance of ServerOptions created for it if one is not passed as the options argument when the Server object is created. (This is the case f ...
-
... have fast frequencies, the CPU cost goes up a lot because a new CP move happens every sample! Class Methods Gendy4. ar ( ampdist: 1 , durdist: 1 , adparam: 1.0 , ddparam: 1.0 , minfreq: 440 , maxfreq: 660 , ampscale: 0.5 , durscale: 0.5 , i ...
-
... wn, a sub pattern must be returned directly into the event. To accomplish this, every such pattern should be wrapped in a Ref : Pseq([`Pwhite(0, 9, 5), `Pwhite(10, 19, 5)], 1).asStream.all; ⧉ ✔ Hint: Pfunc is another good way to wrap patter ...
-
... lves, let's go over some standard parameters used across many event types. (Not every common parameter is used in every event type, but these turn up in lots of places.) Common parameters Timing control \delta Number of beats until the next ...
-
... cy works, we need to understand the concepts of logical time and physical time. Every clock in SuperCollider has both a logical time and physical time. Physical time always advances, represents real time. Logical time advances only when a s ...