Would it make sense to do this in stopNotes instead of here? stopNotes is also called when a note is played during note entry.