Implemented beat compression