| 1 |
<html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 |
<title>ExperimentMFC 4.1. The replay button</title> |
| 3 |
<style> |
| 4 |
td { padding-left: 5pt; padding-right: 5pt; } |
| 5 |
th { padding-left: 5pt; padding-right: 5pt; } |
| 6 |
code { white-space: pre-wrap; } |
| 7 |
dd { white-space: pre-wrap; } |
| 8 |
</style> |
| 9 |
</head><body bgcolor="#FFFFFF"> |
| 10 |
|
| 11 |
<table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Palatino,Times" size=6 color="#999900"><b> |
| 12 |
ExperimentMFC 4.1. The replay button |
| 13 |
</b></font></table></table> |
| 14 |
<p>The <a href="ExperimentMFC_2_1__The_experiment_file.html">example experiment</a> contained the following lines:</p> |
| 15 |
<code> maximumNumberOfReplays = 0<br></code> |
| 16 |
<code> replayButton = 0 0 0 0 "" ""<br></code> |
| 17 |
<p>This means that that experiment did not have a <b>replay</b> button. To add a replay button along the lower edge of the screen, you do something like</p> |
| 18 |
<code> maximumNumberOfReplays = 1000<br></code> |
| 19 |
<code> replayButton = 0.3 0.7 0.01 0.07 "Click here to play the last sound again" ""<br></code> |
| 20 |
<p>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 <b>replay</b> button.</p> |
| 21 |
<p>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.</p> |
| 22 |
<p>To assign a keyboard shortcut to the <b>replay</b> button, do something like</p> |
| 23 |
<code> maximumNumberOfReplays = 1000<br></code> |
| 24 |
<code> replayButton = 0.1 0.9 0.01 0.07 "Click here or press the space bar to play the last sound again" " "<br></code> |
| 25 |
<h3>Links to this page</h3> |
| 26 |
<ul> |
| 27 |
<li><a href="ExperimentMFC.html">ExperimentMFC</a> |
| 28 |
<li><a href="ExperimentMFC_4__Special_buttons.html">ExperimentMFC 4. Special buttons</a> |
| 29 |
</ul> |
| 30 |
<hr> |
| 31 |
<address> |
| 32 |
<p>© ppgb 20051205</p> |
| 33 |
</address> |
| 34 |
</body> |
| 35 |
</html> |