Sending out a marker on key-press
I have the following snippet of code:
experiment.clock.reset_stopwatch() key, rt = experiment.keyboard.wait(keys=[left_resp, right_resp], duration=duration_stimulus) experiment.clock.wait(duration_stimulus - interval_tone - experiment.clock.stopwatch_time)
What I want is to send out a marker, at the time that a response (keypress) is made. However, the duration of the stimulus is fixed (1000ms), so sending a marker after the keyboard.wait function is not possible! Do you have an idea how to do this?