annotate docs/Instructions/Instructions.tex @ 765:e66434e0f573

Updated demo project, with some added explanations, and no enforced sampling rate. Shows bugs though, at least in this branch.
author Brecht De Man <BrechtDeMan@users.noreply.github.com>
date Tue, 08 Dec 2015 12:18:06 +0100
parents
children 2bbf813c0e61
rev   line source
BrechtDeMan@765 1 \documentclass[11pt, oneside]{article} % use "amsart" instead of "article" for AMSLaTeX format
BrechtDeMan@765 2 \usepackage{geometry} % See geometry.pdf to learn the layout options. There are lots.
BrechtDeMan@765 3 \geometry{letterpaper} % ... or a4paper or a5paper or ...
BrechtDeMan@765 4 %\geometry{landscape} % Activate for rotated page geometry
BrechtDeMan@765 5 \usepackage[parfill]{parskip} % Activate to begin paragraphs with an empty line rather than an indent
BrechtDeMan@765 6 \usepackage{graphicx} % Use pdf, png, jpg, or eps§ with pdflatex; use eps in DVI mode
BrechtDeMan@765 7 % TeX will automatically convert eps --> pdf in pdflatex
BrechtDeMan@765 8
BrechtDeMan@765 9 \usepackage{listings} % Source code
BrechtDeMan@765 10 \usepackage{amssymb}
BrechtDeMan@765 11 \usepackage{cite}
BrechtDeMan@765 12 \usepackage{hyperref} % Hyperlinks
BrechtDeMan@765 13 \usepackage[nottoc,numbib]{tocbibind} % 'References' in TOC
BrechtDeMan@765 14
BrechtDeMan@765 15 \graphicspath{{img/}} % Relative path where the images are stored.
BrechtDeMan@765 16
BrechtDeMan@765 17 \title{Instructions for \\ Web Audio Evaluation Tool}
BrechtDeMan@765 18 \author{Nicholas Jillings, Brecht De Man and David Moffat}
BrechtDeMan@765 19 \date{7 December 2015} % Activate to display a given date or no date
BrechtDeMan@765 20
BrechtDeMan@765 21 \begin{document}
BrechtDeMan@765 22 \maketitle
BrechtDeMan@765 23
BrechtDeMan@765 24 These instructions are about use of the Web Audio Evaluation Tool \cite{waet} on Windows and Mac OS X platforms.
BrechtDeMan@765 25 % TO DO: Linux
BrechtDeMan@765 26
BrechtDeMan@765 27 \tableofcontents
BrechtDeMan@765 28
BrechtDeMan@765 29 \clearpage
BrechtDeMan@765 30
BrechtDeMan@765 31 \section{Installation}
BrechtDeMan@765 32 Download the folder (\url{https://code.soundsoftware.ac.uk/hg/webaudioevaluationtool/archive/tip.zip}) and unzip in a location of your choice.
BrechtDeMan@765 33
BrechtDeMan@765 34 \subsection{Contents}
BrechtDeMan@765 35 The folder should contain the following elements: \\
BrechtDeMan@765 36
BrechtDeMan@765 37 \textbf{Main folder:}
BrechtDeMan@765 38 \begin{itemize}
BrechtDeMan@765 39 \item \texttt{analyse.html}: analysis and diagnostics of a set of result XML files
BrechtDeMan@765 40 \item \texttt{ape.css, core.css, graphics.css, mushra.css, structure.css}: style files (edit to change appearance)
BrechtDeMan@765 41 \item \texttt{ape.js}: JavaScript file for APE-style interface \cite{ape}
BrechtDeMan@765 42 \item \texttt{mushra.js}: JavaScript file for MUSHRA-style interface \cite{mushra}
BrechtDeMan@765 43 \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.
BrechtDeMan@765 44 \item \texttt{core.js}: JavaScript file with core functionality
BrechtDeMan@765 45 \item \texttt{index.html}: webpage where interface should appear (includes link to test configuration XML)
BrechtDeMan@765 46 \item \texttt{jquery-2.1.4.js}: jQuery JavaScript Library
BrechtDeMan@765 47 \item \texttt{pythonServer.py}: webserver for running tests locally
BrechtDeMan@765 48 \item \texttt{pythonServer-legacy.py}: webserver with limited functionality (no automatic storing of output XML files)
BrechtDeMan@765 49 \item \texttt{save.php}: PHP script to store result XML files to web server\\
BrechtDeMan@765 50 \end{itemize}
BrechtDeMan@765 51 \textbf{Documentation (./docs/)}
BrechtDeMan@765 52 \begin{itemize}
BrechtDeMan@765 53 \item Instructions: PDF and \LaTeX source of these instructions
BrechtDeMan@765 54 \item Project Specification Document (\LaTeX/PDF)
BrechtDeMan@765 55 \item Results Specification Document (\LaTeX/PDF)
BrechtDeMan@765 56 \item SMC15: PDF and \LaTeX source of corresponding SMC2015 publication \cite{waet}
BrechtDeMan@765 57 \item WAC2016: PDF and \LaTeX source of corresponding WAC2016 publication\\
BrechtDeMan@765 58 \end{itemize}
BrechtDeMan@765 59 \textbf{Example project (./example\_eval/)}
BrechtDeMan@765 60 \begin{itemize}
BrechtDeMan@765 61 \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).\\
BrechtDeMan@765 62 \end{itemize}
BrechtDeMan@765 63 \textbf{Output files (./saves/)}
BrechtDeMan@765 64 \begin{itemize}
BrechtDeMan@765 65 \item The output XML files of tests will be stored here by default by the \texttt{pythonServer.py} script.\\
BrechtDeMan@765 66 \end{itemize}
BrechtDeMan@765 67 \textbf{Auxiliary scripts (./scripts/)}
BrechtDeMan@765 68 \begin{itemize}
BrechtDeMan@765 69 \item Helpful Python scripts for extraction and visualisation of data.\\
BrechtDeMan@765 70 \end{itemize}
BrechtDeMan@765 71 \textbf{Test creation tool (./test\_create/)}
BrechtDeMan@765 72 \begin{itemize}
BrechtDeMan@765 73 \item Webpage for easily setting up your own test without having to delve into the XML.\\
BrechtDeMan@765 74 \end{itemize}
BrechtDeMan@765 75
BrechtDeMan@765 76 \subsection{Browser}
BrechtDeMan@765 77 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).
BrechtDeMan@765 78
BrechtDeMan@765 79 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 (2.7), which is a free programming language - see the next paragraph.
BrechtDeMan@765 80
BrechtDeMan@765 81
BrechtDeMan@765 82 \clearpage
BrechtDeMan@765 83
BrechtDeMan@765 84 \section{Test setup}
BrechtDeMan@765 85
BrechtDeMan@765 86 \subsection{Sample rate}
BrechtDeMan@765 87 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.
BrechtDeMan@765 88
BrechtDeMan@765 89 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.
BrechtDeMan@765 90
BrechtDeMan@765 91 Note that upon changing the sampling rate, the browser will have to be restarted for the change to take effect.
BrechtDeMan@765 92
BrechtDeMan@765 93 \subsubsection{Mac OS X}
BrechtDeMan@765 94 To change the sample rate in Mac OS X, go to \textbf{Applications/Utilities/Audio MIDI Setup} or find this application with Spotlight (see Figure \ref{fig:audiomidisetup}). 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.
BrechtDeMan@765 95 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.
BrechtDeMan@765 96
BrechtDeMan@765 97 Also make sure left and right channel gains are equal, as some applications alter this without changing it back, leading to a predominantly louder left or right channel. See Figure \ref{fig:audiomidisetup} for an example where the channel gains are different.
BrechtDeMan@765 98
BrechtDeMan@765 99 \begin{figure}[tb]
BrechtDeMan@765 100 \centering
BrechtDeMan@765 101 \includegraphics[width=.65\textwidth]{img/audiomidisetup.png}
BrechtDeMan@765 102 \caption{The Audio MIDI Setup window in Mac OS X}
BrechtDeMan@765 103 \label{fig:audiomidisetup}
BrechtDeMan@765 104 \end{figure}
BrechtDeMan@765 105
BrechtDeMan@765 106 \subsubsection{Windows}
BrechtDeMan@765 107 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
BrechtDeMan@765 108 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.
BrechtDeMan@765 109
BrechtDeMan@765 110 \subsection{Local test}
BrechtDeMan@765 111 If the test is hosted locally, you will need to run the local webserver provided with this tool.
BrechtDeMan@765 112
BrechtDeMan@765 113 \subsubsection{Mac OS X}
BrechtDeMan@765 114
BrechtDeMan@765 115 On Mac OS X, Python comes preinstalled.
BrechtDeMan@765 116
BrechtDeMan@765 117 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
BrechtDeMan@765 118
BrechtDeMan@765 119 \texttt{cd /Users/John/Documents/test/}
BrechtDeMan@765 120
BrechtDeMan@765 121 Then hit enter and run the Python script by typing
BrechtDeMan@765 122
BrechtDeMan@765 123 \texttt{python pythonServer.py}
BrechtDeMan@765 124
BrechtDeMan@765 125 and hit enter again. See also Figure \ref{fig:terminal}.
BrechtDeMan@765 126
BrechtDeMan@765 127 \begin{figure}[htbp]
BrechtDeMan@765 128 \begin{center}
BrechtDeMan@765 129 \includegraphics[width=.75\textwidth]{pythonServer.png}
BrechtDeMan@765 130 \caption{Mac OS X: The Terminal window after going to the right folder (\texttt{cd [folder\_path]}) and running \texttt{pythonServer.py}.}
BrechtDeMan@765 131 \label{fig:terminal}
BrechtDeMan@765 132 \end{center}
BrechtDeMan@765 133 \end{figure}
BrechtDeMan@765 134
BrechtDeMan@765 135 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
BrechtDeMan@765 136
BrechtDeMan@765 137 You can leave this running throughout the different experiments (i.e. leave the Terminal open).
BrechtDeMan@765 138
BrechtDeMan@765 139 To start the test, open the browser and type
BrechtDeMan@765 140
BrechtDeMan@765 141 \texttt{localhost:8000}
BrechtDeMan@765 142
BrechtDeMan@765 143 and hit enter. The test should start (see Figure \ref{fig:test}).
BrechtDeMan@765 144
BrechtDeMan@765 145 To quit the server, either close the terminal window or press Ctrl+C on your keyboard to forcibly shut the server.
BrechtDeMan@765 146
BrechtDeMan@765 147 \subsubsection{Windows}
BrechtDeMan@765 148
BrechtDeMan@765 149 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.
BrechtDeMan@765 150
BrechtDeMan@765 151 Simply double click the Python script \texttt{pythonServer.py} in the folder you downloaded.
BrechtDeMan@765 152
BrechtDeMan@765 153 You may see a warning like the one in Figure \ref{fig:warning}. Click `Allow access'.
BrechtDeMan@765 154
BrechtDeMan@765 155 \begin{figure}[htbp]
BrechtDeMan@765 156 \begin{center}
BrechtDeMan@765 157 \includegraphics[width=.6\textwidth]{warning.png}
BrechtDeMan@765 158 \caption{Windows: Potential warning message when executing \texttt{pythonServer.py}.}
BrechtDeMan@765 159 \label{fig:warning}
BrechtDeMan@765 160 \end{center}
BrechtDeMan@765 161 \end{figure}
BrechtDeMan@765 162
BrechtDeMan@765 163 The process should now start, in the Command prompt that opens - see Figure \ref{fig:python}.
BrechtDeMan@765 164
BrechtDeMan@765 165 \begin{figure}[htbp]
BrechtDeMan@765 166 \begin{center}
BrechtDeMan@765 167 \includegraphics[width=.75\textwidth]{python.png}
BrechtDeMan@765 168 \caption{Windows: The Command Prompt after running \texttt{pythonServer.py} and opening the corresponding website.}
BrechtDeMan@765 169 \label{fig:python}
BrechtDeMan@765 170 \end{center}
BrechtDeMan@765 171 \end{figure}
BrechtDeMan@765 172
BrechtDeMan@765 173 You can leave this running throughout the different experiments (i.e. leave the Command Prompt open).
BrechtDeMan@765 174
BrechtDeMan@765 175 To start the test, open the browser and type
BrechtDeMan@765 176
BrechtDeMan@765 177 \texttt{localhost:8000}
BrechtDeMan@765 178
BrechtDeMan@765 179 and hit enter. The test should start (see Figure \ref{fig:test}).
BrechtDeMan@765 180
BrechtDeMan@765 181 \begin{figure}[htb]
BrechtDeMan@765 182 \begin{center}
BrechtDeMan@765 183 \includegraphics[width=.8\textwidth]{test.png}
BrechtDeMan@765 184 \caption{The start of the test in Google Chrome on Windows 7.}
BrechtDeMan@765 185 \label{fig:test}
BrechtDeMan@765 186 \end{center}
BrechtDeMan@765 187 \end{figure}
BrechtDeMan@765 188
BrechtDeMan@765 189 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}.
BrechtDeMan@765 190
BrechtDeMan@765 191 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}.
BrechtDeMan@765 192
BrechtDeMan@765 193 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.
BrechtDeMan@765 194
BrechtDeMan@765 195 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.
BrechtDeMan@765 196
BrechtDeMan@765 197
BrechtDeMan@765 198 \subsection{Remote test}
BrechtDeMan@765 199 Put all files on a web server which supports PHP. This allows the `save.php' script to store the XML result files in the `saves/' folder. If the web server is not able to store the XML file there at the end of the test, it will present the XML file locally to the user, as a `Save file' link.
BrechtDeMan@765 200
BrechtDeMan@765 201 \clearpage
BrechtDeMan@765 202
BrechtDeMan@765 203
BrechtDeMan@765 204 \section{Using the test create tool}
BrechtDeMan@765 205 We provide a test creation tool, available in the directory test\_create. This tool is a self-contained web page, so doubling clicking will launch the page in your system default browser.
BrechtDeMan@765 206
BrechtDeMan@765 207 The test creation tool can help you build a simple test very quickly. By simply selecting your interface and clicking check-boxes you can build a test in minutes.
BrechtDeMan@765 208
BrechtDeMan@765 209 Include audio by dragging and dropping the stimuli you wish to include.
BrechtDeMan@765 210
BrechtDeMan@765 211 The tool examines your XML before exporting to ensure you do not export an invalid XML structure which would crash the test.
BrechtDeMan@765 212
BrechtDeMan@765 213 This guide will help you to construct your own interface on top of the WAET (Web Audio Evaluation Tool) engine. The WAET engine resides in the core.js file, this contains prototype objects to handle most of the test creation, operation and data collection. The interface simply has to link into this at the correct points.
BrechtDeMan@765 214
BrechtDeMan@765 215 \subsection{Nodes to familiarise}
BrechtDeMan@765 216 Core.js handles several very important nodes which you should become familiar with. The first is the Audio Engine, initialised and stored in variable `AudioEngineContext'. This handles the playback of the web audio nodes as well as storing the `AudioObjects'. The `AudioObjects' are custom nodes which hold the audio fragments for playback. These nodes also have a link to two interface objects, the comment box if enabled and the interface providing the ranking. On creation of an `AudioObject' the interface link will be nulled, it is up to the interface to link these correctly.
BrechtDeMan@765 217
BrechtDeMan@765 218 The specification document will be decoded and parsed into an object called `specification'. This will hold all of the specifications various nodes. The test pages and any pre/post test objects are processed by a test state which will proceed through the test when called to by the interface. Any checks (such as playback or movement checks) are to be completed by the interface before instructing the test state to proceed. The test state will call the interface on each page load with the page specification node.
BrechtDeMan@765 219
BrechtDeMan@765 220 \subsection{Modifying \texttt{core.js}}
BrechtDeMan@765 221 Whilst there is very little code actually needed, you do need to instruct core.js to load your interface file when called for from a specification node. There is a function called `loadProjectSpecCallback' which handles the decoding of the specification and setting any external items (such as metric collection). At the very end of this function there is an if statement, add to this list with your interface string to link to the source. There is an example in there for both the APE and MUSHRA tests already included. Note: Any updates to core.js in future work will most likely overwrite your changes to this file, so remember to check your interface is still here after any update that interferes with core.js.
BrechtDeMan@765 222 Any further files can be loaded here as well, such as css styling files. jQuery is already included.
BrechtDeMan@765 223
BrechtDeMan@765 224 \subsection{Building the Interface}
BrechtDeMan@765 225 Your interface file will get loaded automatically when the `interface' attribute of the setup node matches the string in the `loadProjectSpecCallback' function. The following functions must be defined in your interface file.
BrechtDeMan@765 226 \begin{itemize}
BrechtDeMan@765 227 \item \texttt{loadInterface} - Called once when the document is parsed. This creates any necessary bindings, such as to the metric collection classes and any check commands. Here you can also start the structure for your test such as placing in any common nodes (such as the title and empty divs to drop content into later).
BrechtDeMan@765 228 \item \texttt{loadTest(audioHolderObject)} - Called for each page load. The audioHolderObject contains a specification node holding effectively one of the audioHolder nodes.
BrechtDeMan@765 229 \item \texttt{resizeWindow(event)} - Handle for any window resizing. Simply scale your interface accordingly. This function must be here, but can me an empty function call.
BrechtDeMan@765 230 \end{itemize}
BrechtDeMan@765 231
BrechtDeMan@765 232 \subsubsection{loadInterface}
BrechtDeMan@765 233 This function is called by the interface once the document has been parsed since some browsers may parse files asynchronously. The best method is simply to put `loadInterface()' at the top of your interface file, therefore when the JavaScript engine is ready the function is called.
BrechtDeMan@765 234
BrechtDeMan@765 235 By default the HTML file has an element with id ``topLevelBody'' where you can build your interface. Make sure you blank the contents of that object. This function is the perfect time to build any fixed items, such as the page title, session titles, interface buttons (Start, Stop, Submit) and any holding and structure elements for later on.
BrechtDeMan@765 236
BrechtDeMan@765 237 At the end of the function, insert these two function calls: testState.initialise() and testState.advanceState();. This will actually begin the test sequence, including the pre-test options (if any are included in the specification document).
BrechtDeMan@765 238
BrechtDeMan@765 239 \subsubsection{loadTest(audioHolderObject)}
BrechtDeMan@765 240 This function is called on each new test page. It is this functions job to clear out the previous test and set up the new page. Use the function audioEngineContext.newTestPage(); to instruct the audio engine to prepare for a new page. ``audioEngineContext.audioObjects = [];'' will delete any audioObjects, interfaceContext.deleteCommentBoxes(); will delete any comment boxes and interfaceContext.deleteCommentQuestions(); will delete any extra comment boxes specified by commentQuestion nodes.
BrechtDeMan@765 241
BrechtDeMan@765 242 This function will need to instruct the audio engine to build each fragment. Just passing the constructor each element from the audioHolderObject will build the track, audioEngineContext.newTrack(element) (where element is the audioHolderObject audio element). This will return a reference to the constructed audioObject. Decoding of the audio will happen asynchronously.
BrechtDeMan@765 243
BrechtDeMan@765 244 You also need to link audioObject.interfaceDOM with your interface object for that audioObject. The interfaceDOM object has a few default methods. Firstly it must start disabled and become enabled once the audioObject has decoded the audio (function call: enable()). Next it must have a function exportXMLDOM(), this will return the xml node for your interface, however the default is for it to return a value node, with textContent equal to the normalised value. You can perform other functions, but our scripts may not work if something different is specified (as it will breach our results specifications). Finally it must also have a method getValue, which returns the normalised value.
BrechtDeMan@765 245
BrechtDeMan@765 246 It is also the job the interfaceDOM to call any metric collection functions necessary, however some functions may be better placed outside (for example, the APE interface uses drag and drop, therefore the best way was to call the metric functions from the dragEnd function, which is called when the interface object is dropped). Metrics based upon listening are handled by the audioObject. The interfaceDOM object must manage any movement metrics. For a list of valid metrics and their behaviours, look at the project specification document included in the repository/docs location. The same goes for any checks required when pressing the submit button, or any other method to proceed the test state.
BrechtDeMan@765 247
BrechtDeMan@765 248
BrechtDeMan@765 249
BrechtDeMan@765 250 \clearpage
BrechtDeMan@765 251 \section{Troubleshooting} \label{sec:troubleshooting}
BrechtDeMan@765 252 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.
BrechtDeMan@765 253
BrechtDeMan@765 254 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
BrechtDeMan@765 255
BrechtDeMan@765 256 \texttt{createProjectSave()}
BrechtDeMan@765 257
BrechtDeMan@765 258 for a local test or % ???
BrechtDeMan@765 259
BrechtDeMan@765 260 \texttt{createProjectSave(specification.projectReturn)}
BrechtDeMan@765 261
BrechtDeMan@765 262 for a remote test
BrechtDeMan@765 263
BrechtDeMan@765 264 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.
BrechtDeMan@765 265
BrechtDeMan@765 266 Alternatively, a lot of data can be read from the same console, in which the tool prints a lot of debug information. Specifically:
BrechtDeMan@765 267 \begin{itemize}
BrechtDeMan@765 268 \item the randomisation of pages and fragments are logged;
BrechtDeMan@765 269 \item any time a slider is played, its ID and the time stamp (in seconds since the start of the test) are displayed;
BrechtDeMan@765 270 \item any time a slider is dragged and dropped, the location where it is dropped including the time stamp are shown;
BrechtDeMan@765 271 \item any comments and pre- or post-test questions and their answers are logged as well.
BrechtDeMan@765 272 \end{itemize}
BrechtDeMan@765 273
BrechtDeMan@765 274 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.
BrechtDeMan@765 275
BrechtDeMan@765 276 If you encounter any issue which you believe to be caused by any aspect of the , or which the documentation does not mention, please do let us know!
BrechtDeMan@765 277
BrechtDeMan@765 278 \subsection{Opening the JavaScript Console}
BrechtDeMan@765 279 \begin{itemize}
BrechtDeMan@765 280 \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).
BrechtDeMan@765 281 \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. \textbf{Note that as long as the Developer menu is not visible, nothing is logged to the console, i.e. you will only be able to see diagnostic information from when you switched on the Developer tools onwards.}
BrechtDeMan@765 282 \item In Firefox, go to \textbf{Tools$>$Web Developer$>$Web Console}, or hit Cmd + Alt + K.
BrechtDeMan@765 283 \end{itemize}
BrechtDeMan@765 284
BrechtDeMan@765 285 \clearpage
BrechtDeMan@765 286
BrechtDeMan@765 287 \section{Known issues and limitations}
BrechtDeMan@765 288 \label{sec:issues}
BrechtDeMan@765 289
BrechtDeMan@765 290 The following is a non-exhaustive list of problems and limitations you may experience using this tool, due to not being supported yet by us, or by the Web Audio API and/or (some) browsers.
BrechtDeMan@765 291
BrechtDeMan@765 292 \begin{itemize}
BrechtDeMan@765 293 \item Issue \href{https://code.soundsoftware.ac.uk/issues/1463}{\textbf{\#1463}}: \textbf{Firefox} only supports 8 bit and 16 bit WAV files. Pending automatic requantisation (which deteriorates the audio signal's dynamic range to some extent), WAV format stimuli need to adhere to these limitations in order for the test to be compatible with Firefox.
BrechtDeMan@765 294 \item Issues \href{https://code.soundsoftware.ac.uk/issues/1474}{\textbf{\#1474}} and \href{https://code.soundsoftware.ac.uk/issues/1462}{\textbf{\#1462}}: On occasions, audio is not working - or only a continuous `beep' can be heard - notably in \textbf{Safari}. Refreshing, quitting the browser and even enabling Developer tools in Safari's Preferences pane (`Advanced' tab: ``Show `Develop' menu in menu bar'') has helped resolve this. If no (high quality) audio can be heard, make sure your entire playback system's settings are all correct.
BrechtDeMan@765 295 \end{itemize}
BrechtDeMan@765 296
BrechtDeMan@765 297 \clearpage
BrechtDeMan@765 298 \bibliographystyle{ieeetr}
BrechtDeMan@765 299 \bibliography{Instructions}{}
BrechtDeMan@765 300
BrechtDeMan@765 301
BrechtDeMan@765 302 \clearpage
BrechtDeMan@765 303 \appendix
BrechtDeMan@765 304
BrechtDeMan@765 305 \section{Listening test instructions example}
BrechtDeMan@765 306
BrechtDeMan@765 307 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.
BrechtDeMan@765 308
BrechtDeMan@765 309 \begin{itemize}
BrechtDeMan@765 310 \item You will be asked for your name (``John Smith'') and location (room identifier).
BrechtDeMan@765 311 \item An interface will appear, where you are asked to
BrechtDeMan@765 312 \begin{itemize}
BrechtDeMan@765 313 \item click green markers to play the different mixes;
BrechtDeMan@765 314 \item drag the markers on a scale to reflect your preference for the mixes;
BrechtDeMan@765 315 \item comment on these mixes, using text boxes with corresponding numbers (in your \textbf{native language});
BrechtDeMan@765 316 \item optionally comment on all mixes together, or on the song, in `General comments'.
BrechtDeMan@765 317 \end{itemize}
BrechtDeMan@765 318 \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.
BrechtDeMan@765 319 \item The markers appear at random positions at first (which means some markers may hide behind others).
BrechtDeMan@765 320 \item The interface can take a few seconds to start playback, but switching between mixes should be instantaneous.
BrechtDeMan@765 321 \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.
BrechtDeMan@765 322 \item When the test is finished (after all songs have been evaluated), just call the experimenter, do NOT close the window.
BrechtDeMan@765 323 \item After the test, please fill out our survey about your background, experience and feedback on the test.
BrechtDeMan@765 324 \item By participating, you consent to us using all collected data for research. Unless asked explicitly, all data will be anonymised when shared.
BrechtDeMan@765 325 \end{itemize}
BrechtDeMan@765 326
BrechtDeMan@765 327 \clearpage
BrechtDeMan@765 328
BrechtDeMan@765 329 \section*{Contact details}
BrechtDeMan@765 330 \label{sec:contact}
BrechtDeMan@765 331
BrechtDeMan@765 332 \begin{itemize}
BrechtDeMan@765 333 \item Nicholas Jillings: \texttt{nicholas.jillings@mail.bcu.ac.uk}
BrechtDeMan@765 334 \item Brecht De Man: \texttt{b.deman@qmul.ac.uk}
BrechtDeMan@765 335 \item David Moffat: \texttt{d.j.moffat@qmul.ac.uk}
BrechtDeMan@765 336 \end{itemize}
BrechtDeMan@765 337
BrechtDeMan@765 338 \end{document}