| 1 | /* ExperimentMFC_def.h |
| 2 | * |
| 3 | * Copyright (C) 2001-2007,2009,2011,2013,2015-2019,2022,2024 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 2 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 | /* |
| 20 | * pb 2002/07/16 GPL |
| 21 | * pb 2003/02/07 added rootDirectory |
| 22 | * pb 2003/03/08 added stimulusMedialSilenceDuration and stimulusInitialSilenceDuration (version 2) |
| 23 | * pb 2004/06/22 added response key (version 3) |
| 24 | * pb 2005/11/21 added replayButton (version 4) |
| 25 | * pb 2005/12/04 added okButton and oopsButton (version 4) |
| 26 | * pb 2005/12/06 fix stimuliAreSounds: defaults to TRUE |
| 27 | * pb 2007/08/12 wchar |
| 28 | * pb 2007/09/26 added font size (version 5) |
| 29 | * pb 2011/03/03 added reaction time (version 2 of ResultsMFC) |
| 30 | * pb 2013/01/01 added finalSilenceDuration and blankWhilePlaying (version 6) |
| 31 | * pb 2016/09/25 added font size and response key to goodness ratings (version 7) |
| 32 | */ |
| 33 | |
| 34 | /********* class ExperimentMFC **********/ |
| 35 | |
| 36 | #define ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:36:9`! SoundMFC |
| 37 | oo_DEFINE_STRUCTcxx . . $ `sys/oo_DESTROY.h:108:9`! (SoundMFC) |
| 38 | |
| 39 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (name) |
| 40 | |
| 41 | #if ! oo_READINGcxx . . $ `sys/oo_DESTROY.h:134:9`! && ! oo_WRITINGcxx . . $ `sys/oo_DESTROY.h:137:9`! && ! oo_COMPARINGcxx . . $ `sys/oo_DESTROY.h:132:9`! |
| 42 | oo_OBJECTcxx . . $ `sys/oo_DESTROY.h:91:9`! (Sound, 0, sound) |
| 43 | #endif |
| 44 | |
| 45 | oo_END_STRUCTcxx . . $ `sys/oo_DESTROY.h:113:9`! (SoundMFC) |
| 46 | #undef ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:36:9`! |
| 47 | |
| 48 | |
| 49 | #define ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:49:9`! StimulusMFC |
| 50 | oo_DEFINE_STRUCTcxx . . $ `sys/oo_DESTROY.h:108:9`! (StimulusMFC) |
| 51 | |
| 52 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (name) |
| 53 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (4) |
| 54 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (visibleText) |
| 55 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 56 | |
| 57 | #if ! oo_READINGcxx . . $ `sys/oo_DESTROY.h:134:9`! && ! oo_WRITINGcxx . . $ `sys/oo_DESTROY.h:137:9`! && ! oo_COMPARINGcxx . . $ `sys/oo_DESTROY.h:132:9`! |
| 58 | oo_OBJECTcxx . . $ `sys/oo_DESTROY.h:91:9`! (Sound, 0, sound) |
| 59 | #endif |
| 60 | |
| 61 | oo_END_STRUCTcxx . . $ `sys/oo_DESTROY.h:113:9`! (StimulusMFC) |
| 62 | #undef ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:49:9`! |
| 63 | |
| 64 | |
| 65 | #define ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:65:9`! ResponseMFC |
| 66 | oo_DEFINE_STRUCTcxx . . $ `sys/oo_DESTROY.h:108:9`! (ResponseMFC) |
| 67 | |
| 68 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (left) |
| 69 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (right) |
| 70 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (bottom) |
| 71 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (top) |
| 72 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (label) |
| 73 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (5) |
| 74 | oo_INT16cxx . . $ `sys/oo.h:51:9`! (fontSize) |
| 75 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 76 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (3) |
| 77 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (key) |
| 78 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 79 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (name) |
| 80 | |
| 81 | #if ! oo_READINGcxx . . $ `sys/oo_DESTROY.h:134:9`! && ! oo_WRITINGcxx . . $ `sys/oo_DESTROY.h:137:9`! && ! oo_COMPARINGcxx . . $ `sys/oo_DESTROY.h:132:9`! |
| 82 | oo_OBJECTcxx . . $ `sys/oo_DESTROY.h:91:9`! (Sound, 0, sound) |
| 83 | #endif |
| 84 | |
| 85 | oo_END_STRUCTcxx . . $ `sys/oo_DESTROY.h:113:9`! (ResponseMFC) |
| 86 | #undef ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:65:9`! |
| 87 | |
| 88 | |
| 89 | #define ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:89:9`! GoodnessMFC |
| 90 | oo_DEFINE_STRUCTcxx . . $ `sys/oo_DESTROY.h:108:9`! (GoodnessMFC) |
| 91 | |
| 92 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (left) |
| 93 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (right) |
| 94 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (bottom) |
| 95 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (top) |
| 96 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (label) |
| 97 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (7) |
| 98 | oo_INT16cxx . . $ `sys/oo.h:51:9`! (fontSize) |
| 99 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (key) |
| 100 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 101 | |
| 102 | oo_END_STRUCTcxx . . $ `sys/oo_DESTROY.h:113:9`! (GoodnessMFC) |
| 103 | #undef ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:89:9`! |
| 104 | |
| 105 | |
| 106 | #define ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:106:9`! ExperimentMFC |
| 107 | oo_DEFINE_CLASScxx . . $ `sys/oo_DESTROY.h:116:9`! (ExperimentMFC, Daata) |
| 108 | |
| 109 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (6) |
| 110 | oo_QUESTIONcxx . . $ `sys/oo.h:106:9`! (blankWhilePlaying) |
| 111 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 112 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (4) |
| 113 | oo_QUESTIONcxx . . $ `sys/oo.h:106:9`! (stimuliAreSounds) |
| 114 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 115 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (stimulusFileNameHead) |
| 116 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (stimulusFileNameTail) |
| 117 | oo_STRUCTcxx . . $ `sys/oo_DESTROY.h:61:9`! (SoundMFC, stimulusCarrierBefore) |
| 118 | oo_STRUCTcxx . . $ `sys/oo_DESTROY.h:61:9`! (SoundMFC, stimulusCarrierAfter) |
| 119 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (2) |
| 120 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (stimulusInitialSilenceDuration) |
| 121 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (stimulusMedialSilenceDuration) |
| 122 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 123 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (6) |
| 124 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (stimulusFinalSilenceDuration) |
| 125 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 126 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfDifferentStimuli) |
| 127 | oo_STRUCTVECcxx . . $ `sys/oo_DESTROY.h:69:9`! (StimulusMFC, stimulus, numberOfDifferentStimuli) |
| 128 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfReplicationsPerStimulus) |
| 129 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (breakAfterEvery) |
| 130 | oo_ENUMcxx . . $ `sys/oo.h:101:9`! (kExperiment_randomize, randomize) |
| 131 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (startText) |
| 132 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (runText) |
| 133 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (pauseText) |
| 134 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (endText) |
| 135 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (4) |
| 136 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (maximumNumberOfReplays) |
| 137 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (replay_left) |
| 138 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (replay_right) |
| 139 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (replay_bottom) |
| 140 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (replay_top) |
| 141 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (replay_label) |
| 142 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (replay_key) |
| 143 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (ok_left) |
| 144 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (ok_right) |
| 145 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (ok_bottom) |
| 146 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (ok_top) |
| 147 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (ok_label) |
| 148 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (ok_key) |
| 149 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (oops_left) |
| 150 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (oops_right) |
| 151 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (oops_bottom) |
| 152 | oo_FLOATcxx . . $ `sys/oo.h:57:9`! (oops_top) |
| 153 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (oops_label) |
| 154 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (oops_key) |
| 155 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 156 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (4) |
| 157 | oo_QUESTIONcxx . . $ `sys/oo.h:106:9`! (responsesAreSounds) |
| 158 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (responseFileNameHead) |
| 159 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (responseFileNameTail) |
| 160 | oo_STRUCTcxx . . $ `sys/oo_DESTROY.h:61:9`! (SoundMFC, responseCarrierBefore) |
| 161 | oo_STRUCTcxx . . $ `sys/oo_DESTROY.h:61:9`! (SoundMFC, responseCarrierAfter) |
| 162 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (responseInitialSilenceDuration) |
| 163 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (responseMedialSilenceDuration) |
| 164 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 165 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (6) |
| 166 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (responseFinalSilenceDuration) |
| 167 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 168 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfDifferentResponses) |
| 169 | oo_STRUCTVECcxx . . $ `sys/oo_DESTROY.h:69:9`! (ResponseMFC, response, numberOfDifferentResponses) |
| 170 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (1) |
| 171 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfGoodnessCategories) |
| 172 | oo_STRUCTVECcxx . . $ `sys/oo_DESTROY.h:69:9`! (GoodnessMFC, goodness, numberOfGoodnessCategories) |
| 173 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 174 | #if ! oo_READINGcxx . . $ `sys/oo_DESTROY.h:134:9`! && ! oo_WRITINGcxx . . $ `sys/oo_DESTROY.h:137:9`! && ! oo_COMPARINGcxx . . $ `sys/oo_DESTROY.h:132:9`! |
| 175 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (samplePeriod) |
| 176 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfChannels) |
| 177 | oo_BOOLEANcxx . . $ `sys/oo.h:105:9`! (pausing) |
| 178 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (trial) |
| 179 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfTrials) |
| 180 | oo_INTVECcxx . . $ `sys/oo.h:76:9`! (stimuli, numberOfTrials) |
| 181 | oo_INTVECcxx . . $ `sys/oo.h:76:9`! (responses, numberOfTrials) |
| 182 | oo_VECcxx . . $ `sys/oo.h:74:9`! (goodnesses, numberOfTrials) |
| 183 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (startingTime) |
| 184 | oo_VECcxx . . $ `sys/oo.h:74:9`! (reactionTimes, numberOfTrials) |
| 185 | oo_OBJECTcxx . . $ `sys/oo_DESTROY.h:91:9`! (Sound, 0, playBuffer) |
| 186 | #endif |
| 187 | oo_TRANSIENT_FOLDERcxx . . $ `sys/oo_DESTROY.h:102:9`! (rootDirectory) |
| 188 | #if oo_READINGcxx . . $ `sys/oo_DESTROY.h:134:9`! |
| 189 | MelderFolder_copy (& Data_directoryBeingRead, & rootDirectory); |
| 190 | oo_VERSION_UNTIL (4) |
| 191 | stimuliAreSounds = true; |
| 192 | oo_VERSION_END |
| 193 | #endif |
| 194 | |
| 195 | oo_END_CLASScxx . . $ `sys/oo_DESTROY.h:121:9`! (ExperimentMFC) |
| 196 | #undef ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:106:9`! |
| 197 | |
| 198 | |
| 199 | /********** class ResultsMFC **********/ |
| 200 | |
| 201 | #define ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:201:9`! TrialMFC |
| 202 | oo_DEFINE_STRUCTcxx . . $ `sys/oo_DESTROY.h:108:9`! (TrialMFC) |
| 203 | |
| 204 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (stimulus) |
| 205 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (response) |
| 206 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (1) |
| 207 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (goodness) |
| 208 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 209 | oo_FROMcxx . . $ `sys/oo_DESTROY.h:125:9`! (2) |
| 210 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (reactionTime) |
| 211 | oo_ENDFROMcxx . . $ `sys/oo_DESTROY.h:127:9`! |
| 212 | |
| 213 | oo_END_STRUCTcxx . . $ `sys/oo_DESTROY.h:113:9`! (TrialMFC) |
| 214 | #undef ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:201:9`! |
| 215 | |
| 216 | |
| 217 | #define ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:217:9`! ResultsMFC |
| 218 | oo_DEFINE_CLASScxx . . $ `sys/oo_DESTROY.h:116:9`! (ResultsMFC, Daata) |
| 219 | |
| 220 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfTrials) |
| 221 | oo_STRUCTVECcxx . . $ `sys/oo_DESTROY.h:69:9`! (TrialMFC, result, numberOfTrials) |
| 222 | |
| 223 | oo_END_CLASScxx . . $ `sys/oo_DESTROY.h:121:9`! (ResultsMFC) |
| 224 | #undef ooSTRUCTcxx . . $ `fon/ExperimentMFC_def.h:217:9`! |
| 225 | |
| 226 | |
| 227 | /* End of file ExperimentMFC_def.h */ |