update velocity if note keeps playing
made test source-code constistent with main source-code