layout updates
waveform computation in another thread

could use some cleanup probably
clearing buffer on new audio, drawing beats again

maybe beats should go into their own thread?  Maybe not..