working version (no multi metronome)