-
... heir dur //doneaction will free the synth at the end of control line.kr = dur * PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum), loop: 0) ,pan) ,cutFrequency) ) } ) ; aDef.send(server) ; } setGain { arg value; gain = value; } readGain { ^gain ...
-
... last]; ///f.numFrames; end= lengths[last]; ///f.numFrames; //CutBuf3 Synth((\cb3playbuf++(f.numChannels)), [\bufnum, buffer.bufnum, \startPos,start,\dur, (end/f.sampleRate), \atk,0.0,\rel,0.0]); //f.numFrames overview.setSelectionStart(0,st ...
-
... e sample? (phrasepos%beatlength) }); //in frames since about to synthesise with PlayBuf //.round(1).asInteger; ^if(beatorframe==0, {((posbeats/beatlength)*numFrames)},{posbeats}); } convertoffset {arg block, beatorframe=0; ^if(beatorframe== ...
-
... ZeroXBufRd // as the trigger deltas are given by the source then. ( { var src = PlayBuf .ar(1, b, BufRateScale .ir(b)); // write zero crossings, but no need to overwrite sound buffer ZeroXBufWr .ar(src, b, z, startWithZeroX: 1, writeSndBuf: ...
-
... ns, numchans); Server.default.sync; // Copying data from b to c: { RecordBuf.ar(PlayBuf.ar(numchans, b, BufRateScale.ir(b), doneAction: 2), c, loop:0) * 0.1; }.play; Server.default.sync; 1.0.wait; c.loadToFloatArray(action: { |data| // The ...
-
... = 1, attack = 0.001, decay = 0.02, ffreq = 2000, rq = 1, outbus| var sig; sig = PlayBuf.ar(1, bufnum, rate * BufRateScale.kr(bufnum), 1, start, 0) * EnvGen.kr(Env.linen(attack, time, decay), doneAction:2); sig = BLowPass/*RLPF*/.ar(sig, ffr ...
-
... undle) }); } guiClass { ^SampleGui } play { // for testing ^Patch({ arg sample; PlayBuf.ar(sample.numChannels, sample.bufnumIr, sample.bufRateScaleKr, 1.0, 0.0, 1.0) },[ this ]).play } asSignal { arg channel; // nil is stereo interleaved, o ...
-
... undle) }); } guiClass { ^SampleGui } play { // for testing ^Patch({ arg sample; PlayBuf.ar(sample.numChannels, sample.bufnumIr, sample.bufRateScaleKr, 1.0, 0.0, 1.0) }, [ this ]).play } asSignal { arg channel; // nil is stereo interleaved, ...
-
... { this.do({ | entry | this.remove(entry); this.add(entry.algaAsStream) }) } } //PlayBuf bug with canFreeSynth +PlayBuf { algaCanFreeSynth { ^inputs.at(6).isNumber.not or: { inputs.at(6) > 1 } } } +Nil { //Fundamental for bug-prone trying to ...
-
... var env = EnvGen.kr(Env.asr(0.5, 1, 10), gate: gate, doneAction: 2); var src = PlayBuf.ar( 1, bufnum, BufRateScale.kr(bufnum) * rate, startPos: BufFrames.kr(bufnum) * Rand(0, 1), loop: 1 ); src = LPF.ar(src, dampFreq); Out.ar(out, src * am ...