Tapping to Rhythm Task

OS (e.g. Win10): MacOS Sonoma 14.4
PsychoPy version (e.g. 1.84.x): v2023.2.3
Standard Standalone? (y/n) Y If not then what?:
What are you trying to achieve?:

Hello! I am trying to create an experiment where the task is to tap along to a 30s long rhythm sequence using the spacebar. There are meant to be 6 conditions with 4 repetitions.

What did you try to make it work?:

I basically created a looped routine with a trial with a sound stimulus, text instruction, and the keyboard response ‘space’ which is set to last the duration of the sound stimulus. After that a routine asking you to press ENTER when you’re ready for the next one shows.

This is how I tried to code for reaction time

The problem is that my data is coming out basically unreadable. I don’t know if it’s cause of the multiple spacebar taps per trial but is there a way to work around that?

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.

When I separate data to columns it shows up like this:

The thing I am interested in, however, is the synchronization to the rhythm. So I suppose I should be able to get the reaction time? Does anyone suggest a way to do the settings on builder mode so I am able to measure synchronization?

Thanks in advance!