-
... ow freq noise { Pulse.ar(SinOsc.ar(XLine.kr(1,8000,20)).range(1,2000))*0.2 !2}.play ) ( // LFPulse doesn't sound like an analogue synth due to loads of aliasing { LFPulse.ar(SinOsc.ar(XLine.kr(1,8000,20)).range(1,2000))-0.5*0.4 !2}.p ...
-
... i+1; }); d.postln; ) ( Pbind( \instrument, \puls, \out, 0, //array a plays in left channel \dur, 0.1, \freq, Pseq((1+a)*30) //steps of 30Hz ).play; Pbind( \instrument, \puls, \out, 1, //array b plays in right chan ...
-
... r.read(s, "/Users/alg31/Downloads/but-music.wav"); // buffer handy tools: b.play; // check number of channels b.numChannels; // check duration b.duration; // check how many samples are in the sample b.numFrames; //SynthDefs ...
-
... the pad { Out.ar(k, Decay2.ar(Impulse.ar(2), 0.01, 1) * SinOsc.ar(80).dup) }.play; // shitty kick { Out.ar(x, Splay.ar(Saw.ar([60, 62, 65, 67].midicps/2)) * 0.5) }.play; // shitty pads // master out ( z.free; // so you can change p ...
-
Re: Load and play samples from GUI (Qt GUI only), adapted to use SoundFile:cue by lfsaw (LFSaw) Code
*Needs Qt GUI (VLayout)* ----- Basic GUI for loading samples and playing them via button presses. Differences to the original version by rukano: + adapted to use SoundFile:cue + you can start and stop playing the samples //samplePlaye ...
-
... env; env = Env.pairs([[0,10], [48, 15]], \lin).kr(doneAction: 2); snd = PlayBuf.ar( numChannels: 1, bufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); ...
-
... in(Ptime(inf) * 0.5).linexp(-1, 1, 1/10, 1), \amp, Pexprand(0.5, 1.0, inf) ).play(quant: 1); ) ~ob6.allNotesOff(0); ( Event.addEventType(\OB6_NRPN, { var midiout = ~midiout.value; var chan = ~chan.value; var nrpnNum = ~nrpn ...
-
... Klank.ar(`(f.(a[0], 0.7) ++ 0.2), Impulse.ar(MouseX.kr(1, 1000, 1))) * 0.001 }).play; Ndef(\vow, { Klank.ar(`(f.(a[0], 0.3) ++ 0.2), Impulse.ar(MouseX.kr(1, 1000, 1))) * 0.001 }).play; Ndef(\vow, { Klank.ar(`(f.(a[2], 0.7) ++ 0.2), Impuls ...
-
plays an arpeggio on the "left hand" and an arpeggio on the "right hand" ( s.boot; ) ( SynthDef(\smooth, { |freq = 440, sustain = 1, amp = 0.5| var sig; sig = SinOsc.ar(freq, 0, amp) * EnvGen.kr(Env.linen(0.05, sustain, 0.1) ...
-
... , \sus, 0.6, \rel, 1.5, \modFreqRatio, 0.5, \modDepth, 0.4 ).play.stop; }.value; { var melody2, notes, durs; melody2 = [ [10, 1], [9, 1/2], [10, 1/2], [8, 1/2], [5, 1/2], [10, 1], [9, 1/2], [10, 1/2], ...