Grooves in 5, 6 and 7
Not all music is in 4. time_signature(7, 4) gives a 7-beat bar, and range(1, beats + 1) makes your loops fit any bar.
Challenge A:time_signature(5, 4), then play the hihat on beats 1-5, kick(1) and snare(4).