Now all the crackling has been removed because when the note changes the app waits until the cycle of the sine of the currently playing note is finished