corrected helpfiles

nix
Pierre Alexandre Tremblay 6 years ago
parent 93b64182fa
commit 2de56d9481

@ -190,7 +190,7 @@ Routine{
) )
// list the indicies of detected attacks - the two input channels have been summed. The two channels of the output, respectively onset and offset indices, are interleaved as this is the SuperCollider buffer data formatting // list the indicies of detected attacks - the two input channels have been summed. The two channels of the output, respectively onset and offset indices, are interleaved as this is the SuperCollider buffer data formatting
c.getn(0,c.numFrames*2,{|item|item.postln;}) c.getn(0,c.numFrames*2,{|item|(item*2).postln;})
// a more readable version: deinterleave onsetand offset // a more readable version: deinterleave onsetand offset
c.getn(0,c.numFrames*2,{|items|items.reshape(c.numFrames,2).do({|x| x.postln});}) c.getn(0,c.numFrames*2,{|items|items.reshape(c.numFrames,2).do({|x| (x*2).postln});})
:: ::

@ -153,5 +153,5 @@ Routine{
) )
// list the indicies of detected attacks - the two input channels have been summed. // list the indicies of detected attacks - the two input channels have been summed.
c.getn(0,c.numFrames,{|item|item.postln;}) c.getn(0,c.numFrames,{|item|(item * 2).postln;})
:: ::

@ -125,15 +125,15 @@ FluidBufNoveltySlice.process(s,b, indices: c, kernelSize:31, threshold:0.1, filt
//check the number of slices: it is the number of frames in the transBuf minus the boundary index. //check the number of slices: it is the number of frames in the transBuf minus the boundary index.
c.query; c.query;
//play slice number 2 //play slice number 3
( (
{ {
BufRd.ar(1, b, BufRd.ar(1, b,
Line.ar( Line.ar(
BufRd.kr(1, c, DC.kr(2), 0, 1), BufRd.kr(1, c, DC.kr(3), 0, 1),
BufRd.kr(1, c, DC.kr(3), 0, 1), BufRd.kr(1, c, DC.kr(4), 0, 1),
(BufRd.kr(1, c, DC.kr(3)) - BufRd.kr(1, c, DC.kr(2), 0, 1) + 1) / s.sampleRate), (BufRd.kr(1, c, DC.kr(4)) - BufRd.kr(1, c, DC.kr(3), 0, 1) + 1) / s.sampleRate),
0,1); 0,1);
}.play; }.play;
) )

Loading…
Cancel
Save