The goal is a multitrack loopstation (in the likes of boss rc-505)
Have written some code that finally seems to work
One issue though
How to add multiple buffers to audio output?
The goal is to have 5 buffers and the live line input going to the line output
What was tried so far:
adding the buffer to the output inside the NextSamples() call => adds a high pitched noise
making NextSamples() return the buffer and adding it inside the AudioCallback() => also adds a high pitched noise
dont have much knowledge on this and no idea what could be causing the issue
can still work on the function of the looper in the meantime, but without fixing this, it will never manage to be a multitrack looper
instead of sending the output (float) into the NextSamples() function
the NextSamples() function returns the current buffer position (float)
each track gets stored in its own variable
all are added together at once, going right into the output