-
... ar snd; amp = Lag.kr(amp, 1); snd = Select.ar( which: whichNoise, array: [ PinkNoise.ar(amp), WhiteNoise.ar(amp * 0.6), GrayNoise.ar(amp * 0.7), BrownNoise.ar(amp), ClipNoise.ar(amp * 0.5)]); snd = ...
-
... i; ChordSymbol.asDegrees(item, Scale.major)}); // collect the chords into a 2D array p = [0, 2, 1, 3]// new pattern o = [0, 7, 7, 0] ( ~bass = Pbind( \instrument, \default, \octave, 4, \scale, Scale.major, \dur, Pbjorklun ...
-
... Decay2.ar(trig, 0.01, 0.2); phase = DelTapWr.ar(~buf, dry); iois = Array.geom(numEchoes, ioiScale, ioiDecayFactor); cumulDelay = iois.sum; (cumulDelay > ~buf.duration).if { Error("use a larger buffer").throw; ...
-
... OverAction_({helpView.string = "basic frequency in Hz";}); var waveformMenu = Array.fill(4, {|i|PopUpMenu().items_(["SinOsc","LFTri","LFSaw","WhiteNoise"]).action_({modField.valueAction_(modField.value)}).mouseOverAction_({helpView.string ...
-
... axvel(maxvel); boids.gravity(0.25); boids.gravpoint(0.5,0.5); boidcolour = Array.fill(numboids,{Color.rand}); w = Window.new.front; w.view.background_(Color.white); w.drawFunc = { var theseboids = boids.getBoids; numboids.do ...
-
... s code, I stumbled on this nostalgic sound. ( SynthDef(\lofi, { var sig = Array.fill(3, { |n| SinOsc.ar( \freq.kr(440) * (1 + 0.02.rand) * (n+1), mul: \amp.kr(0.1) / (n*n+1)) }).sum; var cu ...
-
... %)", it, it.class)}].postln }) ) // send messages... // show message array e.oscMsgs.do{|osc| osc.postln}; "" ( // write object file f = File("~/tmp/oscRecorderOut.txt".standardizePath,"w"); f.write(e.oscMsgs.asCompileSt ...
-
... s.size); if(i%(deltas.size) == 0, //adds random value to each term of random array on beat one of each bar after bar 1 {randos = randos.collect({arg item, i; item+(rrand(-1* maxStep, maxStep))})} //{"test".postln} ); }; }; ...
-
... ( ~xox = {|str| str.collectAs({|l| switch(l.toLower,$x, {1}, $o, {Rest(1)})}, Array)}; ) ( SynthDef(\acid, { arg out, freq = 1000, gate = 1, pan = 1, cut = 4000, rez = 0.8, amp = 1, sustain = 1, release = 0.5; var sig, env; ...
-
useful for expanding or reducing arrays by 2^x. I would like to know if there is a more concise way to write this! Any suggestions? (duplicate post, sorry! forgot to log in!) ( b = {|x,y| var arr = List[]; case {y % x ...