-
... inote, Pkey(\val).collect {|x| Array.series(x.round, 60 - (x * 1.2), 5) + Array.rand(x.round, -0.8, 0.8) }, \legato, 0.6, \amp, 0.05] ).play; ) // cleanup (freeing buses and nodes) by pressing Cmd-. or explicitely p.free; ////////////////// ...
-
... ue; usrView.refresh; }); }; maxNumber.value= range[1]; presetsPop.items= #["", "random notes", "Octaves", "Overtones", "Overtones2", "Cmaj7", "D#m"]; presetsPop.action= {|view| switch(view.value, 0, { keys.do{|key| key.put(\isClicked, false ...
-
... .if { ^this[index] } { ^nil } } oneOfTop { arg num; ^this.at(num.min(this.size).rand) } mapMode { arg mode, scAccidentals = false; ^this.collect({ |item| item.mapMode(mode, scAccidentals) }); } unmapMode { arg mode, scAccidentals = false; ^ ...
-
... ded for that calculation should also be present in the Event. // schedule for a random number of beats after the next integer Pfuncn({ thisThread.clock.beats.debug("scheduled for"); nil }, 1) .play(quant: ( nextTimeOnGrid: { |self, clock| c ...
-
... out of the box pattern classes). Proto ({ ~event = (eventKey: \default ); ~startRand = 10; ~lengthLow = 3; ~lengthHi = 12; ~step = #[1]; ~scaleSeg = #{ Pseries (~startRand.rand, ~step.choose, rrand(~lengthLow, ~lengthHi)); }; ~asPattern = # ...
-
... out of the box pattern classes). Proto ({ ~event = (eventKey: \default ); ~startRand = 10; ~lengthLow = 3; ~lengthHi = 12; ~step = #[1]; ~scaleSeg = #{ Pseries (~startRand.rand, ~step.choose, rrand(~lengthLow, ~lengthHi)); }; ~asPattern = # ...
-
... my name is... panel", Rect(128, 64, 340, 360)); 32.do({ |i| b = Button(w, Rect(rrand(20, 300), rrand(20, 300), 75, 24)); b.states = [["Start "++i, Color.black, Color.rand], ["Stop "++i, Color.white, Color.red]]; }); w.front; ) ⧉ ✔ Using Dec ...
-
... that does nothing runs really fast bench({ nil }); // filling a big array with random numbers takes a while longer. bench({ Array.rand(100000, 0.0, 1.0) }); // different operations may take different times bench({ 100000.do { 3.hypot(2) } ...
-
... ay fromHexString black white clear gray grey red green blue cyan magenta yellow rand hsv Inherited class methods Instance methods red green blue alpha hexString == scaleByAlpha blend vary complementary multiply divide subtract add symmetric ...
-
... nt, \perkysine, {arg freq=400, amp=1; var osc; osc = SinOsc.ar( [freq,freq+0.05.rand] ) * EnvGen.ar( Env.perc, doneAction: 2) * 0.2; osc*amp; } ); SynthFile.postAll(\block); ////////// //BLOCKS!!!! //patterns Radicles.document; ( Block.cloc ...