Pruners

Initial concept

I'm back at using vcv, but there are some modules that I'm missing, mainly : Strymon magneto (especially the shift mode) and Qu-bit data bender (mainly the repeat mode).
Thus I decided to make this myself !
Here is a quick list of functionality I want to implement : The buffer will be the same for all the heads with an array keeping track of the 4 counters.

Getting rid of buffer clicks

When the buffer loops around, it produces an audible click, to overcome this, when the rec is finished, I pop_back the last 1000 samples and fade them in at the beginning:
float fade_time = 1000;
for (int i = fade_time; i >= 0; i--){
    RingBuffer[i]=RingBuffer[i]*(i/fade_time)+RingBuffer[buffer_size-(fade_time-i)]*(1-(i/fade_time));
    RingBuffer.pop_back();
}