refactor and optimize drawWave and drawSpectrum
get rid of ticker
tag 0.4.1