A line stop rotating when checking the key press

Thanks for the info, I think that is the issue - your hardware prefs do not contain the entry for PsychToolBox. Try adding the following in the hardware > audio library field:

['PTB', 'sounddevice', 'pyo', 'pygame']

PTB as the first entry means PTB audio will be used by default, if available. If you have the code working, you could just go with that, but the best audio latency and precision is achieved by scheduling the sound using the when parameter.

1 Like