//loops over a splice with the MouseX, taking the respective onset and offset of a given slice
(
(
{
{
BufRd.ar(1, b,
BufRd.ar(1, b,
Phasor.ar(0,1,
Phasor.ar(0,1,
BufRd.kr(1, c,
BufRd.kr(2, c,
MouseX.kr(0, BufFrames.kr(c) - 1), 0, 1),
MouseX.kr(0, BufFrames.kr(c)), 0, 1)[0],
BufRd.kr(1, c,
BufRd.kr(2, c,
MouseX.kr(1, BufFrames.kr(c)), 0, 1),
MouseX.kr(1, BufFrames.kr(c)), 0, 1)[1],
BufRd.kr(1,c,
BufRd.kr(2,c,
MouseX.kr(0, BufFrames.kr(c) - 1), 0, 1)), 0, 1);
MouseX.kr(0, BufFrames.kr(c)), 0, 1)[0]
), 0, 1);
}.play;
}.play;
)
)
::
::
@ -209,6 +212,6 @@ Routine{
}.play
}.play
)
)
// 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. The two channels of the output, respectively onset and offset indices, are interleaved as this is the SuperCollider buffer data formatting