noteDelay function finished