-
... uf| // currentEnvironment.postln; ~loopTempo = ~getLoopTempo.(buf.sampleRate); ~bufFrames = ~buf.numFrames; ~defaults.put(\instrument, switch(~buf.numChannels) { 1 } { \bufGrainPan } { 2 } { \bufGrainPan2 } ); }); ~defaults[\bufnum] = ~buf. ...
-
... ufnum: buffer, rate: rate, startPos: startPos.linlin(0, 1, 0, BufFrames.kr(buffer)) ); snd = snd * env; snd = Pan2.ar(snd, panning); Out.ar(0, snd); }).add; SynthDef("hihat", {arg out = 0, amp = 0.5, ...
-
... mber of channels in the buffer bufSamples - the number of samples in the buffer bufFrames - the number of frames in the buffer The buffer is locked using the LOCK_SNDBUF macro. Buffer lock operations are specific to supernova, and don't do ...
-
... layBuf.ar(1, bufnum, BufRateScale.kr(bufnum), trig, speed.linlin(0, 10.0, 5000, BufFrames.kr(bufnum)), 0)*0.7; Decay2.ar(trig, 0.01, 0.1, in); } ); ~steeringBehavior1 = Arrive(~unit1.entity, RealVector2D[18, 20.5]); ~unit1.entity.force_({ a ...
-
... layBuf.ar(1, bufnum, BufRateScale.kr(bufnum), trig, speed.linlin(0, 10.0, 5000, BufFrames.kr(bufnum)), 0)*0.7; Decay2.ar(trig, 0.01, 0.1, in); } ); ~steeringBehavior1 = Arrive(~unit1.entity, RealVector2D[18, 20.5]); ~unit1.entity.force_({ a ...
-
... doneAction:2); Out .ar(out, BufRd .ar(1, bufnum, Line .ar(from, to, sustain) * BufFrames .kr(bufnum) ) * env ) }).store; ) s.sendMsg( "/b_allocRead" , 170, "sounds/a11wlk01.wav" ); ( Pdef ( \poch , { arg sustain=1.0, from=0.0, to=1.0, n=3; ...
-
... n: Done.freeSelf); Out.ar(out, BufRd.ar(1, bufnum, Line.ar(from, to, sustain) * BufFrames.kr(bufnum) ) * env ) }).add; ) b = Buffer.read(s, ExampleFiles.child) ( Pdef(\poch, { arg sustain=1.0, from=0.0, to=1.0, n=3; var step; sustain = sust ...
-
... doneAction:2); var rate= freq.explin(20, 12000, 1/3, 3); var pos= \pos.kr(0)%1*BufFrames.ir(buf); var loop= \loop.kr(1); var snd= PlayBuf.ar(1, buf, rate*BufRateScale.ir(buf), 1, pos, loop)*amp; Out.ar(out, Pan2.ar(snd*env, pan)); }).add; ...
-
... s; src = PlayBuf .ar(1, sndBuf, BufRateScale .kr(sndBuf) * rate, 1, round(pos * BufFrames .kr(sndBuf)), 1, 2); env = EnvGen .ar( Env ([0, amp, amp, 0], [att, granDur - att - rel, rel], 0), doneAction: 2 ); OffsetOut .ar(out, Pan2 .ar(src, p ...
-
... pos; src = PlayBuf.ar(1, sndBuf, BufRateScale.kr(sndBuf) * rate, 1, round(pos * BufFrames.kr(sndBuf)), 1, 2); env = EnvGen.ar( Env([0, amp, amp, 0], [att, granDur - att - rel, rel], 0), doneAction: 2 ); OffsetOut.ar(out, Pan2.ar(src, pan) * ...