improved pitch, added onset detection

midi out to be implemented soon