def show_instructions(duration):
    instruction_text = '\n    Welcome to the aMMN experiment!\n\n    Stay still, focus on the centre of the screen, and try not to blink.\n\n    This block will run for %s seconds.\n\n    Press spacebar to continue.\n\n    '
    instruction_text = (instruction_text % duration)
    mywin = visual.Window([1600, 900], monitor='testMonitor', units='deg', fullscr=True)
    mywin.mouseVisible = False
    text = visual.TextStim(win=mywin, text=instruction_text, color=[(- 1), (- 1), (- 1)])
    text.draw()
    mywin.flip()
    event.waitKeys(keyList='space')
    mywin.mouseVisible = True
    mywin.close()
def show_instructions(duration):
    instruction_text = '\n    Welcome to the aMMN experiment!\n\n    Stay still, focus on the centre of the screen, and try not to blink.\n\n    This block will run for %s seconds.\n\n    Press spacebar to continue.\n\n    '
    instruction_text = (instruction_text % duration)
    mywin = visual.Window([1600, 900], monitor='testMonitor', units='deg', fullscr=True)
    mywin.mouseVisible = False
    text = visual.TextStim(win=mywin, text=instruction_text, color=[(- 1), (- 1), (- 1)])
    text.draw()
    mywin.flip()
    event.waitKeys(keyList='space')
    mywin.mouseVisible = True
    mywin.close()