Fixed Compilation Problems

TODO: Write tests for beat detection from the onsets.