Naive implementation of noteDetection

*Changed in test.m
*Lots of debug plots