cleanup and linting in the music animator: specifically, use an event map instead of an array