-
... ty, and completeness. This document is not specifically intended to cover large-scale tutorials or third party libraries, although it is expected that authors may find these guidelines useful and appropriate in those contexts as well. Gener ...
-
... Pwhite (0, 128), 10, 20).round(2), \dur , 0.05).play; // PdegreeToKey(pattern, scale, stepsPerOctave) // this reimplements part of pitchEvent (see Event) Pbindf ( Pn (q, inf ), \note , PdegreeToKey ( Pbrown (-8, 8, 2), [0, 2, 4, 5, 7, 9, 1 ...
-
... a randomTable randomTable = distribution.asRandomTable; // get random numbers, scale them randomNumbers = Array .fill(numVals, { randomTable.tableRand * (maxValue - minValue) + minValue; }); histogram = randomNumbers.histo(numBins, minValu ...
-
... (sig * env) ! 2) }).add; SynthDef ( \bell , { |out, accent = 0, amp = 0.1, decayScale = 1| var exc = PinkNoise .ar(amp) * Decay2 .kr( Impulse .kr(0), 0.01, 0.05), sig = Klank .ar(`[ { ExpRand (400, 1600) } ! 4, 1 ! 4, { ExpRand (0.1, 0.4) } ...
-
... key names. // set several parameters at once // [background color, num copies, scale, string, [font size in QC units, font]] m.structure = [ Color .red, 4, 1.5, "Hello" , [0.2, "Courier" ]]; m.structure = [ Color .red, 3, 1.5, "World" , [0 ...
-
... hat will do. If by default SinOsc goes between 1 and -1, then a mul of 0.5 will scale that down to between 0.5 and -0.5. Adding 0.5 to that brings it to between 0 and 1, a rather good range for mul! The phase of 1.5pi (this just means 1.5 * ...
-
... rent zoom. factor - An instance of Float . zoomToFrac (frac) Zoom to a specific scale, frac . frac - An instance of Float . zoomAllOut Fill the window with the current selection. zoomSelection (index) Zoom to selections .at( index ). index ...
-
... * 0.5, height * 0.5 ); 6.do { arg i; Pen .rotate( theta * (1 - (i / 6)) ); Pen .scale( 0.7 + (i * 0.4), 0.4 + (i * 0.5) ); Pen .strokeOval( Rect .aboutPoint( Point ( x, y ), 60, 40 )); }; }; x = UserView ( w, Rect ( 10, 10, width - 20, heig ...
-
... f ), \degree , Pseq ([-5, 0, -2], inf ), \legato , Pseq ([1.4, 0.5, 2], inf ), \scale , #[0, 2, 5, 7, 10], \recursionLevel , Prand ([0, 1, 2], inf ) ).play ) ( Pbind ( \type , \phrase , \instrument , \sweep , \synthDef , Prand ([ \pgrain , ...
-
... scope(1); { SinOsc .ar(300, 0, MouseX .kr(0.1,80,1)).wrap2(1) * 0.2 }.scope(1); scaleneg { SinOsc .ar(200, 0, 0.2 ).scaleneg( MouseX .kr(-1,1)) }.scope(1); waveshaping by phase modulating a 0 Hz sine oscillator (currently there is a limit o ...