lightweight beat detector