Refactor AudioManager

add possibility to change the bpm and note duration