Hi, I’m trying to add a looper-pedal like setup in my Sonic-Pi. Here’s my naive code:
b = buffer(:looperbuf, 4) live_loop :looper do with_fx :record, buffer: b do sample b live_audio :qsynth, input: 3, stereo: true sleep 4 end end
Since I’m leaving all of the mix, pre_amp and amp settings to their default I’d expect the buffer to be re-recoded identically on each loop, mixing in the live_audio if any. But this doesn’t appear to be the case: on my current build of 3.2 this behaves more like an echo effect, repeating the audio after a delay of 4 but fading over time. I can try to adjust
amp on the sample but that isn’t very satisfying. It seems that
amp: 1.4 is close to keeping the signal at the same level over time, but I’m not sure how well it would hold over a long period of time.
Is there an easier way to have a similar setup that does not attenuate over time? Maybe some parameter I overlooked? Thanks!