At the time I first implemented this it was the only way. Ill update it,
also at the time I implemented this some browsers still used noteOff.