Correction: Input and output latencies in fact add up; therefore the best value for the latency variable will ALWAYS be negative.
After recording the video, I made some changes (hopefully improvements) to the script. You can find that version, and the .exe version shown in the video, here: https://gofile.io/d/1zaMO8
The python script from the video is here: https://drive.google.com/file/d/1a5WT...
This is a single-track/single-channel DIY overdub looper or loop "pedal" written in Python.
Sections:
0:00 Intro
0:24 Demo
2:38 Talking about the code
16:39 exe version
18:45 Guitar jam
#psychotenuse