Temporal Reproduction Task

I want to program a temporal reproduction task and allow participants to press space bar to reproduce the time interval and with that there needs to be a rectangle on the screen that starts to appear when they press the space bar and disappear when they release the space bar. I am a beginner and I do not know how to use the rectangle shape stimulus like that.
And i also want to ask how would you give feedback to people on practice trials with this type of temporal reproduction task?

Thanks in advance.


I have a working reproduction (and also production) task i built using the psychopy builder. I can send it to you if you want. Write me at: giulio.munaretto@phd.units.it


EDIT: due to popular demand for this task I decided to post and official demo, check it out

Hello Tandy, thank you so much for the support. I have sent you an email, hope to hear from you