Code for the rhythm-fmri project