annotate docs/Instructions/ListeningTestInstructions.tex @ 1457:c8a9825aaa05

Merge from branch "WAC2016"
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Mon, 23 Nov 2015 09:13:12 +0000
parents 04e8a9c07c7e
children 33d7a1faa50b
rev   line source
nickjillings@1453 1 \documentclass[11pt, oneside]{article} % use "amsart" instead of "article" for AMSLaTeX format
nickjillings@1453 2 \usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
nickjillings@1453 3 \geometry{letterpaper} % ... or a4paper or a5paper or ...
nickjillings@1453 4 %\geometry{landscape} % Activate for rotated page geometry
nickjillings@1453 5 \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
nickjillings@1453 6 \usepackage{graphicx} % Use pdf, png, jpg, or eps§ with pdflatex; use eps in DVI mode
nickjillings@1453 7 % TeX will automatically convert eps --> pdf in pdflatex
nickjillings@1453 8
nickjillings@1453 9 \usepackage{listings} % Source code
nickjillings@1453 10 \usepackage{amssymb}
nickjillings@1453 11 \usepackage{cite}
nickjillings@1453 12 \usepackage{hyperref} % Hyperlinks
nickjillings@1457 13 \usepackage[nottoc,numbib]{tocbibind} % 'References' in TOC
nickjillings@1453 14
nickjillings@1453 15 \graphicspath{{img/}} % Relative path where the images are stored.
nickjillings@1453 16
nickjillings@1453 17 \title{Instructions for listening tests using\\ Web Audio Evaluation Tool}
nickjillings@1453 18 \author{Brecht De Man}
nickjillings@1453 19 \date{} % Activate to display a given date or no date
nickjillings@1453 20
nickjillings@1453 21 \begin{document}
nickjillings@1453 22 \maketitle
nickjillings@1453 23
nickjillings@1457 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.
nickjillings@1453 25 % TO DO: Linux
nickjillings@1453 26
nickjillings@1453 27 \tableofcontents
nickjillings@1453 28
nickjillings@1457 29 \clearpage
nickjillings@1453 30
nickjillings@1453 31 \section{Installation and set up}
nickjillings@1457 32 Download the folder (\url{https://code.soundsoftware.ac.uk/hg/webaudioevaluationtool/archive/tip.zip}) and unzip in a location of your choice.
nickjillings@1453 33
nickjillings@1453 34 \subsection{Contents}
nickjillings@1453 35 The folder should contain the following elements: \\
nickjillings@1453 36
nickjillings@1453 37 \textbf{Main folder:}
nickjillings@1457 38 \begin{itemize}
nickjillings@1457 39 \item \texttt{ape.css, core.css, graphics.css, structure.css}: style files (edit to change appearance)
nickjillings@1457 40 \item \texttt{ape.js}: JavaScript file for APE-style interface \cite{ape}
nickjillings@1457 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.
nickjillings@1457 42 \item \texttt{core.js}: JavaScript file with core functionality
nickjillings@1457 43 \item \texttt{index.html}: webpage where interface should appear
nickjillings@1457 44 \item \texttt{jquery-2.1.4.js}: jQuery JavaScript Library
nickjillings@1457 45 \item \texttt{pythonServer.py}: webserver for running tests locally
nickjillings@1457 46 \item \texttt{pythonServer-legacy.py}: webserver with limited functionality (no automatic storing of output XML files)\\
nickjillings@1457 47 \end{itemize}
nickjillings@1457 48 \textbf{Documentation (./docs/)}
nickjillings@1457 49 \begin{itemize}
nickjillings@1457 50 \item Instructions: PDF and \LaTeX source of these instructions
nickjillings@1457 51 \item Project Specification Document (\LaTeX/PDF)
nickjillings@1457 52 \item Results Specification Document (\LaTeX/PDF)
nickjillings@1457 53 \item SMC15: PDF and \LaTeX source of corresponding SMC2015 publication \cite{waet}
nickjillings@1457 54 \item WAC2016: PDF and \LaTeX source of corresponding WAC2016 publication\\
nickjillings@1457 55 \end{itemize}
nickjillings@1457 56 \textbf{Example project (./example\_eval/)}
nickjillings@1457 57 \begin{itemize}
nickjillings@1457 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).\\
nickjillings@1457 59 \end{itemize}
nickjillings@1457 60 \textbf{Output files (./saves/)}
nickjillings@1457 61 \begin{itemize}
nickjillings@1457 62 \item The output XML files of tests will be stored here by default by the \texttt{pythonServer.py} script.\\
nickjillings@1457 63 \end{itemize}
nickjillings@1457 64 \textbf{Auxiliary scripts (./scripts/)}
nickjillings@1457 65 \begin{itemize}
nickjillings@1457 66 \item Helpful Python scripts for extraction and visualisation of data.\\
nickjillings@1457 67 \end{itemize}
nickjillings@1457 68 \textbf{Test creation tool (./test\_create/)}
nickjillings@1457 69 \begin{itemize}
nickjillings@1457 70 \item Webpage for easily setting up your own test without having to delve into the XML.\\
nickjillings@1457 71 \end{itemize}
nickjillings@1453 72
nickjillings@1453 73 \subsection{Browser}
nickjillings@1457 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).
nickjillings@1453 75
nickjillings@1453 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.
nickjillings@1453 77
nickjillings@1453 78 \subsection{Python 2.7}
nickjillings@1453 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.
nickjillings@1453 80
nickjillings@1453 81 On Mac OS X, Python comes preinstalled.
nickjillings@1453 82
nickjillings@1457 83 \clearpage
nickjillings@1453 84
nickjillings@1457 85 \section{Listening test: Local}
nickjillings@1453 86 \subsection{Start local webserver}
nickjillings@1453 87 If the test is hosted locally, you will need to run the local webserver provided with this tool.
nickjillings@1453 88
nickjillings@1457 89 \subsubsection{Mac OS X}
nickjillings@1457 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
nickjillings@1457 91
nickjillings@1457 92 \texttt{cd /Users/John/Documents/test/}
nickjillings@1457 93
nickjillings@1457 94 Then hit enter and run the Python script by typing
nickjillings@1457 95
nickjillings@1457 96 \texttt{python pythonServer.py}
nickjillings@1457 97
nickjillings@1457 98 and hit enter again. See also Figure \ref{fig:terminal}.
nickjillings@1457 99
nickjillings@1457 100 \begin{figure}[htbp]
nickjillings@1457 101 \begin{center}
nickjillings@1457 102 \includegraphics[width=.75\textwidth]{pythonServer.png}
nickjillings@1457 103 \caption{Mac OS X: The Terminal window after going to the right folder (\texttt{cd [folder\_path]}) and running \texttt{pythonServer.py}.}
nickjillings@1457 104 \label{fig:terminal}
nickjillings@1457 105 \end{center}
nickjillings@1457 106 \end{figure}
nickjillings@1457 107
nickjillings@1457 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
nickjillings@1457 109
nickjillings@1457 110 You can leave this running throughout the different experiments (i.e. leave the Terminal open).
nickjillings@1457 111
nickjillings@1453 112 \subsubsection{Windows}
nickjillings@1453 113
nickjillings@1457 114 Simply double click the Python script \texttt{pythonServer.py} in the folder you downloaded.
nickjillings@1457 115
nickjillings@1457 116 You may see a warning like the one in Figure \ref{fig:warning}. Click `Allow access'.
nickjillings@1457 117
nickjillings@1457 118 \begin{figure}[htbp]
nickjillings@1457 119 \begin{center}
nickjillings@1457 120 \includegraphics[width=.6\textwidth]{warning.png}
nickjillings@1457 121 \caption{Windows: Potential warning message when executing \texttt{pythonServer.py}.}
nickjillings@1457 122 \label{fig:warning}
nickjillings@1457 123 \end{center}
nickjillings@1457 124 \end{figure}
nickjillings@1457 125
nickjillings@1457 126 The process should now start, in the Command prompt that opens - see Figure \ref{fig:python}.
nickjillings@1457 127
nickjillings@1457 128 \begin{figure}[htbp]
nickjillings@1457 129 \begin{center}
nickjillings@1457 130 \includegraphics[width=.75\textwidth]{python.png}
nickjillings@1457 131 \caption{Windows: The Command Prompt after running \texttt{pythonServer.py} and opening the corresponding website.}
nickjillings@1457 132 \label{fig:python}
nickjillings@1457 133 \end{center}
nickjillings@1457 134 \end{figure}
nickjillings@1457 135
nickjillings@1457 136 You can leave this running throughout the different experiments (i.e. leave the Command Prompt open).
nickjillings@1453 137
nickjillings@1453 138
nickjillings@1457 139 \clearpage
nickjillings@1457 140 \subsection{Sample rate}
nickjillings@1457 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.
nickjillings@1457 142
nickjillings@1457 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.
nickjillings@1453 144
nickjillings@1453 145 \subsubsection{Mac OS X}
nickjillings@1457 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.
nickjillings@1457 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.
nickjillings@1453 148
nickjillings@1457 149 \subsubsection{Windows}
nickjillings@1457 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
nickjillings@1457 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.
nickjillings@1457 152
nickjillings@1453 153
nickjillings@1453 154
nickjillings@1453 155 \subsection{Setting up a participant}
nickjillings@1453 156
nickjillings@1453 157 \subsubsection{Instructions} % EXAMPLE?
nickjillings@1453 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.
nickjillings@1453 159
nickjillings@1453 160 \begin{itemize}
nickjillings@1453 161 \item You will be asked for your name (``John'') and location (room identifier).
nickjillings@1453 162 \item An interface will appear, where you are asked to
nickjillings@1453 163 \begin{itemize}
nickjillings@1453 164 \item click green markers to play the different mixes;
nickjillings@1453 165 \item drag the markers on a scale to reflect your preference for the mixes;
nickjillings@1453 166 \item comment on these mixes, using text boxes with corresponding numbers (in your \textbf{native language});
nickjillings@1453 167 \item optionally comment on all mixes together, or on the song, in `General comments'.
nickjillings@1453 168 \end{itemize}
nickjillings@1453 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.
nickjillings@1453 170 \item The markers appear at random positions at first (which means some markers may hide behind others).
nickjillings@1453 171 \item The interface can take a few seconds to start playback, but switching between mixes should be instantaneous.
nickjillings@1453 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.
nickjillings@1453 173 \item When the test is finished (after all songs have been evaluated), just call the experimenter, do NOT close the window.
nickjillings@1453 174 \item After the test, please fill out our survey about your background, experience and feedback on the test.
nickjillings@1453 175 \item By participating, you consent to us using all collected data for research. Unless asked explicitly, all data will be anonymised when shared.
nickjillings@1453 176 \end{itemize}
nickjillings@1453 177
nickjillings@1453 178
nickjillings@1453 179 \subsubsection{The test}
nickjillings@1453 180 To start the test, open the browser and type
nickjillings@1453 181
nickjillings@1453 182 \texttt{localhost:8000}
nickjillings@1453 183
nickjillings@1453 184 and hit enter. The test should start (see Figure \ref{fig:test}).
nickjillings@1453 185
nickjillings@1453 186 \begin{figure}[htb]
nickjillings@1453 187 \begin{center}
nickjillings@1453 188 \includegraphics[width=.8\textwidth]{test.png}
nickjillings@1453 189 \caption{The start of the test in Google Chrome on Windows 7.}
nickjillings@1453 190 \label{fig:test}
nickjillings@1453 191 \end{center}
nickjillings@1453 192 \end{figure}
nickjillings@1453 193
nickjillings@1457 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}.
nickjillings@1453 195
nickjillings@1453 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}.
nickjillings@1453 197
nickjillings@1453 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.
nickjillings@1453 199
nickjillings@1453 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.
nickjillings@1453 201
nickjillings@1453 202
nickjillings@1453 203 \subsubsection{Survey}
nickjillings@1453 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.
nickjillings@1453 205
nickjillings@1457 206 \clearpage
nickjillings@1453 207 \subsection{Troubleshooting} \label{sec:troubleshooting}
nickjillings@1453 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.
nickjillings@1453 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
nickjillings@1453 210
nickjillings@1453 211 \texttt{createProjectSave()}
nickjillings@1453 212
nickjillings@1453 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.
nickjillings@1457 214
nickjillings@1453 215 Alternatively, a lot of data can be read from the same console, in which the tool prints a lot of debug information. Specifically:
nickjillings@1457 216 \begin{itemize}
nickjillings@1453 217 \item the randomisation of pages and fragments are logged;
nickjillings@1453 218 \item any time a slider is played, its ID and the time stamp (in seconds since the start of the test) are displayed;
nickjillings@1453 219 \item any time a slider is dragged and dropped, the location where it is dropped including the time stamp are shown;
nickjillings@1453 220 \item any comments and pre- or post-test questions and their answers are logged as well.
nickjillings@1457 221 \end{itemize}
nickjillings@1453 222
nickjillings@1453 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.
nickjillings@1453 224
nickjillings@1453 225 \subsubsection{Opening the JavaScript Console}
nickjillings@1457 226 \begin{itemize}
nickjillings@1457 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).
nickjillings@1457 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.
nickjillings@1457 229 \item In Firefox, go to \textbf{Tools$>$Web Developer$>$Web Console}, or hit Cmd + Alt + K.
nickjillings@1457 230 \end{itemize}
nickjillings@1453 231
nickjillings@1457 232 \clearpage
nickjillings@1457 233 \section{Listening test: remote}
nickjillings@1457 234
nickjillings@1457 235 (TBA)
nickjillings@1457 236
nickjillings@1457 237 \clearpage
nickjillings@1457 238 \bibliographystyle{ieeetr}
nickjillings@1457 239 \bibliography{ListeningTestInstructions}{}
nickjillings@1453 240
nickjillings@1453 241 \end{document}