-
... sDo({ arg a, b; [a, b].postln; }); doAdjacentPairs(function) Calls function for every adjacent pair of elements in the SequentialCollection. The function is passed the two adjacent elements and an index. [1, 2, 3, 4, 5].doAdjacentPairs({ ar ...
-
... sopen, pos, queue, cutAt; // first count the elements of each bracket, counting every // subracket as one entry in its parent. // Record them in a tree structure of bracket levels // and order of occurence within each level. tree = List(); ...
-
... l.isKindOf(Number)) { ^1 }; if (val.isKindOf(SequenceableCollection) and: { val.every(_.isKindOf(SimpleNumber)) }) { ^2 }; ^0; // not a numerically displayable value } makeBounds { |inbounds| bounds = inbounds ?? { Rect(0, 0, 200, 24) }; } ...
-
... different locations, from the bridge at pickPos = 0 to the nut at pickPos = 1. Everything else inside ampArray, as well as the line after it, model a pickup with a certain width (parallel to the string) and position, once again from the br ...
-
... \amp, 0.5).play(t, quant:4) // very useful syntax, create a new random rhythm every four bars Pbindef(\z, \buf, Pn(Plazy({Pseq({~bufs.choose}!16,4)})))
-
... 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 ...
-
... l.isKindOf(Number)) { ^1 }; if (val.isKindOf(SequenceableCollection) and: { val.every(_.isKindOf(SimpleNumber)) }) { ^2 }; ^0; // not a numerically displayable value } makeBounds { |inbounds| bounds = inbounds ?? { Rect(0, 0, 200, 24) }; } ...
-
... 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 ...
-
... y 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 ...