-
... they result in BinaryOpUGen s or UnaryOpUGen s, through the methods of AbstractFunction . This is a list of some of the common unary and binary operators that are implemented by several classes. See the specific classes for details and oth ...
-
... k = 1; ) // other fixed cycle ~src = 2; p.stop ⧉ ✔ Ex. 8: Proof of concept ( // Function to check an array for repetitions within a maximum test span ~repetitionCheck = { |array, maxTestSpan| maxTestSpan.do { |i| var result = (array.drop(i+ ...
-
... things you can do to arrays also work with patterns. collect(func) Applies the function to each return value from the pattern. Good for generic transformations. select(func) Preserve values from the output stream that pass the Boolean test ...
-
... ols to use the server in SuperCollider. To create the resources, Pproto takes a function in which one or more Event objects contain the instructions to create them. These events should use specific event types, described in Pproto's help fi ...
-
... e = [1, 1.5, 3 %/ 5, 8 %/ 5, 1.342]; e.sort; ⧉ ✔ Continued fractions Recursive function to calculate finite continued fractions: f = { | x | if (x == 0) { 1 %/ 1 } { 1 + Rational(1, f.(x-1)) } }; a = 20 collect: f.(_); a.plot; ⧉ ✔ Stern-Br ...
-
... ompute in cents. For octave-based systems, you would usually use 1200. action A function to be evaluated once computing the curve is complete. . spectrum Create a curve based on a Spectrum Arguments: spectrum a Spectrum highInterval The lar ...
-
... the Mosca GUI and its sources may be controlled by SuperCollider code using the functions defined in the class MoscaBase. Similarly, Mosca parameters may be used to modulate synths. See the file MoscaBase.sc in the source for the available ...
-
... nything a nodeproxy accepts as source : a SynthDef, a Symbol (synthdef name), a function, ... useSpawn a flag whether to put obj into slot 0. As voicers usually have individual voices and not a preferred front synth, default = false. . synC ...
-
... iders[0].loc.map, \lpfRes, ~quNeo.vSliders[0].press.map ]) }.fork ) ( //Calling functions { SynthDef(\test, {|freq1, freq2, amp, lpfFreq, lpfRes| var sin = Saw.ar(freq1) * Saw.ar(freq2) * amp; lpfFreq = lpfFreq * 3000 + 200; sin = sin * Env ...
-
... +.-1 y; // z added to each element of y ⧉ ✔ deepCollect deepCollect operates a function at different dimensions or depths in an array. z = Array.iota(3, 2, 3); f = {|item| item.reverse }; z.deepCollect(0, f); z.deepCollect(1, f); z.deepCol ...