Beat detection library.