-
... ouseX .kr(0.1,1.0)); SinOsc .ar([440, 445], 0, Decay .ar(0.1 * detect, 0.1)); }.play; ) // using test sound: // mouse y is difficulty, mouse x is threshold ( { var source1, detect, difficulty, rate; rate = LFNoise1 .kr(0.3).exprange(1, 5); ...
-
... the pattern. (The associated files are closed. These objects can be used to cue playback buffers) SoundFile .collect( "sounds/*" ).do { |f| f.path.postln }; *use(path, function) Reads the data of a SoundFile, evaluates the function (passing ...
-
... 5%3 //should post 2 19.1%6.4 //also works on floats { FSinOsc .ar(100, 4) % 1 }.play // results in a sawtooth wave
-
... [0.7, 0.3], inf ), melodies), \dur , Pwrand (#[0.25, 0.5], #[0.4, 0.6], inf ) ).play; ) p.stop; Reading an array forward or backward arbitrarily Here's an interesting one. We have an array of possible output values, and we want the pattern ...
-
... fset added to all frequencies at initialization time. // frequency modulation ( play { DynKlang .ar(`[ [800, 1000, 1200] + SinOsc .kr([2, 3, 4.2], 0, [13, 24, 12]), [0.3, 0.3, 0.3], [pi,pi,pi] ] ) * 0.1 }; ) // building new synths every 2 s ...
-
... like a ping-pong ball. PingPong is actually a compound built upon RecordBuf and PlayBuf . bufnum - first index of a multi channel buffer . inputArray - an array of audio inputs, the same size as your buffer. delaytime - delay time in second ...
-
... elp-Pan2" , { Out .ar(0, Pan2 .ar( PinkNoise .ar(0.4), FSinOsc .kr(2), 0.3)) }).play;
-
... gnal pan - cross fade position from -1 to +1 level - a control rate level input play({ LinXFade2 .ar( FSinOsc .ar(800, 0, 0.2), PinkNoise .ar(0.2), FSinOsc .kr(1)) });
-
... SynthDef ( "help-GrayNoise" , { arg out=0; Out .ar(out, GrayNoise .ar(0.1) ) }).play; )
-
... th ( \help_sinegrain , [ \freq , x.next.midicps, \dur , 0.2]); 0.17.wait; }) }).play; ) // a more complicated example: ( c = Ppatlace ([ Pxrand ([ Pseq (#[0, -2, -3, -5, -7], 1), Pwhite (-12, 4, 3), Pshuf (#[0, -2, -3, -5, -7], 1) ], inf ), ...