-
... .ar( in: snd, freq: LFNoise2.kr(1).range(lofreq, hifreq) ); snd = Splay.ar(snd); Out.ar(0, snd); }).add; ( SynthDef("plucking", {arg amp = 0.1, freq = 440, decay = 5, dampen = 0.1; var env, snd; env = Env.linen(0, ...
-
Load a MIDI file and play it with your own SynthDef. Examples of how to use it with Pbindf // you can create your midi file using MuseScore, Finale, Sibelius, Logic, etc. // TIP: create one separate midi file per layer (melodies, chords, e ...
-
//1. play{p=Pulse;GVerb.ar(IFFT(PV_BrickWall(FFT(Buffer.alloc(s,128),WhiteNoise.ar*p.ar(8,5e-4)+SinOsc.ar(9*p.ar(1),0,n=p.kr(p.ar(5)))),n)))}//w8 //2. play{a=SinOsc;p=Pulse;WhiteNoise.ar*p.kr(8,0.01)+a.ar(98*n=p.ar(4),0,p.kr(2,add:1))+G ...
-
simple example showing how to play one soundfile after the other in a sequence. use as a template. //playing soundfiles in sequence - one after the other s.boot; ( s.latency= 0.05; b.do{|x| x.free}; //free all previous buffers b= [ ...
-
... ); snd = BPF.ar( in: snd, freq: 500, rq: 5 ); snd = Splay.ar(snd); snd = snd * In.kr(55); snd = Pan2.ar(snd, pan); Out.ar(0, snd); //DetectSilence.ar(snd, doneAction: 2); }).add; SynthDef(" ...
-
In Divisions - Midterm: Plunderphonics with Granular Sampling (musc-9-plunderphonics) by jonathan-coon (Jonathan Coon) Code
... ger Remix).wav", channels: [0]); // Listen to the sound file if you want: { PlayBuf.ar(2, b) }.play; // Why not some instant fun, right? { PlayBuf.ar(2, b, MouseX.kr(0, 2)) }.play; // ************************************** // 2) ...
-
// a drum part play{b=SinOsc.kr(1);a=Line.kr(0.1,2*pi,37);FreeVerb.ar(SinOsc.ar(b*340!2*Impulse.kr(b*680),LFPulse.kr(2,0,pi/2),LFPulse.kr(3,0,1/pi*a)))} //sticky morning clock play{c=LFPulse.kr(0.5);b=SinOsc.kr(0.0034);a=Line.kr(0.1,2 ...
-
took five of my own tweets and played them at the same time. //redFrik - redo_minimalish sketch ( s.waitForBoot{ SynthDef(\p, {|out= 0, freq= 400, amp= 0.1, gate= 1, detune= 0| var env= EnvGen.ar(Env.perc(Rand(0.001, 0.01), LinRan ...
-
... rand([\rest, Pseq([24, 31, 36, 43, 48, 55])], inf), \dur, 0.2, \amp, 0.5 ).play; ) b.stop; // middle arpeggio ( m = Pbind( \instrument, "spacey", // \midinote, Pseq([60, 63, 67, 74], inf), // compare this line and below ...
-
... rd (just) Ndef(\a, { Saw.ar(freq: [60.midicps, 60.midicps * 5/4], mul: 0.1) }).play // Major third (ET12) Ndef(\a, { Saw.ar(freq: [60.midicps, 64.midicps], mul: 0.1) }).play; // Major second (just) Ndef(\a, { Saw.ar(freq: [60.midicps ...