-
... default initial params { LinCongN .ar( MouseX .kr(20, SampleRate .ir)) * 0.2 }.play(s); // randomly modulate params ( { LinCongN .ar( LFNoise2 .kr(1, 1e4, 1e4), LFNoise2 .kr(0.1, 0.5, 1.4), LFNoise2 .kr(0.1, 0.1, 0.1), LFNoise2 .kr(0.1) ) ...
-
... default initial params { LinCongC .ar( MouseX .kr(20, SampleRate .ir)) * 0.2 }.play(s); // randomly modulate params ( { LinCongC .ar( LFNoise2 .kr(1, 1e4, 1e4), LFNoise2 .kr(0.1, 0.5, 1.4), LFNoise2 .kr(0.1, 0.1, 0.1), LFNoise2 .kr(0.1) ) ...
-
... default initial params { LinCongL .ar( MouseX .kr(20, SampleRate .ir)) * 0.2 }.play(s); // randomly modulate params ( { LinCongL .ar( LFNoise2 .kr(1, 1e4, 1e4), LFNoise2 .kr(0.1, 0.5, 1.4), LFNoise2 .kr(0.1, 0.1, 0.1), LFNoise2 .kr(0.1) ) ...
-
... { Mix .new([ PinkNoise .ar(0.1), FSinOsc .ar(801, 0.1), LFSaw .ar(40, 0.1)]) }.play *fill(n, function) A common idiom using Mix is to fill an Array and then mix the results: ( play({ Mix .new( Array .fill(8, { SinOsc .ar(500 + 500.0.rand, ...
-
... sary byte code is generated and sent to the server, where a synth is created to play the desired audio. So Function's audio methods provide a kind of convenience for you, so that you don't have to take care of this. So how do you make a Syn ...
-
... ostln; Ref .new(123).dereference.postln; Yet another example of polymorphism is play . Many different kinds of objects know how to play themselves. { PinkNoise .ar(0.1) }.play; // Function ( // AppClock var w, r; w = Window .new( "trem" , R ...
-
... ation stream ends. See UGen-doneActions for more detail. // examples s.boot; // play a little rhythm { TDuty .ar( Dseq ([0.1, 0.2, 0.4, 0.3], inf )) }.play; // demand ugen as durations // amplitude changes ( { var trig; trig = TDuty .ar( Ds ...
-
... l be streamed. For example, we used this routine to output MIDI note numbers to play a couple of phrases from 'Over the Rainbow.' r = Routine ({ [60, 72, 71, 67, 69, 71, 72, 60, 69, 67].do({ |midi| midi.yield }); }); while { (m = r.next).no ...
-
... (1, 40, 1)); freq = Demand .kr(trig, 0, a) * 30 + 340; SinOsc .ar(freq) * 0.1 }.play; ) // audio rate ( { var a, freq, trig; a = Dseq ([ Dshuf ({ 10.rand } ! 81, 5)], inf ).poll; trig = Impulse .ar( MouseX .kr(1, 10000, 1)); freq = Demand . ...
-
... r, fadeTime, numChannels, rate): Creates a private group and bus for the synths played by the pattern. The group and bus are released when the pattern stops. Useful for isolating signals from different patterns. Pgroup(pattern): Creates a p ...