annotate docs/Instructions/ListeningTestInstructions.tex @ 1950:6eec4abc85e7

Minor edits to paper, updated installation instructions, added to be ignored files (e.g. LaTeX auxiliary files)
author Brecht De Man <b.deman@qmul.ac.uk>
date Wed, 30 Sep 2015 18:34:40 +0200
parents 4988c805ff9e
children 33d7a1faa50b
rev   line source
me@1942 1 \documentclass[11pt, oneside]{article} % use "amsart" instead of "article" for AMSLaTeX format
me@1942 2 \usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
me@1942 3 \geometry{letterpaper} % ... or a4paper or a5paper or ...
me@1942 4 %\geometry{landscape} % Activate for rotated page geometry
me@1942 5 \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
me@1942 6 \usepackage{graphicx} % Use pdf, png, jpg, or eps§ with pdflatex; use eps in DVI mode
me@1942 7 % TeX will automatically convert eps --> pdf in pdflatex
me@1942 8
me@1942 9 \usepackage{listings} % Source code
me@1942 10 \usepackage{amssymb}
me@1942 11 \usepackage{cite}
me@1942 12 \usepackage{hyperref} % Hyperlinks
b@1950 13 \usepackage[nottoc,numbib]{tocbibind} % 'References' in TOC
me@1942 14
me@1942 15 \graphicspath{{img/}} % Relative path where the images are stored.
me@1942 16
me@1942 17 \title{Instructions for listening tests using\\ Web Audio Evaluation Tool}
me@1942 18 \author{Brecht De Man}
me@1942 19 \date{} % Activate to display a given date or no date
me@1942 20
me@1942 21 \begin{document}
me@1942 22 \maketitle
me@1942 23
b@1950 24 These instructions are about use of the Web Audio Evaluation Tool \cite{waet} with the APE interface \cite{ape} on Windows and Mac OS X platforms.
me@1942 25 % TO DO: Linux
me@1942 26
me@1942 27 \tableofcontents
me@1942 28
b@1950 29 \clearpage
me@1942 30
me@1942 31 \section{Installation and set up}
b@1950 32 Download the folder (\url{https://code.soundsoftware.ac.uk/hg/webaudioevaluationtool/archive/tip.zip}) and unzip in a location of your choice.
me@1942 33
me@1942 34 \subsection{Contents}
me@1942 35 The folder should contain the following elements: \\
me@1942 36
me@1942 37 \textbf{Main folder:}
b@1950 38 \begin{itemize}
b@1950 39 \item \texttt{ape.css, core.css, graphics.css, structure.css}: style files (edit to change appearance)
b@1950 40 \item \texttt{ape.js}: JavaScript file for APE-style interface \cite{ape}
b@1950 41 \item \texttt{CITING.txt, LICENSE.txt, README.txt}: text files with, respectively, the citation which we ask to include in any work where this tool or any portion thereof is used, modified or otherwise; the license under which the software is shared; and a general readme file.
b@1950 42 \item \texttt{core.js}: JavaScript file with core functionality
b@1950 43 \item \texttt{index.html}: webpage where interface should appear
b@1950 44 \item \texttt{jquery-2.1.4.js}: jQuery JavaScript Library
b@1950 45 \item \texttt{pythonServer.py}: webserver for running tests locally
b@1950 46 \item \texttt{pythonServer-legacy.py}: webserver with limited functionality (no automatic storing of output XML files)\\
b@1950 47 \end{itemize}
b@1950 48 \textbf{Documentation (./docs/)}
b@1950 49 \begin{itemize}
b@1950 50 \item Instructions: PDF and \LaTeX source of these instructions
b@1950 51 \item Project Specification Document (\LaTeX/PDF)
b@1950 52 \item Results Specification Document (\LaTeX/PDF)
b@1950 53 \item SMC15: PDF and \LaTeX source of corresponding SMC2015 publication \cite{waet}
b@1950 54 \item WAC2016: PDF and \LaTeX source of corresponding WAC2016 publication\\
b@1950 55 \end{itemize}
b@1950 56 \textbf{Example project (./example\_eval/)}
b@1950 57 \begin{itemize}
b@1950 58 \item An example of what the set up XML should look like, with example audio files 0.wav-10.wav which are short recordings at 44.1kHz, 16bit of a woman saying the corresponding number (useful for testing randomisation and general familiarisation with the interface).\\
b@1950 59 \end{itemize}
b@1950 60 \textbf{Output files (./saves/)}
b@1950 61 \begin{itemize}
b@1950 62 \item The output XML files of tests will be stored here by default by the \texttt{pythonServer.py} script.\\
b@1950 63 \end{itemize}
b@1950 64 \textbf{Auxiliary scripts (./scripts/)}
b@1950 65 \begin{itemize}
b@1950 66 \item Helpful Python scripts for extraction and visualisation of data.\\
b@1950 67 \end{itemize}
b@1950 68 \textbf{Test creation tool (./test\_create/)}
b@1950 69 \begin{itemize}
b@1950 70 \item Webpage for easily setting up your own test without having to delve into the XML.\\
b@1950 71 \end{itemize}
me@1942 72
me@1942 73 \subsection{Browser}
b@1950 74 As Microsoft Internet Explorer doesn't support the Web Audio API\footnote{\url{http://caniuse.com/\#feat=audio-api}}, you will need another browser like Google Chrome, Safari or Firefox (all three are tested and confirmed to work).
me@1942 75
me@1942 76 The tool is platform-independent and works in any browser that supports the Web Audio API. It does not require any specific, proprietary software. However, in case the tool is hosted locally (i.e. you are not hosting it on an actual webserver) you will need Python, which is a free programming language - see the next paragraph.
me@1942 77
me@1942 78 \subsection{Python 2.7}
me@1942 79 On Windows, Python 2.7 is not generally preinstalled and therefore has to be downloaded\footnote{\url{https://www.python.org/downloads/windows/}} and installed to be able to run scripts such as the local webserver, necessary if the tool is hosted locally.
me@1942 80
me@1942 81 On Mac OS X, Python comes preinstalled.
me@1942 82
b@1950 83 \clearpage
me@1942 84
b@1950 85 \section{Listening test: Local}
me@1942 86 \subsection{Start local webserver}
me@1942 87 If the test is hosted locally, you will need to run the local webserver provided with this tool.
me@1942 88
b@1950 89 \subsubsection{Mac OS X}
b@1950 90 Open the Terminal (find it in \textbf{Applications/Terminal} or via Spotlight), and go to the folder you downloaded. To do this, type \texttt{cd [folder]}, where \texttt{[folder]} is the folder where to find the \texttt{pythonServer.py} script you downloaded. For instance, if the location is \texttt{/Users/John/Documents/test/}, then type
b@1950 91
b@1950 92 \texttt{cd /Users/John/Documents/test/}
b@1950 93
b@1950 94 Then hit enter and run the Python script by typing
b@1950 95
b@1950 96 \texttt{python pythonServer.py}
b@1950 97
b@1950 98 and hit enter again. See also Figure \ref{fig:terminal}.
b@1950 99
b@1950 100 \begin{figure}[htbp]
b@1950 101 \begin{center}
b@1950 102 \includegraphics[width=.75\textwidth]{pythonServer.png}
b@1950 103 \caption{Mac OS X: The Terminal window after going to the right folder (\texttt{cd [folder\_path]}) and running \texttt{pythonServer.py}.}
b@1950 104 \label{fig:terminal}
b@1950 105 \end{center}
b@1950 106 \end{figure}
b@1950 107
b@1950 108 Alternatively, you can simply type \texttt{python} (follwed by a space) and drag the file into the Terminal window from Finder. % DOESN'T WORK YET
b@1950 109
b@1950 110 You can leave this running throughout the different experiments (i.e. leave the Terminal open).
b@1950 111
me@1942 112 \subsubsection{Windows}
me@1942 113
b@1950 114 Simply double click the Python script \texttt{pythonServer.py} in the folder you downloaded.
b@1950 115
b@1950 116 You may see a warning like the one in Figure \ref{fig:warning}. Click `Allow access'.
b@1950 117
b@1950 118 \begin{figure}[htbp]
b@1950 119 \begin{center}
b@1950 120 \includegraphics[width=.6\textwidth]{warning.png}
b@1950 121 \caption{Windows: Potential warning message when executing \texttt{pythonServer.py}.}
b@1950 122 \label{fig:warning}
b@1950 123 \end{center}
b@1950 124 \end{figure}
b@1950 125
b@1950 126 The process should now start, in the Command prompt that opens - see Figure \ref{fig:python}.
b@1950 127
b@1950 128 \begin{figure}[htbp]
b@1950 129 \begin{center}
b@1950 130 \includegraphics[width=.75\textwidth]{python.png}
b@1950 131 \caption{Windows: The Command Prompt after running \texttt{pythonServer.py} and opening the corresponding website.}
b@1950 132 \label{fig:python}
b@1950 133 \end{center}
b@1950 134 \end{figure}
b@1950 135
b@1950 136 You can leave this running throughout the different experiments (i.e. leave the Command Prompt open).
me@1942 137
me@1942 138
b@1950 139 \clearpage
b@1950 140 \subsection{Sample rate}
b@1950 141 Depending on how the experiment is set up, audio is resampled automatically (the Web Audio default) or the sample rate is enforced. In the latter case, you will need to make sure that the sample rate of the system is equal to the sample rate of these audio files. For this reason, all audio files in the experiment will have to have the same sample rate.
b@1950 142
b@1950 143 Always make sure that all other digital equipment in the playback chain (clock, audio interface, digital-to-analog converter, ...) is set to this same sample rate.
me@1942 144
me@1942 145 \subsubsection{Mac OS X}
b@1950 146 To change the sample rate in Mac OS X, go to \textbf{Applications/Utilities/Audio MIDI Setup} or find this application with Spotlight. Then select the output of the audio interface you are using and change the `Format' to the appropriate number. Also make sure the bit depth and channel count are as desired.
b@1950 147 If you are using an external audio interface, you may have to go to the preference pane of that device to change the sample rate.
me@1942 148
b@1950 149 \subsubsection{Windows}
b@1950 150 To change the sample rate in Windows, right-click on the speaker icon in the lower-right corner of your desktop and choose `Playback devices'. Right-click the appropriate playback device and click `Properties'. Click the `Advanced' tab and verify or change the sample rate under `Default Format'. % NEEDS CONFIRMATION
b@1950 151 If you are using an external audio interface, you may have to go to the preference pane of that device to change the sample rate.
b@1950 152
me@1942 153
me@1942 154
me@1942 155 \subsection{Setting up a participant}
me@1942 156
me@1942 157 \subsubsection{Instructions} % EXAMPLE?
me@1942 158 Before each test, show the instructions below or similar and make sure it is available to the subject throughout the test. Make sure to ask whether the participant has any questions upon seeing and/or reading the instructions.
me@1942 159
me@1942 160 \begin{itemize}
me@1942 161 \item You will be asked for your name (``John'') and location (room identifier).
me@1942 162 \item An interface will appear, where you are asked to
me@1942 163 \begin{itemize}
me@1942 164 \item click green markers to play the different mixes;
me@1942 165 \item drag the markers on a scale to reflect your preference for the mixes;
me@1942 166 \item comment on these mixes, using text boxes with corresponding numbers (in your \textbf{native language});
me@1942 167 \item optionally comment on all mixes together, or on the song, in `General comments'.
me@1942 168 \end{itemize}
me@1942 169 \item You are asked for your personal, honest opinion. Feel free to use the full range of the scale to convey your opinion of the various mixes. Don?t be afraid to be harsh and direct.
me@1942 170 \item The markers appear at random positions at first (which means some markers may hide behind others).
me@1942 171 \item The interface can take a few seconds to start playback, but switching between mixes should be instantaneous.
me@1942 172 \item This is a research experiment, so please forgive us if things go wrong. Let us know immediately and we will fix it or restart the test.
me@1942 173 \item When the test is finished (after all songs have been evaluated), just call the experimenter, do NOT close the window.
me@1942 174 \item After the test, please fill out our survey about your background, experience and feedback on the test.
me@1942 175 \item By participating, you consent to us using all collected data for research. Unless asked explicitly, all data will be anonymised when shared.
me@1942 176 \end{itemize}
me@1942 177
me@1942 178
me@1942 179 \subsubsection{The test}
me@1942 180 To start the test, open the browser and type
me@1942 181
me@1942 182 \texttt{localhost:8000}
me@1942 183
me@1942 184 and hit enter. The test should start (see Figure \ref{fig:test}).
me@1942 185
me@1942 186 \begin{figure}[htb]
me@1942 187 \begin{center}
me@1942 188 \includegraphics[width=.8\textwidth]{test.png}
me@1942 189 \caption{The start of the test in Google Chrome on Windows 7.}
me@1942 190 \label{fig:test}
me@1942 191 \end{center}
me@1942 192 \end{figure}
me@1942 193
b@1950 194 If at any point in the test the participant reports weird behaviour or an error of some kind, or the test needs to be interrupted, please notify the experimenter and/or refer to Section \ref{sec:troubleshooting}.
me@1942 195
me@1942 196 When the test is over (the subject should see a message to that effect, and click `Submit' one last time), the output XML file containing all collected data should have appeared in `saves/'. The names of these files are `test-0.xml', `test-1.xml', etc., in ascending order. The Terminal or Command prompt running the local web server will display the following file name. If such a file did not appear, please again refer to Section \ref{sec:troubleshooting}.
me@1942 197
me@1942 198 It is advised that you back up these results as often as possible, as a loss of this data means that the time and effort spent by the subject(s) has been in vain. Save the results to an external or network drive, and/or send them to the experimenter regularly.
me@1942 199
me@1942 200 To start the test again for a new participant, you do not need to close the browser or shut down the Terminal or Command Prompt. Simply refresh the page or go to \texttt{localhost:8000} again.
me@1942 201
me@1942 202
me@1942 203 \subsubsection{Survey}
me@1942 204 The tool allows for embedded questions before and after each page, and before and after the whole test. If these do \underline{not} include survey questions (about the participant's background, demographic information, and so on) make sure to ask the participant to complete the survey immediately after the test. Above anything else, this decreases the likelihood that the survey goes forgotten and the experimenters do not receive the data in time.
me@1942 205
b@1950 206 \clearpage
me@1942 207 \subsection{Troubleshooting} \label{sec:troubleshooting}
me@1942 208 Thanks to feedback from using the interface in experiments by the authors and others, many bugs have been caught and fatal crashes due to the interface (provided it is set up properly by the user) seem to be a thing of the past.
me@1942 209 However, if things do go wrong or the test needs to be interrupted for whatever reason, all data is not lost. In a normal scenario, the test needs to be completed until the end (the final `Submit'), at which point the output XML is stored in the \texttt{saves/}. If this stage is not reached, open the JavaScript Console (see below for how to find it) and type
me@1942 210
me@1942 211 \texttt{createProjectSave()}
me@1942 212
me@1942 213 and hit enter. This will open a pop-up window with a hyperlink that reads `Save File'; click it and an XML file with results until that point should be stored in your download folder.
b@1950 214
me@1942 215 Alternatively, a lot of data can be read from the same console, in which the tool prints a lot of debug information. Specifically:
b@1950 216 \begin{itemize}
me@1942 217 \item the randomisation of pages and fragments are logged;
me@1942 218 \item any time a slider is played, its ID and the time stamp (in seconds since the start of the test) are displayed;
me@1942 219 \item any time a slider is dragged and dropped, the location where it is dropped including the time stamp are shown;
me@1942 220 \item any comments and pre- or post-test questions and their answers are logged as well.
b@1950 221 \end{itemize}
me@1942 222
me@1942 223 You can select all this and save into a text file, so that none of this data is lost. You may to choose to do this even when a test was successful as an extra precaution.
me@1942 224
me@1942 225 \subsubsection{Opening the JavaScript Console}
b@1950 226 \begin{itemize}
b@1950 227 \item In Google Chrome, the JavaScript Console can be found in \textbf{View$>$Developer$>$JavaScript Console}, or via the keyboard shortcut Cmd + Alt + J (Mac OS X).
b@1950 228 \item In Safari, the JavaScript Console can be found in \textbf{Develop$>$Show Error Console}, or via the keyboard shortcut Cmd + Alt + C (Mac OS X). Note that for the Developer menu to be visible, you have to go to Preferences (Cmd + ,) and enable `Show Develop menu in menu bar' in the `Advanced' tab.
b@1950 229 \item In Firefox, go to \textbf{Tools$>$Web Developer$>$Web Console}, or hit Cmd + Alt + K.
b@1950 230 \end{itemize}
me@1942 231
b@1950 232 \clearpage
b@1950 233 \section{Listening test: remote}
b@1950 234
b@1950 235 (TBA)
b@1950 236
b@1950 237 \clearpage
b@1950 238 \bibliographystyle{ieeetr}
b@1950 239 \bibliography{ListeningTestInstructions}{}
me@1942 240
me@1942 241 \end{document}