lightweight beat detector library written in java