saved an ipython session experimenting with the attack phase
refactoring: factored out analysing a single note
getting rid of the constant
different printout
factored out peak finding
docstring
more functions, more docstrings