Sample process: Auto correlation (on sample loop)

After the death of my beloved EMU e6400, I am missing some functions that could be developed in Renoise, or at least I would be happy to have them :smiley:.

The first: Auto Correlation

Auto correlation simply means automatic correlation or comparison. The computer analyzes the signal around the loop points you have specified and then moves the end point of the loop until it finds a section of the wave that closely matches the section around the start point (phase and gain).

To be clearer:
Schermata del 2020-08-14 14-09-31

Not this:
Schermata del 2020-08-14 14-08-45