Implemented a buffer on note playback with repeat to prevent lag under UI utilization