An audio effect to extend the sustain of a musical note in real-time is implemented on a fixed point, standalone processor. Onset detection is used to look for new musical notes, and once they decay to steady state, the audio is looped indefinitely until a new note onset occurs. To properly loop the audio, pitch detection is performed to extract one period and the new output buffer is written in a phase aligned manner.
展开▼