tidy-up with better understanding of web audio api
initial (untested) attempt at metronome
added beat resolution to metronome
fixed scoping mixture
tested and fixed metronome