Usage » History » Version 1

Jeremy Gow, 2012-11-16 10:37 AM

1 1 Jeremy Gow
h1. Usage
2 1 Jeremy Gow
3 1 Jeremy Gow
<code>
4 1 Jeremy Gow
java Experiment <show clock?> <multiple> <n> <midi device> <scale length> <low anchor> <high anchor> <midi file directory> <instructions file> <results directory> <familiarity> <pleasantness> <questionnaire> <debug>
5 1 Jeremy Gow
</code>
6 1 Jeremy Gow
7 1 Jeremy Gow
where:
8 1 Jeremy Gow
9 1 Jeremy Gow
<show clock?> specifies whether to show the clock (0 = no; 1 = yes).
10 1 Jeremy Gow
11 1 Jeremy Gow
<multiple> and <n> are integers: the clock runs for <n> time units before a probed event where the time unit is a multiple of the tatum as specified by <multiple>.
12 1 Jeremy Gow
13 1 Jeremy Gow
<midi device> is an integer specifying the midi device to use (usually 0).
14 1 Jeremy Gow
15 1 Jeremy Gow
<scale length> is the number of levels of the rating scale and <low anchor> and <high anchor> are its high and low anchors respectively (e.g., "highly unexpected", "highly expected" with a scale length of 7).
16 1 Jeremy Gow
17 1 Jeremy Gow
<midi file directory> is the directory where the midi files are stored.
18 1 Jeremy Gow
19 1 Jeremy Gow
<instructions file> is an html file containing the instructions for the participant which will be displayed at the beginning of the experiment.
20 1 Jeremy Gow
21 1 Jeremy Gow
<results directory> is the directory where the results will be written.
22 1 Jeremy Gow
23 1 Jeremy Gow
If <familiarity> is 1 the participant is asked to rate the familiarity of each stimulus, if it is 0 the question is omitted.
24 1 Jeremy Gow
25 1 Jeremy Gow
If <pleasantness> is 1 the participant is asked to rate the pleasantness of each stimulus, if it is 0 the question is omitted.
26 1 Jeremy Gow
27 1 Jeremy Gow
if <questionnaire> is 1, experiment ends with a compulsory questionnaire on age, sex, musical training etc.; if it is 0 the questionnaire is optional.
28 1 Jeremy Gow
29 1 Jeremy Gow
if <debug> is 1 debug information is written to the terminal, if 0 it is not.
30 1 Jeremy Gow
31 1 Jeremy Gow
Example
32 1 Jeremy Gow
See https://code.soundsoftware.ac.uk/projects/mep/repository/entry/runExperiment.bat for an example.
33 1 Jeremy Gow
34 1 Jeremy Gow
To use in a study:
35 1 Jeremy Gow
36 1 Jeremy Gow
1. put the relevant midi files in the directory specified by <midi file directory>. When playing the clock, the program can be a little fussy about the onsets and durations of the notes in the midi files being exact integer multiples of each other.
37 1 Jeremy Gow
2. edit pfilelist.txt and filelist.txt (also in <midi file directory>) to contain the midi files played in the practice and main blocks respectively: put one file on each line followed by a list of note numbers to probe with the visual clock (e.g., 1 = the first note).
38 1 Jeremy Gow
3. run the program, entering a participant ID. The results are written to files in the specified directory which must exist.
39 1 Jeremy Gow
4. responses can be given either using the mouse or using the numeric keys (except in the case of a scalelength of 2 where the keys 'q' and 'p' are used).
40 1 Jeremy Gow
5. create a set of instructions for the study in an html file.
41 1 Jeremy Gow
42 1 Jeremy Gow
Some guidelines for creating the files filelist.txt and pfilelist.txt:
43 1 Jeremy Gow
44 1 Jeremy Gow
* the filenames may contain letters and numbers but must not start with a number;
45 1 Jeremy Gow
* only use a single space between filenames and note numbers and end each line directly after the last probe point - i.e with no trailing white space;
46 1 Jeremy Gow
* don't include any blank lines;
47 1 Jeremy Gow
* the last line containing a filename and probe points must terminate with a single newline at the end of the file.