ExperimentMFC 4.1. The replay button

The example experiment contained the following lines:

`maximumNumberOfReplays = 0
` `replayButton = 0 0 0 0 "" ""
`

This means that that experiment did not have a replay button. To add a replay button along the lower edge of the screen, you do something like

`maximumNumberOfReplays = 1000
` `replayButton = 0.3 0.7 0.01 0.07 "Click here to play the last sound again" ""
`

If you supply a right edge (here 0.7) that is greater than the left edge (here 0.3), Praat will know that you want to show a replay button.

When the participant clicks this button, Praat will play the current stimulus again. In this example, the button will be visible until the partipant has clicked it 1000 times.

To assign a keyboard shortcut to the replay button, do something like

`maximumNumberOfReplays = 1000
` `replayButton = 0.1 0.9 0.01 0.07 "Click here or press the space bar to play the last sound again" " "
`

### Links to this page

- ExperimentMFC
- ExperimentMFC 4. Special buttons