Scala beat detection library