Debian Codegraph @

fon/manual_ExperimentMFC.cpp

raw
1 /* manual_ExperimentMFC.cpp
2 *
3 * Copyright (C) 2001-2011,2013,2015-2017,2019-2021,2023-2025 Paul Boersma
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 3 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include "ManPagesM.h"
20
21 void manual_ExperimentMFC_init (ManPages me);
22 void manual_ExperimentMFC_init (ManPages me) {
23
24 MAN_BEGIN (U"ExperimentMFC", U"ppgb", 20130101)
25 INTRO (U"One of the @@types of objects@ in Praat, "
26 "for running a Multiple Forced Choice listening experiment.")
27 LIST_ITEM (U"@@ExperimentMFC 1. When to use Praat")
28 LIST_ITEM (U"@@ExperimentMFC 2. The first example")
29 LIST_ITEM (U"@@ExperimentMFC 2.1. The experiment file")
30 LIST_ITEM (U"@@ExperimentMFC 2.2. The stimuli")
31 LIST_ITEM (U"@@ExperimentMFC 2.3. The carrier phrase")
32 LIST_ITEM (U"@@ExperimentMFC 2.4. Breaks")
33 LIST_ITEM (U"@@ExperimentMFC 2.5. Randomization strategies")
34 LIST_ITEM (U"@@ExperimentMFC 2.6. Instructions")
35 LIST_ITEM (U"@@ExperimentMFC 2.7. Response categories")
36 LIST_ITEM (U"@@ExperimentMFC 2.8. Goodness judgments")
37 LIST_ITEM (U"@@ExperimentMFC 2.9. How an experiment proceeds")
38 LIST_ITEM (U"@@ExperimentMFC 3. More examples")
39 LIST_ITEM (U"@@ExperimentMFC 3.1. A simple discrimination experiment")
40 LIST_ITEM (U"@@ExperimentMFC 3.2. An AXB discrimination experiment")
41 LIST_ITEM (U"@@ExperimentMFC 3.3. A 4I-oddity experiment")
42 LIST_ITEM (U"@@ExperimentMFC 3.4. Variable inter-stimulus intervals")
43 LIST_ITEM (U"@@ExperimentMFC 4. Special buttons")
44 LIST_ITEM (U"@@ExperimentMFC 4.1. The replay button")
45 LIST_ITEM (U"@@ExperimentMFC 4.2. The OK button")
46 LIST_ITEM (U"@@ExperimentMFC 4.3. The oops button")
47 LIST_ITEM (U"@@ExperimentMFC 5. Stimulus-dependent texts")
48 LIST_ITEM (U"@@ExperimentMFC 5.1. The stimulus-dependent run text")
49 LIST_ITEM (U"@@ExperimentMFC 5.2. Stimulus-dependent response buttons")
50 LIST_ITEM (U"@@ExperimentMFC 6. Responses are sounds")
51 LIST_ITEM (U"@@ExperimentMFC 7. Blanking the screen")
52 LIST_ITEM (U"@@ExperimentMFC 8. Running multiple experiments")
53 MAN_END
54
55 MAN_BEGIN (U"ExperimentMFC 1. When to use Praat", U"ppgb", 20160925) // 2023-06-08
56 NORMAL (U"With Praat's ExperimentMFC, you can do simple experiments on identification and discrimination. "
57 "“Simple” means that for identification, the subject hears a sound and has to click in one of a set of "
58 "labelled rectangles (optionally, you can have the subject give a goodness-of-fit judgment). "
59 "For discrimination, you can have simple same-different choices, or more intricate things like AXB, 4I-oddity, and so on.")
60 NORMAL (U"The advantage of using Praat's ExperimentMFC for this is that it is free, it works on Windows, Unix, and Macintosh, "
61 "and the whole experiment (experiment file plus sound files) is portable across computers "
62 "(you can run it from a USB stick, for instance). Because of the limited possibilities, "
63 "it is also quite easy to set up the experiment. Just read the description below.")
64 NORMAL (U"If you require more from your experiment design, you can use Praat's @@Demo window@; "
65 "with that less simple method you could for instance let the stimulus depend on the subject's previous responses. "
66 "Alternatively, you could use a dedicated program like Presentation or E-prime instead of Praat; "
67 "with these programs, you can also sometimes measure reaction times more accurately.")
68 MAN_END
69
70 MAN_BEGIN (U"ExperimentMFC 2. The first example", U"ppgb", 20051205)
71 INTRO (U"The following pages give an example of an experiment definition, "
72 "and explain the main features of an identification task.")
73 LIST_ITEM (U"@@ExperimentMFC 2.1. The experiment file")
74 LIST_ITEM (U"@@ExperimentMFC 2.2. The stimuli")
75 LIST_ITEM (U"@@ExperimentMFC 2.3. The carrier phrase")
76 LIST_ITEM (U"@@ExperimentMFC 2.4. Breaks")
77 LIST_ITEM (U"@@ExperimentMFC 2.5. Randomization strategies")
78 LIST_ITEM (U"@@ExperimentMFC 2.6. Instructions")
79 LIST_ITEM (U"@@ExperimentMFC 2.7. Response categories")
80 LIST_ITEM (U"@@ExperimentMFC 2.8. Goodness judgments")
81 LIST_ITEM (U"@@ExperimentMFC 2.9. How an experiment proceeds")
82 MAN_END
83
84 MAN_BEGIN (U"ExperimentMFC 2.1. The experiment file", U"ppgb", 20160925)
85 INTRO (U"An experiment is defined in a simple text file, which we call an %%experiment file%. "
86 "The following is an example of such an experiment file. The first two lines have to be typed "
87 "exactly as in this example, the rest depends on your stimuli, on your response categories, "
88 "and on the way the experiment is to be presented to the listener. "
89 "The order of the elements in this file cannot be changed, and nothing can be skipped. "
90 "The first two lines make the file recognizable for Praat as an ExperimentMFC file; "
91 "the number 7 is the version number of this type of ExperimentMFC file "
92 "(Praat can still read older ExperimentMFC files with a lower version number).")
93 CODE (U"\"ooTextFile\"")
94 CODE (U"\"ExperimentMFC 7\"")
95 CODE (U"blankWhilePlaying? <no>")
96 CODE (U"stimuliAreSounds? <yes>")
97 CODE (U"stimulusFileNameHead = \"Sounds/\"")
98 CODE (U"stimulusFileNameTail = \".wav\"")
99 CODE (U"stimulusCarrierBefore = \"weSayTheWord\"")
100 CODE (U"stimulusCarrierAfter = \"again\"")
101 CODE (U"stimulusInitialSilenceDuration = 0.5 seconds")
102 CODE (U"stimulusMedialSilenceDuration = 0")
103 CODE (U"stimulusFinalSilenceDuration = 0.5 seconds")
104 CODE (U"numberOfDifferentStimuli = 4")
105 CODE1 (U"\"heed\" \"\"")
106 CODE1 (U"\"hid\" \"\"")
107 CODE1 (U"\"hood\" \"\"")
108 CODE1 (U"\"hud\" \"\"")
109 CODE (U"numberOfReplicationsPerStimulus = 3")
110 CODE (U"breakAfterEvery = 0")
111 CODE (U"randomize = <PermuteBalancedNoDoublets>")
112 CODE (U"startText = \"This is a listening experiment.")
113 CODE (U"After hearing a sound, choose the vowel that is most similar to what you heard.")
114 CODE (U"")
115 CODE (U"Click to start.\"")
116 CODE (U"runText = \"Choose the vowel that you heard.\"")
117 CODE (U"pauseText = \"You can have a short break if you like. Click to proceed.\"")
118 CODE (U"endText = \"The experiment has finished.\"")
119 CODE (U"maximumNumberOfReplays = 0")
120 CODE (U"replayButton = 0 0 0 0 \"\" \"\"")
121 CODE (U"okButton = 0 0 0 0 \"\" \"\"")
122 CODE (U"oopsButton = 0 0 0 0 \"\" \"\"")
123 CODE (U"responsesAreSounds? <no> \"\" \"\" \"\" \"\" 0 0 0")
124 CODE (U"numberOfDifferentResponses = 5")
125 CODE1 (U"0.2 0.3 0.7 0.8 \"h I d\" 40 \"\" \"i\"")
126 CODE1 (U"0.3 0.4 0.5 0.6 \"h E d\" 40 \"\" \"e\"")
127 CODE1 (U"0.4 0.5 0.3 0.4 \"h A d\" 40 \"\" \"a\"")
128 CODE1 (U"0.5 0.6 0.5 0.6 \"h O d\" 40 \"\" \"o\"")
129 CODE1 (U"0.6 0.7 0.7 0.8 \"h U d\" 40 \"\" \"u\"")
130 CODE (U"numberOfGoodnessCategories = 5")
131 CODE1 (U"0.25 0.35 0.10 0.20 \"1 (poor)\" 24 \"\"")
132 CODE1 (U"0.35 0.45 0.10 0.20 \"2\" 24 \"\"")
133 CODE1 (U"0.45 0.55 0.10 0.20 \"3\" 24 \"\"")
134 CODE1 (U"0.55 0.65 0.10 0.20 \"4\" 24 \"\"")
135 CODE1 (U"0.65 0.75 0.10 0.20 \"5 (good)\" 24 \"\"")
136 NORMAL (U"This experiment will play 4 different stimuli to the listener, each 3 times. "
137 "Thus, the listener is confronted with 12 trials.")
138 MAN_END
139
140 MAN_BEGIN (U"ExperimentMFC 2.2. The stimuli", U"ppgb", 20201229)
141 INTRO (U"You can see that the @@ExperimentMFC 2.1. The experiment file|example experiment@ "
142 "contains four different stimuli: %heed, %hid, %hood, and %hud. "
143 "These are the %names of the four stimuli.")
144 NORMAL (U"Because in the example experiment stimuli are sounds, "
145 "each of the four stimuli should be in a sound file. "
146 "The names of these sound files must be identical to the names "
147 "of the stimuli, bracketed with %stimulusFileNamehead and %stimulusFileNameTail. "
148 "Hence, the stimuli are expected in the following four files:")
149 LIST_ITEM (U"Sounds/heed.wav")
150 LIST_ITEM (U"Sounds/hid.wav")
151 LIST_ITEM (U"Sounds/hood.wav")
152 LIST_ITEM (U"Sounds/hud.wav")
153 NORMAL (U"You need not use WAV files. You can also use AIFF files, "
154 "in which case $%stimulusFileNameTail would probably be “.aiff”, or any other "
155 "type of sound file that Praat supports. But all sound files must have the same number of channels "
156 "(i.e. all mono or all stereo) and the same sampling frequency.")
157 NORMAL (U"In this example, the experiment will look for the sound files in the folder #Sounds, "
158 "which has to be in the same folder as your experiment file. "
159 "In other words, “Sounds/heed.wav” is a %%relative file path%.")
160 NORMAL (U"Instead of a relative path, you can also supply a %%full file path%. "
161 "Such a path depends on your computer and on your operating system. "
162 "For instance, if you have a Windows computer and the stimuli are in the folder ##D:\\bsCorpus\\bsAutumn\\bsSpeaker23#, "
163 "you can write")
164 CODE (U"fileNameHead = \"D:\\Corpus\\Autumn\\Speaker23\\\"")
165 NORMAL (U"If you have a Macintosh (OS X) or Unix computer and the stimuli are in ##/Users/mietta/Sounds/Dutch#, you write")
166 CODE (U"fileNameHead = \"/Users/mietta/Sounds/Dutch/\"")
167 NORMAL (U"But relative file paths will usually be preferred: they are more %portable. "
168 "The advantage of using relative file paths is that you can move your whole experiment (experiment file plus sounds) "
169 "from one computer to another without changing the experiment file, "
170 "as long as you put the experiment file in the same folder as where you put the folder #Sounds. "
171 "Or you can put the whole experiment on a USB stick and run the experiment directly from the stick. "
172 "Since Praat supports the forward slash “/” as a folder separator on all computers, "
173 "you can run the exact same experiment on Macintosh, Windows and Unix computers, "
174 "independent of the type of computer where you have created your experiment.")
175 MAN_END
176
177 MAN_BEGIN (U"ExperimentMFC 2.3. The carrier phrase", U"ppgb", 20201229)
178 NORMAL (U"The stimuli can be embedded in a %%carrier phrase%. "
179 "In the @@ExperimentMFC 2.1. The experiment file|example experiment@, we see that the stimulus "
180 "will be inserted between the sounds in the files ##weSayTheWord.wav# "
181 "and ##again.wav#, both of which are expected to be in the folder #Sounds. "
182 "If you do not want a carrier phrase, you do")
183 CODE (U"stimulusCarrierBefore = \"\"")
184 CODE (U"stimulusCarrierAfter = \"\"")
185 NORMAL (U"If you want only an introductory phrase before the stimulus, and nothing after the stimulus, "
186 "you do something like")
187 CODE (U"stimulusCarrierBefore = \"listenTo\"")
188 CODE (U"stimulusCarrierAfter = \"\"")
189 NORMAL (U"and of course you supply the file ##listenTo.wav# in the folder #Sounds.")
190 NORMAL (U"If you want to have a short silence before every stimulus (and before the carrier phrase), "
191 "you supply a non-zero %stimulusInitialSilenceDuration, as in the example.")
192 NORMAL (U"Since the carrier phrase is concatenated with the stimulus before it is played, it should have the same "
193 "sampling frequency as the stimulus files.")
194 MAN_END
195
196 MAN_BEGIN (U"ExperimentMFC 2.4. Breaks", U"ppgb", 20051205)
197 NORMAL (U"A new stimulus will arrive as soon as the listener makes her choice. To allow her some breathing "
198 "time, you can insert a break after every so many trials. In the example, %breakAfterEvery is 0, "
199 "because there are only 12 trials. A typical experiment has perhaps 180 trials, and you may want to "
200 "insert a break after every 40 trials. In that case, you do")
201 CODE (U"breakAfterEvery = 40")
202 MAN_END
203
204 MAN_BEGIN (U"ExperimentMFC 2.5. Randomization strategies", U"ppgb", 20051205)
205 NORMAL (U"The 3 times 4 stimuli will have to be played in a certain order. For the least random order, you say")
206 CODE (U"randomize = <CyclicNonRandom>")
207 NORMAL (U"In this case, the stimuli will be played in the order in which they were specified in the file, 3 times:")
208 EQUATION (U"heed hid hood hud heed hid hood hud heed hid hood hud")
209 NORMAL (U"The most likely case in which you would want to use this randomization strategy, is if you have, say, 120 "
210 "different stimuli and you want to play them only once (%numberOfReplicationsPerStimulus = 1) in a fixed order.")
211 NORMAL (U"The other extreme, the most random order, is")
212 CODE (U"randomize = <WithReplacement>")
213 NORMAL (U"In this case, a stimulus will be chosen at random 12 times without memory, for instance")
214 EQUATION (U"hid hood hood heed hid hood hud hud hid hood heed hid")
215 NORMAL (U"The order will probably be different for each listener. "
216 "In this example, %hood and %hid occur four times each, %heed and %hud only twice each. "
217 "This strategy is too random for most experiments. Usually, you will want to have the same number "
218 "of replications of each stimulus. The most random way to do this is")
219 CODE (U"randomize = <PermuteAll>")
220 NORMAL (U"In this case, all stimuli will be played exactly 3 times, for instance")
221 EQUATION (U"heed hood hud hud hid heed heed hud hood hid hid hood")
222 NORMAL (U"Quite often, you will want a less random order, namely one in which the 12 trials are divided into "
223 "3 blocks of 4 stimuli. Within each block, all 4 different stimuli occur in a random order:")
224 CODE (U"randomize = <PermuteBalanced>")
225 NORMAL (U"In this case, each stimulus occurs exactly once within each block:")
226 EQUATION (U"heed hood hud hid hood hud hid heed heed hud hood hid")
227 NORMAL (U"This strategy ensures a certain spreading of the stimuli over the sequence of 12 trials. "
228 "As we see here, it is still possible that the same stimulus (%heed) occurs twice in a row, "
229 "namely as the last stimulus of the second block and the first stimulus of the third. "
230 "If you want to prevent that situation, you use")
231 CODE (U"randomize = <PermuteBalancedNoDoublets>")
232 NORMAL (U"This will ensure that the same stimulus is never applied twice in a row:")
233 EQUATION (U"heed hood hud hid hood hud hid heed hud heed hood hid")
234 NORMAL (U"This randomization strategy is used in our example, and advised for most listening experiments "
235 "in which you want to minimize effects of stimulus order.")
236 NORMAL (U"The randomization procedure does not interfere in any way with the breaks. The order is determined "
237 "before any breaks are inserted.")
238 MAN_END
239
240 MAN_BEGIN (U"ExperimentMFC 2.6. Instructions", U"ppgb", 20081123)
241 NORMAL (U"Before the experiment begins, the listener will see the %startText in the centre of the screen. "
242 "During each trial, she will see the %runText at the top of the screen. "
243 "During breaks, she will see the %pauseText in the centre of the screen. "
244 "After all the trials have been performed, she will see the %endText. "
245 "As you can see in the example, all these texts can consist of multiple lines.")
246 MAN_END
247
248 MAN_BEGIN (U"ExperimentMFC 2.7. Response categories", U"ppgb", 20201229)
249 NORMAL (U"Every trial comes with the same set of response categories. "
250 "The @@ExperimentMFC 2.1. The experiment file|example experiment@ has five of them. "
251 "For each response category, you supply the area of the screen where a rectangle will be drawn. "
252 "The whole screen measures from 0.0 (left) to 1.0 (right) and from 0.0 (bottom) to 1.0 (top). "
253 "Thus, “0.2 0.3 0.7 0.8” means that a rectangle will be drawn somewhere in the top left quadrant "
254 "of the screen. You also supply the text that will be drawn in this rectangle, for instance the text “h I d”. "
255 "After this you supply the font size for this text, for instance 40.")
256 NORMAL (U"The second text that you supply for every response is a response key on the keyboard. "
257 "In the above example this is “”, i.e. the subject cannot press a key as a response. "
258 "If you want the user to be able to press the “m” key instead of clicking in the “h I d” rectangle, "
259 "the line in the experiment file would be:")
260 CODE1 (U"0.2 0.3 0.7 0.8 \"h I d\" 40 \"m\" \"i\"")
261 NORMAL (U"The third text that you supply for each rectangle is the response category as it will be reported by Praat to you when the user clicks it, "
262 "e.g. the text “i”. If you want Praat to ignore mouse clicks on this rectangle, specify an empty response "
263 "category, i.e. \"\".")
264 NORMAL (U"The border of the rectangles will be maroon, the background of the screen will be light grey. "
265 "The colour of clickable rectangles will be yellow, that of non-clickable rectangles (those with "
266 "empty category specifications) light grey.")
267 NORMAL (U"You can have a picture instead of a text on a response button, by using \\bsFI:")
268 CODE1 (U"0.2 0.3 0.7 0.8 \"\\FIpictures/hello.jpg\" 40 \"m\" \"i\"")
269 NORMAL (U"In this example, the picture ##hello.jpg# from the subfolder #pictures "
270 "(i.e. a subfolder of the folder where your experiment file is) "
271 "will be drawn into the rectangle [0.2, 0.3] \\xx [0.7, 0.8]. "
272 "This currently (September 2011) works only on the Mac and Windows.")
273 MAN_END
274
275 MAN_BEGIN (U"ExperimentMFC 2.8. Goodness judgments", U"ppgb", 20160925)
276 NORMAL (U"If %numberOfGoodnessCategories is not 0, some more rectangles will be drawn, "
277 "as in the @@ExperimentMFC 2.1. The experiment file|example experiment@. "
278 "You specify again the locations of these rectangles (in the example, they touch each other), "
279 "the texts on them, the font sizes, and the response keys. "
280 "Praat will record the number of the button when the listener clicks on it. "
281 "Thus, if she clicks on the button labelled \"1 (poor)\", Praat will record a goodness judgment of 1, "
282 "because this is the first button in the list. If she clicks on \"5 (good)\", Praat will record a "
283 "goodness judgment of 5.")
284 MAN_END
285
286 MAN_BEGIN (U"ExperimentMFC 2.9. How an experiment proceeds", U"ppgb", 20110317)
287 NORMAL (U"A text file with an ExperimentMFC object can be read into Praat with @@Read from file...@ "
288 "(it is not a script but a data file, so do not try to read it with ##Open Praat script...#). "
289 "You can then choose #Run. After the experiment finishes, you can close the experiment window "
290 "and choose ##Extract results#. The resulting ResultsMFC object contains for each trial the stimulus "
291 "name (e.g. “hood”), the response category (e.g. “u”), and the goodness judgment (e.g. 4). "
292 "You will want to save this ResultsMFC object to a text file with @@Save as text file...@. "
293 "You may want to call these text files by the names of the subjects, e.g. ##ts.ResultsMFC# "
294 "and ##mj.ResultsMFC#. Once you have collected the results of all your subjects, you can read "
295 "all the results files into Praat with @@Read from file...@, then select all the resulting "
296 "ResultsMFC objects (which will have automatically been named #ts, #mj, and so on), then choose "
297 "##Collect to table#. This will result in a table whose first column contains the names of the subjects, "
298 "the second column contains the stimulus names, the third column contains the responses, "
299 "and the last column contains the approximate reaction times (measured from the start of the stimulus sound, i.e. after the initial silence duration). "
300 "If there are goodness judgments, these will go into the fourth column. The table can be saved "
301 "as a table file (with ##Save as tab-separated file...#), which can be read by programs like Excel and SPSS.")
302 MAN_END
303
304 MAN_BEGIN (U"ExperimentMFC 3. More examples", U"ppgb", 20051205)
305 INTRO (U"You can do many more kinds of experiments than simple identification experiments.")
306 LIST_ITEM (U"@@ExperimentMFC 3.1. A simple discrimination experiment")
307 LIST_ITEM (U"@@ExperimentMFC 3.2. An AXB discrimination experiment")
308 LIST_ITEM (U"@@ExperimentMFC 3.3. A 4I-oddity experiment")
309 LIST_ITEM (U"@@ExperimentMFC 3.4. Variable inter-stimulus intervals")
310 MAN_END
311
312 MAN_BEGIN (U"ExperimentMFC 3.1. A simple discrimination experiment", U"ppgb", 20160925)
313 NORMAL (U"The @@ExperimentMFC 2.1. The experiment file|example experiment@ was an %identification experiment: "
314 "the subject had identify a single sound as one element of a set of categories. "
315 "Phoneticians will often do %discrimination experiments, which are experiments in which "
316 "a stimulus consists of multiple sub-stimuli played in sequence, and the subject has to judge the similarity "
317 "between these sub-stimuli.")
318 NORMAL (U"The simplest discrimination task has only two sub-stimuli, and the subject has to say whether these are "
319 "the %same or %different. Suppose you have vowel-like sounds along an F1 continuum with seven steps, "
320 "say 300, 320, 340, 360, 380, 400, and 420 hertz, and you are interested in knowing how well the listeners "
321 "can distinguish these. As your stimuli, you create pairs of these sounds, separated by 0.8 seconds of silence. "
322 "It is important to include stimuli in which the sounds are identical, e.g. stimuli in which both sounds have an F1 "
323 "of 340 Hz (see the literature on signal detection theory). Since sounds that are very different acoustically "
324 "will always be heard as different, you do not include pairs in which the distance is larger than 60 Hz. "
325 "The experiment file will look like this:")
326 CODE (U"\"ooTextFile\"")
327 CODE (U"\"ExperimentMFC 7\"")
328 CODE (U"blank while playing? <no>")
329 CODE (U"stimuli are sounds? <yes>")
330 CODE (U"\"stimuli/\" \".wav\"")
331 CODE (U"carrier phrase \"\" \"\"")
332 CODE (U"initial silence duration 0.5 seconds")
333 CODE (U"medial silence duration 0.8 seconds ! inter-stimulus interval")
334 CODE (U"final silence duration 0 seconds")
335 CODE (U"37 different stimuli")
336 CODE1 (U"\"300,300\" \"\" \"300,320\" \"\" \"300,340\" \"\" \"300,360\" \"\"")
337 CODE1 (U"\"320,300\" \"\" \"320,320\" \"\" \"320,340\" \"\" \"320,360\" \"\" \"320,380\" \"\"")
338 CODE1 (U"\"340,300\" \"\" \"340,320\" \"\" \"340,340\" \"\" \"340,360\" \"\" \"340,380\" \"\" \"340,400\" \"\"")
339 CODE1 (U"\"360,300\" \"\" \"360,320\" \"\" \"360,340\" \"\" \"360,360\" \"\" \"360,380\" \"\" \"360,400\" \"\" \"360,420\" \"\"")
340 CODE1 (U"\"380,320\" \"\" \"380,340\" \"\" \"380,360\" \"\" \"380,380\" \"\" \"380,400\" \"\" \"380,420\" \"\"")
341 CODE1 (U"\"400,340\" \"\" \"400,360\" \"\" \"400,380\" \"\" \"400,400\" \"\" \"400,420\" \"\"")
342 CODE1 (U"\"420,360\" \"\" \"420,380\" \"\" \"420,400\" \"\" \"420,420\" \"\"")
343 CODE (U"10 replications per stimulus")
344 CODE (U"break after every 50 stimuli")
345 CODE (U"<PermuteBalancedNoDoublets>")
346 CODE (U"\"Click to start.\"")
347 CODE (U"\"Say whether these sounds were the same or different.\"")
348 CODE (U"\"You can have a short break if you like. Click to proceed.\"")
349 CODE (U"\"The experiment has finished. Call the experimenter.\"")
350 CODE (U"0 replays")
351 CODE (U"replay button 0 0 0 0 \"\" \"\"")
352 CODE (U"ok button 0 0 0 0 \"\" \"\"")
353 CODE (U"oops button 0 0 0 0 \"\" \"\"")
354 CODE (U"responses are sounds? <no> \"\" \"\" \"\" \"\" 0 0 0")
355 CODE (U"2 response categories")
356 CODE1 (U"0.1 0.4 0.35 0.65 \"same\" 24 \"\" \"same\"")
357 CODE1 (U"0.6 0.9 0.35 0.65 \"different\" 24 \"\" \"different\"")
358 CODE (U"0 goodness categories")
359 NORMAL (U"In this example, the subject will have to click 370 times. After every 50 times, she will have the "
360 "opportunity to sip her tea. A 0.5-seconds silence is played before every stimulus, so that the listener "
361 "will not hear the stimulus immediately after her mouse click.")
362 NORMAL (U"The experimenter does not have to create the stimulus pairs as sound files. "
363 "You can specify multiple sound files by separating them with commas. Thus, \"320,300\" means that "
364 "Praat will play the files ##320.wav# and ##300.wav#. These two substimuli will be separated here by a silence "
365 "of 0.8 seconds, called the %%inter-stimulus interval% (or %stimulusMedialSilenceDuration).")
366 NORMAL (U"Note that the text in this file is rather different from the previous example. "
367 "It does not matter whether you write %`numberOfDifferentStimuli`, or %`different stimuli`, or anything else; "
368 "Praat ignores these texts as long as they do not contain numbers, quoted strings, or things between <>.")
369 MAN_END
370
371 MAN_BEGIN (U"ExperimentMFC 3.2. An AXB discrimination experiment", U"ppgb", 20160925)
372 INTRO (U"In the AXB task, the subject will hear three stimuli in sequence, and has to say "
373 "whether the second (X) is more similar to the first (A) or to the second (B). "
374 "An experiment file could look like follows:")
375 CODE (U"\"ooTextFile\"")
376 CODE (U"\"ExperimentMFC 7\"")
377 CODE (U"blankWhilePlaying? <no>")
378 CODE (U"stimuliAreSounds? <yes>")
379 CODE (U"\"stimuli/\" \".wav\"")
380 CODE (U"carrier \"\" \"\"")
381 CODE (U"initial silence 0.5")
382 CODE (U"inter-stimulus interval 0.3")
383 CODE (U"final silence 0")
384 CODE (U"100 stimuli")
385 CODE1 (U"\"300,300,320\" \"\" \"300,320,340\" \"\" \"300,340,340\" \"\" \"300,340,360\" \"\"")
386 CODE1 (U"...")
387 CODE1 (U"(and 96 more triplets of substimuli)")
388 CODE1 (U"...")
389 CODE (U"4 replications")
390 CODE (U"break every 50")
391 CODE (U"<PermuteBalancedNoDoublets>")
392 CODE (U"\"Click to start.\"")
393 CODE (U"\"Say whether the second sound is more similar to the first or to the third.\"")
394 CODE (U"\"You can have a short break if you like. Click to proceed.\"")
395 CODE (U"\"The experiment has finished.\"")
396 CODE (U"0 replays")
397 CODE (U"replay button 0 0 0 0 \"\" \"\"")
398 CODE (U"ok button 0 0 0 0 \"\" \"\"")
399 CODE (U"oops button 0 0 0 0 \"\" \"\"")
400 CODE (U"responses are sounds? <no> \"\" \"\" \"\" \"\" 0 0 0")
401 CODE (U"3 response categories")
402 CODE1 (U"0.1 0.3 0.4 0.6 \"first\" 30 \"\" \"A\"")
403 CODE1 (U"0.4 0.6 0.4 0.6 \"second\" 30 \"\" \"\"")
404 CODE1 (U"0.7 0.9 0.4 0.6 \"third\" 30 \"\" \"B\"")
405 CODE (U"0 goodness categories")
406 NORMAL (U"In this example, the subject has to click 400 times. She sees three buttons, "
407 "labelled %first, %second, and %third, but the second button (the one with the empty response category) "
408 "is not clickable: it has a light grey rather than a yellow interior and cannot be chosen by the subject. "
409 "In your ResultsMFC object, you will only see %A and %B responses.")
410 MAN_END
411
412 MAN_BEGIN (U"ExperimentMFC 3.3. A 4I-oddity experiment", U"ppgb", 20160925)
413 NORMAL (U"In the four-items-oddity task, the subject will hear four stimuli in sequence, and has to say "
414 "whether the second or the third is the odd one out. The other three substimuli are identical. "
415 "An experiment file could look as follows:")
416 CODE (U"\"ooTextFile\"")
417 CODE (U"\"ExperimentMFC 7\"")
418 CODE (U"blankWhilePlaying? <no>")
419 CODE (U"stimuliAreSounds? <yes>")
420 CODE (U"stimulusFileNameHead = \"stimuli/\"")
421 CODE (U"stimulusFileNameTail = \".wav\"")
422 CODE (U"stimulusCarrierBefore = \"\"")
423 CODE (U"stimulusCarrierAfter = \"\"")
424 CODE (U"stimulusInitialSilenceDuration = 0.5 seconds")
425 CODE (U"stimulusMedialSilenceDuration = 0.3 seconds")
426 CODE (U"numberOfDifferentStimuli = 60")
427 CODE1 (U"\"300,300,320,300\" \"\" \"300,320,300,300\" \"\"")
428 CODE1 (U"\"300,300,340,300\" \"\" \"300,340,300,300\" \"\"")
429 CODE1 (U"\"300,300,360,300\" \"\" \"300,360,300,300\" \"\"")
430 CODE1 (U"\"320,320,300,320\" \"\" \"320,300,320,320\" \"\"")
431 CODE1 (U"\"320,320,340,320\" \"\" \"320,340,320,320\" \"\"")
432 CODE1 (U"\"320,320,360,320\" \"\" \"320,360,320,320\" \"\"")
433 CODE1 (U"\"320,320,380,320\" \"\" \"320,380,320,320\" \"\"")
434 CODE1 (U"\"340,340,300,340\" \"\" \"340,300,340,340\" \"\"")
435 CODE1 (U"\"340,340,320,340\" \"\" \"340,320,340,340\" \"\"")
436 CODE1 (U"\"340,340,360,340\" \"\" \"340,360,340,340\" \"\"")
437 CODE1 (U"\"340,340,380,340\" \"\" \"340,380,340,340\" \"\"")
438 CODE1 (U"\"340,340,400,340\" \"\" \"340,400,340,340\" \"\"")
439 CODE1 (U"\"360,360,300,360\" \"\" \"360,300,360,360\" \"\"")
440 CODE1 (U"\"360,360,320,360\" \"\" \"360,320,360,360\" \"\"")
441 CODE1 (U"\"360,360,340,360\" \"\" \"360,340,360,360\" \"\"")
442 CODE1 (U"\"360,360,380,360\" \"\" \"360,380,360,360\" \"\"")
443 CODE1 (U"\"360,360,400,360\" \"\" \"360,400,360,360\" \"\"")
444 CODE1 (U"\"360,360,420,360\" \"\" \"360,420,360,360\" \"\"")
445 CODE1 (U"\"380,380,320,380\" \"\" \"380,320,380,380\" \"\"")
446 CODE1 (U"\"380,380,340,380\" \"\" \"380,340,380,380\" \"\"")
447 CODE1 (U"\"380,380,360,380\" \"\" \"380,360,380,380\" \"\"")
448 CODE1 (U"\"380,380,400,380\" \"\" \"380,400,380,380\" \"\"")
449 CODE1 (U"\"380,380,420,380\" \"\" \"380,420,380,380\" \"\"")
450 CODE1 (U"\"400,400,340,400\" \"\" \"400,340,400,400\" \"\"")
451 CODE1 (U"\"400,400,360,400\" \"\" \"400,360,400,400\" \"\"")
452 CODE1 (U"\"400,400,380,400\" \"\" \"400,380,400,400\" \"\"")
453 CODE1 (U"\"400,400,420,400\" \"\" \"400,420,400,400\" \"\"")
454 CODE1 (U"\"420,420,360,420\" \"\" \"420,360,420,420\" \"\"")
455 CODE1 (U"\"420,420,380,420\" \"\" \"420,380,420,420\" \"\"")
456 CODE1 (U"\"420,420,400,420\" \"\" \"420,400,420,420\" \"\"")
457 CODE (U"numberOfReplicationsPerStimulus = 5")
458 CODE (U"breakAfterEvery = 40")
459 CODE (U"randomize = <PermuteBalancedNoDoublets>")
460 CODE (U"startText = \"Click to start.\"")
461 CODE (U"runText = \"Say whether the second or the third sound is different from the rest.\"")
462 CODE (U"pauseText = \"You can have a short break if you like. Click to proceed.\"")
463 CODE (U"endText = \"The experiment has finished.\"")
464 CODE (U"maximumNumberOfReplays = 0")
465 CODE (U"replayButton = 0 0 0 0 \"\" \"\"")
466 CODE (U"okButton = 0 0 0 0 \"\" \"\"")
467 CODE (U"oopsButton = 0 0 0 0 \"\" \"\"")
468 CODE (U"responsesAreSounds? <no>")
469 CODE (U"responseFileNameHead = \"\"")
470 CODE (U"responseFileNameTail = \"\"")
471 CODE (U"responseCarrierBefore = \"\"")
472 CODE (U"responseCarrierAfter = \"\"")
473 CODE (U"responseInitialSilenceDuration = 0")
474 CODE (U"responseMedialSilenceDuration = 0")
475 CODE (U"responseFinalSilenceDuration = 0")
476 CODE (U"numberOfResponseCategories = 4")
477 CODE1 (U"0.04 0.24 0.4 0.6 \"first\" 30 \"\" \"\"")
478 CODE1 (U"0.28 0.48 0.4 0.6 \"second\" 30 \"\" \"2\"")
479 CODE1 (U"0.52 0.72 0.4 0.6 \"third\" 30 \"\" \"3\"")
480 CODE1 (U"0.76 0.96 0.4 0.6 \"fourth\" 30 \"\" \"\"")
481 CODE (U"numberOfGoodnessCategories = 0")
482 NORMAL (U"In this example, the subject has to click 300 times. She sees four buttons, "
483 "but the first and fourth buttons cannot be chosen. "
484 "In your ResultsMFC object, you will only see the responses %2 and %3.")
485 MAN_END
486
487 MAN_BEGIN (U"ExperimentMFC 3.4. Variable inter-stimulus intervals", U"ppgb", 20130101)
488 NORMAL (U"Praat only supports a fixed inter-stimulus interval, but sometimes you may want to test "
489 "discrimination as a function of the inter-stimulus interval itself. You can achieve this by "
490 "supplying an %stimulusMedialSilenceDuration of 0 and using sound files with various silences:")
491 CODE1 (U"\"300,silence0.5,320\" \"300,silence1.5,320\" \"300,silence4.5,320\"")
492 NORMAL (U"In this example, you have to supply the sound files ##silence0.5.wav# and so on. You can "
493 "create them with the help of @@Create Sound from formula...@ (supply a %formula of 0).")
494 MAN_END
495
496 MAN_BEGIN (U"ExperimentMFC 4. Special buttons", U"ppgb", 20051205)
497 INTRO (U"You can include up to three special buttons on the screen that the participant sees. "
498 "It is probably inadvisable to use all three at the same time.")
499 LIST_ITEM (U"@@ExperimentMFC 4.1. The replay button")
500 LIST_ITEM (U"@@ExperimentMFC 4.2. The OK button")
501 LIST_ITEM (U"@@ExperimentMFC 4.3. The oops button")
502 MAN_END
503
504 MAN_BEGIN (U"ExperimentMFC 4.1. The replay button", U"ppgb", 20051205)
505 INTRO (U"The @@ExperimentMFC 2.1. The experiment file|example experiment@ contained the following lines:")
506 CODE (U"maximumNumberOfReplays = 0")
507 CODE (U"replayButton = 0 0 0 0 \"\" \"\"")
508 NORMAL (U"This means that that experiment did not have a #replay button. "
509 "To add a replay button along the lower edge of the screen, you do something like")
510 CODE (U"maximumNumberOfReplays = 1000")
511 CODE (U"replayButton = 0.3 0.7 0.01 0.07 \"Click here to play the last sound again\" \"\"")
512 NORMAL (U"If you supply a right edge (here 0.7) that is greater than the left edge (here 0.3), "
513 "Praat will know that you want to show a #replay button.")
514 NORMAL (U"When the participant clicks this button, Praat will play the current stimulus again. "
515 "In this example, the button will be visible until the partipant has clicked it 1000 times.")
516 NORMAL (U"To assign a keyboard shortcut to the #replay button, do something like")
517 CODE (U"maximumNumberOfReplays = 1000")
518 CODE (U"replayButton = 0.1 0.9 0.01 0.07 \"Click here or press the space bar to play the last sound again\" \" \"")
519 MAN_END
520
521 MAN_BEGIN (U"ExperimentMFC 4.2. The OK button", U"ppgb", 20051205)
522 INTRO (U"The @@ExperimentMFC 2.1. The experiment file|example experiment@ contained the following lines:")
523 CODE (U"okButton = 0 0 0 0 \"\" \"\"")
524 NORMAL (U"This means that that experiment did not have an #OK button. "
525 "To add an OK button in the lower right corner of the screen, you do something like")
526 CODE (U"okButton = 0.8 0.95 0.05 0.15 \"OK\" \"\"")
527 NORMAL (U"If you supply a right edge (here 0.95) that is greater than the left edge (here 0.8), "
528 "Praat will know that you want to show an #OK button.")
529 NORMAL (U"The behaviour of the experiment changes appreciably if you include an #OK button. "
530 "If you do not include an #OK button, Praat will present the next stimulus as soon as the participant "
531 "has clicked a response category (and a goodness category, if there are such). "
532 "If you do include an #OK button, it will become visible to the participant as soon as she has chosen "
533 "a response category (and a goodness category, if there are such). "
534 "The participant can then click the #OK button, but she can also choose to click the response "
535 "(and goodness buttons) a bit more first.")
536 NORMAL (U"The OK button seems to be useful only if there is also a replay button, "
537 "or if the response categories are sounds (see @@ExperimentMFC 6. Responses are sounds@).")
538 NORMAL (U"To assign a keyboard shortcut (here, the space bar) to the OK button, do something like")
539 CODE (U"okButton = 0.8 0.95 0.05 0.15 \"OK\" \" \"")
540 MAN_END
541
542 MAN_BEGIN (U"ExperimentMFC 4.3. The oops button", U"ppgb", 20051205)
543 INTRO (U"The @@ExperimentMFC 2.1. The experiment file|example experiment@ contained the following lines:")
544 CODE (U"oopsButton = 0 0 0 0 \"\" \"\"")
545 NORMAL (U"This means that that experiment did not have an #oops button. "
546 "To add an #oops button in the lower left corner of the screen, you do something like")
547 CODE (U"oopsButton = 0.05 0.2 0.05 0.15 \"oops\" \"\"")
548 NORMAL (U"If you supply a right edge (here 0.2) that is greater than the left edge (here 0.05), "
549 "Praat will know that you want to show an #oops button.")
550 NORMAL (U"If you include an #oops button, it will become visible to the participant for every stimulus except the first, "
551 "and it will also be visible on the pause (break) screens and on the final screen.")
552 NORMAL (U"If the participant clicks the #oops button, Praat will forget everything the participant did "
553 "with the current stimulus and the previous stimulus. The experiment will continue with playing "
554 "the previous stimulus again and waiting for the participant’s choice.")
555 MAN_END
556
557 MAN_BEGIN (U"ExperimentMFC 5. Stimulus-dependent texts", U"ppgb", 20051205)
558 INTRO (U"In the @@ExperimentMFC 2.1. The experiment file|example experiment@, the text at the top of the screen "
559 "stayed the same throughout the experiment, and so did the texts on the response buttons. "
560 "There are ways to have these texts depend on the stimulus at hand.")
561 LIST_ITEM (U"@@ExperimentMFC 5.1. The stimulus-dependent run text")
562 LIST_ITEM (U"@@ExperimentMFC 5.2. Stimulus-dependent response buttons")
563 MAN_END
564
565 MAN_BEGIN (U"ExperimentMFC 5.1. The stimulus-dependent run text", U"ppgb", 20051205)
566 INTRO (U"The @@ExperimentMFC 2.1. The experiment file|example experiment@ contained the following lines:")
567 CODE (U"numberOfDifferentStimuli = 4")
568 CODE1 (U"\"heed\" \"\"")
569 CODE1 (U"\"hid\" \"\"")
570 CODE1 (U"\"hood\" \"\"")
571 CODE1 (U"\"hud\" \"\"")
572 CODE (U"...")
573 CODE (U"...")
574 CODE (U"runText = \"Choose the vowel that you heard.\"")
575 NORMAL (U"For every stimulus, the same “run text” was written at the top of the screen. "
576 "But suppose you want to make that text dependent on the stimulus. You would do:")
577 CODE1 (U"\"heed\" \"Choose the vowel you heard.\"")
578 CODE1 (U"\"hid\" \"Click the vowel you heard.\"")
579 CODE1 (U"\"hood\" \"Select the vowel you heard.\"")
580 CODE1 (U"\"hud\" \"What's the vowel you heard?\"")
581 CODE (U"...")
582 CODE (U"...")
583 CODE (U"runText = \"\"")
584 NORMAL (U"In this case, each stimulus comes with its own text. The %runText will only show up for stimuli "
585 "for which you do not supply a separate text.")
586 NORMAL (U"This feature is useful mainly in cases where the responses are sounds but the stimulus is not "
587 "(see @@ExperimentMFC 6. Responses are sounds@) or if you want to cause some lexical priming.")
588 MAN_END
589
590 MAN_BEGIN (U"ExperimentMFC 5.2. Stimulus-dependent response buttons", U"ppgb", 20070926)
591 INTRO (U"The @@ExperimentMFC 2.1. The experiment file|example experiment@ contained the following lines:")
592 CODE (U"numberOfDifferentStimuli = 4")
593 CODE1 (U"\"heed\" \"\"")
594 CODE1 (U"\"hid\" \"\"")
595 CODE1 (U"\"hood\" \"\"")
596 CODE1 (U"\"hud\" \"\"")
597 CODE (U"...")
598 CODE (U"...")
599 CODE (U"numberOfDifferentResponses = 5")
600 CODE1 (U"0.2 0.3 0.7 0.8 \"h I d\" 40 \"\" \"i\"")
601 CODE1 (U"0.3 0.4 0.5 0.6 \"h E d\" 40 \"\" \"e\"")
602 CODE1 (U"0.4 0.5 0.3 0.4 \"h A d\" 40 \"\" \"a\"")
603 CODE1 (U"0.5 0.6 0.5 0.6 \"h O d\" 40 \"\" \"o\"")
604 CODE1 (U"0.6 0.7 0.7 0.8 \"h U d\" 40 \"\" \"u\"")
605 NORMAL (U"For every stimulus, the buttons contained the same visible texts, such as \"h I d\" and \"h A d\".")
606 NORMAL (U"But suppose you have an experiment about the perception of voicing in plosives. "
607 "The first stimulus starts with an ambiguous /b/ or /p/, and you want the participant "
608 "to choose between \"bath\" and \"path\". The next stimulus starts with an ambiguous /d/ or /t/, "
609 "and you want the participant to choose between \"dart\" and \"tart\". "
610 "You would go about like this:")
611 CODE (U"numberOfDifferentStimuli = 6")
612 CODE1 (U"\"bpath1\" \"|bath|path\"")
613 CODE1 (U"\"bpath2\" \"|bath|path\"")
614 CODE1 (U"\"bpath3\" \"|bath|path\"")
615 CODE1 (U"\"dtart1\" \"|dart|tart\"")
616 CODE1 (U"\"dtart2\" \"|dart|tart\"")
617 CODE1 (U"\"dtart3\" \"|dart|tart\"")
618 CODE (U"...")
619 CODE (U"...")
620 CODE (U"numberOfDifferentResponses = 2")
621 CODE1 (U"0.2 0.4 0.7 0.8 \"\" 40 \"\" \"left\"")
622 CODE1 (U"0.6 0.8 0.7 0.8 \"\" 40 \"\" \"right\"")
623 NORMAL (U"In this case, the two response buttons show either \"path\" and \"path\", or \"dart\" and \"tart\".")
624 NORMAL (U"In the ResultsMFC (see @@ExperimentMFC 2.9. How an experiment proceeds@), "
625 "the stimuli will be recorded as “bpath1|bath|path” and the like, not just as “bpath1”. "
626 "Praat does this in order to be able to cope with balanced designs such as")
627 CODE1 (U"\"bpath1\" \"|bath|path\"")
628 CODE1 (U"\"bpath1\" \"|path|bath\"")
629 NORMAL (U"In other words, the button ordering is considered part of the stimulus.")
630 NORMAL (U"This trick can be combined with a stimulus-dependent run text:")
631 CODE (U"numberOfDifferentStimuli = 32")
632 CODE1 (U"\"bpath1\" \"Throw a...|bath|path\"")
633 CODE1 (U"\"bpath1\" \"Walk a...|bath|path\"")
634 CODE1 (U"\"bpath2\" \"Walk a...|bath|path\"")
635 CODE1 (U"\"dtart1\" \"Throw a...|dart|tart\"")
636 CODE1 (U"\"dtart1\" \"Carry a...|dart|tart\"")
637 CODE (U"...")
638 CODE (U"runText = \"\"")
639 CODE (U"...")
640 CODE (U"numberOfDifferentResponses = 2")
641 CODE1 (U"0.2 0.4 0.7 0.8 \"\" 40 \"\" \"left\"")
642 CODE1 (U"0.6 0.8 0.7 0.8 \"\" 40 \"\" \"right\"")
643 MAN_END
644
645 MAN_BEGIN (U"ExperimentMFC 6. Responses are sounds", U"ppgb", 20160925)
646 INTRO (U"In the @@ExperimentMFC 2.1. The experiment file|example experiment@, "
647 "the stimuli were sounds, and the responses were categories whose labels appeared on buttons. "
648 "Sometimes you want it the other way around.")
649 NORMAL (U"An example is the %%/i/ prototype% task: the top of the screen just says “Please choose the best %ee”, "
650 "and no stimulus sound is played. Instead, the participant can click repeatedly on an array of 40 buttons, "
651 "each of which contains a different [i]-like sound. That is, if the participant clicks on a response button, "
652 "an [i]-like sound is played, and every response button has its own sound.")
653 NORMAL (U"Such a task can be regarded as reversing the task of the example experiment, "
654 "in which the stimulus was a sound and the response was a phonological category. "
655 "In the /i/ prototype task, the stimulus is a phonological category, and the response is a sound.")
656 NORMAL (U"This is what the experiment file could look like:")
657 CODE (U"\"ooTextFile\"")
658 CODE (U"\"ExperimentMFC 7\"")
659 CODE (U"blankWhilePlaying? <no>")
660 CODE (U"stimuliAreSounds? <no> \"\" \"\" \"\" \"\" 0 0 0")
661 CODE (U"numberOfDifferentStimuli = 2")
662 CODE1 (U"\"i\" \"Choose the best %%ee%.\"")
663 CODE1 (U"\"I\" \"Choose the best %%i%.\"")
664 CODE (U"numberOfReplicationsPerStimulus = 1")
665 CODE (U"breakAfterEvery = 1")
666 CODE (U"randomize = <CyclicNonRandom>")
667 CODE (U"startText = \"Click to start.\"")
668 CODE (U"runText = \"\"")
669 CODE (U"pauseText = \"You can have a short break if you like. Click to proceed.\"")
670 CODE (U"endText = \"The experiment has finished.\"")
671 CODE (U"maximumNumberOfReplays = 0")
672 CODE (U"replayButton = 0 0 0 0 \"\" \"\"")
673 CODE (U"okButton = 0.8 0.95 0.45 0.55 \"OK\" \"\"")
674 CODE (U"oopsButton = 0 0 0 0 \"\" \"\"")
675 CODE (U"responsesAreSounds? <yes>")
676 CODE (U"responseFileNameHead = \"Sounds/\"")
677 CODE (U"responseFileNameTail = \".wav\"")
678 CODE (U"responseCarrierBefore = \"\"")
679 CODE (U"responseCarrierAfter = \"\"")
680 CODE (U"responseInitialSilenceDuration = 0.3")
681 CODE (U"responseMedialSilenceDuration = 0")
682 CODE (U"responseFinalSilenceDuration = 0")
683 CODE (U"numberOfDifferentResponses = 16")
684 CODE1 (U"0.2 0.3 0.7 0.8 \"\" 10 \"\" \"i11\"")
685 CODE1 (U"0.3 0.4 0.7 0.8 \"\" 10 \"\" \"i12\"")
686 CODE1 (U"0.4 0.5 0.7 0.8 \"\" 10 \"\" \"i13\"")
687 CODE1 (U"0.5 0.6 0.7 0.8 \"\" 10 \"\" \"i14\"")
688 CODE1 (U"0.2 0.3 0.6 0.7 \"\" 10 \"\" \"i21\"")
689 CODE1 (U"0.3 0.4 0.6 0.7 \"\" 10 \"\" \"i22\"")
690 CODE1 (U"0.4 0.5 0.6 0.7 \"\" 10 \"\" \"i23\"")
691 CODE1 (U"0.5 0.6 0.6 0.7 \"\" 10 \"\" \"i24\"")
692 CODE1 (U"0.2 0.3 0.5 0.6 \"\" 10 \"\" \"i31\"")
693 CODE1 (U"0.3 0.4 0.5 0.6 \"\" 10 \"\" \"i32\"")
694 CODE1 (U"0.4 0.5 0.5 0.6 \"\" 10 \"\" \"i33\"")
695 CODE1 (U"0.5 0.6 0.5 0.6 \"\" 10 \"\" \"i34\"")
696 CODE1 (U"0.2 0.3 0.4 0.5 \"\" 10 \"\" \"i41\"")
697 CODE1 (U"0.3 0.4 0.4 0.5 \"\" 10 \"\" \"i42\"")
698 CODE1 (U"0.4 0.5 0.4 0.5 \"\" 10 \"\" \"i43\"")
699 CODE1 (U"0.5 0.6 0.4 0.5 \"\" 10 \"\" \"i44\"")
700 CODE (U"numberOfGoodnessCategories = 5")
701 CODE1 (U"0.25 0.35 0.10 0.20 \"1 (poor)\" 24 \"\"")
702 CODE1 (U"0.35 0.45 0.10 0.20 \"2\" 24 \"\"")
703 CODE1 (U"0.45 0.55 0.10 0.20 \"3\" 24 \"\"")
704 CODE1 (U"0.55 0.65 0.10 0.20 \"4\" 24 \"\"")
705 CODE1 (U"0.65 0.75 0.10 0.20 \"5 (good)\" 24 \"\"")
706 NORMAL (U"The participant will see 16 squares on the screen. First she will have to find the best /i/, "
707 "then the best /\\ic/. The sound files “Sounds/i11.wav” and so on must exist and have the same sampling frequency. "
708 "A silence of 0.3 seconds is played just before each response sound.")
709 MAN_END
710
711 MAN_BEGIN (U"ExperimentMFC 7. Blanking the screen", U"ppgb", 20130102)
712 INTRO (U"In all the earlier examples, the flag $%blankWhilePlaying was set to `<no>`. This means that in all those cases "
713 "the participant will immediately see the response categories when the sound starts playing "
714 "(or even earlier, if there is an initial silence).")
715 NORMAL (U"This can be changed by setting $%blankWhilePlaying to `<yes>`. When you do that, the participant will see a blank screen "
716 "while the stimulus is playing, and the response buttons will come up only after the sound has finished. "
717 "This is useful if you want to prevent the participant from clicking before the sound has finished, "
718 "or for priming experiments. Reaction times are measured from when the response buttons appear.")
719 NORMAL (U"If you want the response buttons to come up 0.5 seconds after the sound finishes playing, "
720 "you set the $%stimulusFinalSilenceDuration to 0.5.")
721 MAN_END
722
723 MAN_BEGIN (U"ExperimentMFC 8. Running multiple experiments", U"ppgb", 20160925)
724 INTRO (U"In all the earlier examples, either the set of stimulus sounds or the set of response sounds stayed "
725 "the same throughout the experiment. If you want more than one set of stimuli, or more than one set of responses, "
726 "you can run several experiments after each other, simply by selecting more than one experiment, then clicking #Run.")
727 NORMAL (U"You can put all these ExperimentMFC objects in one text file. The following example contains two experiments. "
728 "The second line has to contain the text `\"Collection\"`, followed by the number of experiments:")
729 CODE (U"\"ooTextFile\"")
730 CODE (U"\"Collection\" 2")
731 CODE (U"")
732 CODE (U"\"ExperimentMFC 7\" \"i\"")
733 CODE (U"blankWhilePlaying? <no>")
734 CODE (U"stimuliAreSounds? <no> \"\" \"\" \"\" \"\" 0 0 0")
735 CODE (U"numberOfDifferentStimuli = 1")
736 CODE1 (U"\"i\" \"Choose the best %%ee%.\"")
737 CODE (U"numberOfReplicationsPerStimulus = 1")
738 CODE (U"breakAfterEvery = 0")
739 CODE (U"randomize = <CyclicNonRandom>")
740 CODE (U"startText = \"You are going to choose the best %%ee%. Click to start.\"")
741 CODE (U"runText = \"\"")
742 CODE (U"pauseText = \"\"")
743 CODE (U"endText = \"Thank you for choosing the best %%ee%. Click to proceed.\"")
744 CODE (U"maximumNumberOfReplays = 0")
745 CODE (U"replayButton = 0 0 0 0 \"\" \"\"")
746 CODE (U"okButton = 0.8 0.95 0.45 0.55 \"OK\" \"\"")
747 CODE (U"oopsButton = 0 0 0 0 \"\" \"\"")
748 CODE (U"responsesAreSounds? <yes>")
749 CODE (U"responseFileNameHead = \"Sounds/\"")
750 CODE (U"responseFileNameTail = \".wav\"")
751 CODE (U"responseCarrierBefore = \"\"")
752 CODE (U"responseCarrierAfter = \"\"")
753 CODE (U"responseInitialSilenceDuration = 0.3")
754 CODE (U"responseMedialSilenceDuration = 0")
755 CODE (U"responseFinalSilenceDuration = 0")
756 CODE (U"numberOfDifferentResponses = 6")
757 CODE1 (U"0.2 0.3 0.7 0.8 \"\" 10 \"\" \"i1\"")
758 CODE1 (U"0.3 0.4 0.7 0.8 \"\" 10 \"\" \"i2\"")
759 CODE1 (U"0.4 0.5 0.7 0.8 \"\" 10 \"\" \"i3\"")
760 CODE1 (U"0.5 0.6 0.7 0.8 \"\" 10 \"\" \"i4\"")
761 CODE1 (U"0.6 0.7 0.7 0.8 \"\" 10 \"\" \"i5\"")
762 CODE1 (U"0.7 0.8 0.7 0.8 \"\" 10 \"\" \"i6\"")
763 CODE (U"numberOfGoodnessCategories = 0")
764 CODE (U"")
765 CODE (U"\"ExperimentMFC 7\" \"u\"")
766 CODE (U"blankWhilePlaying? <no>")
767 CODE (U"stimuliAreSounds? <no> \"\" \"\" \"\" \"\" 0 0 0")
768 CODE (U"numberOfDifferentStimuli = 1")
769 CODE1 (U"\"u\" \"Choose the best %%oo%.\"")
770 CODE (U"numberOfReplicationsPerStimulus = 1")
771 CODE (U"breakAfterEvery = 0")
772 CODE (U"randomize = <CyclicNonRandom>")
773 CODE (U"startText = \"You are going to choose the best %%oo%. Click to start.\"")
774 CODE (U"runText = \"\"")
775 CODE (U"pauseText = \"\"")
776 CODE (U"endText = \"All the experiments have finished. You can call the experimenter.\"")
777 CODE (U"maximumNumberOfReplays = 0")
778 CODE (U"replayButton = 0 0 0 0 \"\" \"\"")
779 CODE (U"okButton = 0.8 0.95 0.45 0.55 \"OK\" \"\"")
780 CODE (U"oopsButton = 0 0 0 0 \"\" \"\"")
781 CODE (U"responsesAreSounds? <yes>")
782 CODE (U"responseFileNameHead = \"Sounds/\"")
783 CODE (U"responseFileNameTail = \".wav\"")
784 CODE (U"responseCarrierBefore = \"\"")
785 CODE (U"responseCarrierAfter = \"\"")
786 CODE (U"responseInitialSilenceDuration = 0.3")
787 CODE (U"responseMedialSilenceDuration = 0")
788 CODE (U"responseFinalSilenceDuration = 0")
789 CODE (U"numberOfDifferentResponses = 6")
790 CODE1 (U"0.2 0.3 0.7 0.8 \"\" 10 \"\" \"u1\"")
791 CODE1 (U"0.3 0.4 0.7 0.8 \"\" 10 \"\" \"u2\"")
792 CODE1 (U"0.4 0.5 0.7 0.8 \"\" 10 \"\" \"u3\"")
793 CODE1 (U"0.5 0.6 0.7 0.8 \"\" 10 \"\" \"u4\"")
794 CODE1 (U"0.6 0.7 0.7 0.8 \"\" 10 \"\" \"u5\"")
795 CODE1 (U"0.7 0.8 0.7 0.8 \"\" 10 \"\" \"u6\"")
796 CODE (U"numberOfGoodnessCategories = 0")
797 NORMAL (U"In this example, the participant first has to choose the best /i/ from among six [i]-like sounds, "
798 "which are in the sound files `i1.wav` through `i6.wav`. After that, she has to choose the best /u/ "
799 "from among six [u]-like sounds, which are in the sound files `u1.wav` through `u6.wav`. "
800 "The percent signs in `%%ee%` mean that %ee will be italicized.")
801 NORMAL (U"If you read this file with ##Read from file...#, you will see two ExperimentMFC objects, "
802 "named `i` and `u`. They both stand selected. You then click #Run, and after the participant finishes, "
803 "you select both ExperimentMFC objects again (probably they still stand selected), and click ##Extract results#. "
804 "You will then get two #ResultMFC objects.")
805 MAN_END
806 }
807
808 /* End of file manual_ExperimentMFC.cpp */