rhythm detect and stuff