Hello all! I wrote a quick and dirty implementation for the bungee timestretching library. It’s dirty because it still allocates on the audio thread (i was thinking of just allocating on a re-entering thread and swap, but don’t have time atm), but apart that it’s really fun to use.
I’m not him, but I tested the ugen as well and what I understood about it’s usage is that the position is ‘sampled’ upon trigger from the trigPos. The position would then be normalized internally between 0-1.
This works for me:
(
b = Buffer.read(s, ExampleFiles.child);
{
var sig;
var trig = Dust.kr(2) ! 4;
sig = BufPlayBungee.ar(b,
speed: {2.0.exprand(0.01)}!4,
pitch: 0.9,
position: TRand.kr(0,1,trig),
trigPos: trig
);
sig = Pan2.ar(sig,TChoose.kr(trig, [-1,1]));
sig;
}.play;
)