-
... instance methods Examples ( x = {arg threshold=10.0; var input, onsets; input = SoundIn.ar(0); onsets= SLOnset.kr(input,20,5,5,threshold); Out.ar(0, SinOsc.ar(440,0,0.1)*Decay2.ar(K2A.ar(onsets), 0.01, 0.1)); }.play; ) x.set(\threshold, 10. ...
-
... from "ssss" through to "aaaa" through to "wwww". ( { var in, chain, perc; in = SoundIn .ar([0,1]).mean; chain = FFT (b, in); //Out.ar(0, in * 0.1); perc = SpecPcile .kr(chain, 0.5); Out .ar(1, LPF .ar( WhiteNoise .ar, perc)); //NB Outputti ...
-
... / microphone input - use headphones to prevent feedback ( { var in, chain; in = SoundIn .ar(0, 0.5); chain = FFT ( LocalBuf (2048), in); chain = PV_ConformalMap (chain, MouseX .kr(-1.0,1.0), MouseY .kr(-1.0,1.0)); IFFT (chain).dup; }.play; ...
-
... // Live input plus noise, pitch shifted, with a little dust input = ({ (SoundIn.ar(0) * 5) + (PinkNoise.ar * 0.5) } ! 2); input = input + PitchShift.ar(input, 0.2, 2, 0.5, 0.1); input = input + Dust2.ar(20, 2); // For e ...
-
... tio ) }.play ) x.free; //with live input - beware of feedback! ( x = { var in = SoundIn.ar(0); PitchShiftPA.ar( in, Pitch.kr(in)[0], //pitch tracking - we take just the frequency MouseX.kr(0.5, 2), //pitchRatio MouseY.kr(0.5, 2), //formantR ...
-
... / examples: // execute this: a = Bus.audio; // then this: b = { Out.ar(a, SoundIn.ar(0)) }.play; // sing, whistle, or play a steady held note, then execute this line of code: c = Synth(\prm_GrainFreeze, [\inBus, a, \outBus, 0, \at ...
-
... bject Read a signal from a bus. Source: InOut.sc See also: InFeedback , LagIn , SoundIn Description In.ar and In.kr read signals from audio and control buses, respectively. (See the Busses chapter of the Getting Started tutorial series for ...
-
... ( SynthDef ( "pitchFollow1" ,{ var in, amp, freq, hasFreq, out; in = Mix .new( SoundIn .ar([0,1])); amp = Amplitude .kr(in, 0.05, 0.05); # freq, hasFreq = Pitch .kr(in, ampThreshold: 0.02, median: 7); //freq = Lag.kr(freq.cpsmidi.round(1). ...
-
... ries Dgeom Dseq Dser Drand Dxrand Dswitch1 Dwhite Diwhite Dbrown Dibrown In/Out SoundIn In InTrig InFeedback Out ReplaceOut XOut OffsetOut LocalIn LocalOut SharedIn SharedOut Oscillators Blip Formant FSinOsc Gendy1 Gendy2 Gendy3 Impulse Kla ...
-
... po = 8, out_bus=0, theta = 1.57; var in, out; // read in mono // in = LeakDC.ar(SoundIn.ar(in_bus)); in = PlayBuf .ar(1, buffer, loop: 1); // sweep through with a mono sin tone... see how the sound moves? // in = SinOsc.ar(MouseX.kr(40, 400 ...