-
... hape a Sound ( s.waitForBoot({ a={ arg mod=0.05, index=0.05; var r,out,out2; r= Saw .ar(8,0.03); out= PMOsc .ar(440, 660*mod,3*index, 0, Lag .ar(r,0.01,1)); [out, Delay1 .ar(out)]; }.play; w = Window ( "Slider2D" , Rect (100, Window .screen ...
-
... = 440, amp = 0.1, detune = #[0.999, 1.001], gate = 1, out = 0| var sig = Mix ( Saw .ar(freq * (detune ++ [1]), amp)), env = EnvGen .kr( Env .adsr, gate, doneAction: 2); Out .ar(0, (sig * env) ! 2); }).add; SynthDescLib .global[ \controlLis ...
-
... SinOsc .ar(freq), pan, amp); }; ~b = { arg amp, pan, freq; Pan2 .ar( RLPF .ar( Saw .ar(freq), freq * 6, 0.1), pan, amp); }; ~c = { arg pan, freq, amp; Pan2 .ar( Resonz .ar( GrayNoise .ar, freq * 2, 0.1), pan, amp * 2); }; ~orc = [~a, ~b, ~ ...
-
... for data storage that will also encapsulate the unique logic for each part. We saw earlier that Penvir maintains a distinct environment for each stream made from the pattern. In other words, Penvir allows more complicated behavior to be mo ...
-
... ( SinOsc .ar(freq), pan, amp); }; b = { arg amp, pan, freq; Pan2 .ar( RLPF .ar( Saw .ar(freq), freq * 6, 0.1), pan, amp); }; c = { arg pan, freq, amp; Pan2 .ar( Resonz .ar( GrayNoise .ar, freq * 2, 0.1), pan, amp * 2); }; Task ({ n.do({ arg ...
-
... = 5; m.start; ) s.boot; // use mouse to set pan position ( { loop({ { Pan2 .ar( Saw .ar(mul: 0.1) * EnvGen .ar( Env .perc, timeScale: 4, doneAction: 2), m.x_pos) }.play; 1.wait; }); }.fork( AppClock ); ) ////////// Sonogram // could be bett ...
-
... be used together to get more complex results. Patterns within list patterns We saw list patterns ( Pseq , Prand , etc.) that returned numbers from a preset list, either in the order given or rearranged randomly. The list may also include o ...
-
... // this SynthDef has a strong attack, emphasizing the articulation SynthDef ( \sawpulse , { |out, freq = 440, gate = 0.5, plfofreq = 6, mw = 0, ffreq = 2000, rq = 0.3, freqlag = 0.05, amp = 1| var sig, plfo, fcurve; plfo = SinOsc .kr(plfof ...
-
... nt syntax in these two examples { if( LFNoise1 .kr(1.0, 0.5, 0.5) , SinOsc .ar, Saw .ar ) * 0.1 }.play; { Trig1 .ar( Dust .ar(3), 0.2).lag(0.1).if( FSinOsc .ar(440), FSinOsc .ar(880)) * 0.1 }.play; @ y Dynamic geometry support. Returns Poin ...
-
... just a way to give names to values coming out of the types of patterns we just saw. When you ask a Pbind stream for its next value, the result is an object called an Event . Like a Dictionary (which is a superclass of Event), an event is a ...