annotate docs/SMC15/smc2015template.tex @ 977:f378fb8286ae

Commit Merge
author Dave Moffat <djmoffat@users.noreply.github.com>
date Thu, 23 Apr 2015 19:36:14 +0100
parents 6817077251c4 68029cca268a
children c65d4bd1c660
rev   line source
BrechtDeMan@697 1 % -----------------------------------------------
BrechtDeMan@697 2 % Template for SMC 2012
BrechtDeMan@697 3 % adapted from the template for SMC 2011, which was adapted from that of SMC 2010
BrechtDeMan@697 4 % -----------------------------------------------
BrechtDeMan@697 5
BrechtDeMan@697 6 \documentclass{article}
BrechtDeMan@697 7 \usepackage{smc2015}
BrechtDeMan@697 8 \usepackage{times}
BrechtDeMan@697 9 \usepackage{ifpdf}
BrechtDeMan@697 10 \usepackage[english]{babel}
BrechtDeMan@697 11 \usepackage{cite}
BrechtDeMan@697 12
BrechtDeMan@686 13 \hyphenation{Java-script}
BrechtDeMan@686 14
BrechtDeMan@697 15 %%%%%%%%%%%%%%%%%%%%%%%% Some useful packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
BrechtDeMan@697 16 %%%%%%%%%%%%%%%%%%%%%%%% See related documentation %%%%%%%%%%%%%%%%%%%%%%%%%%
BrechtDeMan@697 17 %\usepackage{amsmath} % popular packages from Am. Math. Soc. Please use the
BrechtDeMan@697 18 %\usepackage{amssymb} % related math environments (split, subequation, cases,
BrechtDeMan@697 19 %\usepackage{amsfonts}% multline, etc.)
BrechtDeMan@697 20 %\usepackage{bm} % Bold Math package, defines the command \bf{}
BrechtDeMan@697 21 %\usepackage{paralist}% extended list environments
BrechtDeMan@697 22 %%subfig.sty is the modern replacement for subfigure.sty. However, subfig.sty
BrechtDeMan@697 23 %%requires and automatically loads caption.sty which overrides class handling
BrechtDeMan@697 24 %%of captions. To prevent this problem, preload caption.sty with caption=false
BrechtDeMan@697 25 %\usepackage[caption=false]{caption}
BrechtDeMan@697 26 %\usepackage[font=footnotesize]{subfig}
BrechtDeMan@697 27
BrechtDeMan@697 28
BrechtDeMan@697 29 %user defined variables
BrechtDeMan@683 30 \def\papertitle{WEB AUDIO EVALUATION TOOL: A BROWSER-BASED LISTENING TEST ENVIRONMENT} %?
BrechtDeMan@702 31 \def\firstauthor{Nicholas Jillings}
BrechtDeMan@702 32 \def\secondauthor{Brecht De Man}
BrechtDeMan@697 33 \def\thirdauthor{David Moffat}
BrechtDeMan@697 34 \def\fourthauthor{Joshua D. Reiss}
BrechtDeMan@697 35
BrechtDeMan@697 36 % adds the automatic
BrechtDeMan@697 37 % Saves a lot of ouptut space in PDF... after conversion with the distiller
BrechtDeMan@697 38 % Delete if you cannot get PS fonts working on your system.
BrechtDeMan@697 39
BrechtDeMan@697 40 % pdf-tex settings: detect automatically if run by latex or pdflatex
BrechtDeMan@697 41 \newif\ifpdf
BrechtDeMan@697 42 \ifx\pdfoutput\relax
BrechtDeMan@697 43 \else
BrechtDeMan@697 44 \ifcase\pdfoutput
BrechtDeMan@697 45 \pdffalse
BrechtDeMan@697 46 \else
BrechtDeMan@697 47 \pdftrue
BrechtDeMan@697 48 \fi
BrechtDeMan@697 49
BrechtDeMan@697 50 \ifpdf % compiling with pdflatex
BrechtDeMan@697 51 \usepackage[pdftex,
BrechtDeMan@697 52 pdftitle={\papertitle},
BrechtDeMan@697 53 pdfauthor={\firstauthor, \secondauthor, \thirdauthor},
BrechtDeMan@697 54 bookmarksnumbered, % use section numbers with bookmarks
BrechtDeMan@697 55 pdfstartview=XYZ % start with zoom=100% instead of full screen;
BrechtDeMan@697 56 % especially useful if working with a big screen :-)
BrechtDeMan@697 57 ]{hyperref}
BrechtDeMan@697 58 %\pdfcompresslevel=9
BrechtDeMan@697 59
BrechtDeMan@697 60 \usepackage[pdftex]{graphicx}
BrechtDeMan@697 61 % declare the path(s) where your graphic files are and their extensions so
BrechtDeMan@697 62 %you won't have to specify these with every instance of \includegraphics
BrechtDeMan@697 63 \graphicspath{{./figures/}}
BrechtDeMan@697 64 \DeclareGraphicsExtensions{.pdf,.jpeg,.png}
BrechtDeMan@697 65
BrechtDeMan@697 66 \usepackage[figure,table]{hypcap}
BrechtDeMan@697 67
BrechtDeMan@697 68 \else % compiling with latex
BrechtDeMan@697 69 \usepackage[dvips,
BrechtDeMan@697 70 bookmarksnumbered, % use section numbers with bookmarks
BrechtDeMan@697 71 pdfstartview=XYZ % start with zoom=100% instead of full screen
BrechtDeMan@697 72 ]{hyperref} % hyperrefs are active in the pdf file after conversion
BrechtDeMan@697 73
BrechtDeMan@697 74 \usepackage[dvips]{epsfig,graphicx}
BrechtDeMan@697 75 % declare the path(s) where your graphic files are and their extensions so
BrechtDeMan@697 76 %you won't have to specify these with every instance of \includegraphics
BrechtDeMan@697 77 \graphicspath{{./figures/}}
BrechtDeMan@697 78 \DeclareGraphicsExtensions{.eps}
BrechtDeMan@697 79
BrechtDeMan@697 80 \usepackage[figure,table]{hypcap}
BrechtDeMan@697 81 \fi
BrechtDeMan@697 82
BrechtDeMan@697 83 %setup the hyperref package - make the links black without a surrounding frame
BrechtDeMan@697 84 \hypersetup{
BrechtDeMan@697 85 colorlinks,%
BrechtDeMan@697 86 citecolor=black,%
BrechtDeMan@697 87 filecolor=black,%
BrechtDeMan@697 88 linkcolor=black,%
BrechtDeMan@697 89 urlcolor=black
BrechtDeMan@697 90 }
BrechtDeMan@697 91
BrechtDeMan@697 92
BrechtDeMan@697 93 % Title.
BrechtDeMan@697 94 % ------
BrechtDeMan@697 95 \title{\papertitle}
BrechtDeMan@697 96
BrechtDeMan@697 97 % Authors
BrechtDeMan@697 98 % Please note that submissions are NOT anonymous, therefore
BrechtDeMan@697 99 % authors' names have to be VISIBLE in your manuscript.
BrechtDeMan@697 100 %
BrechtDeMan@697 101 % Single address
BrechtDeMan@697 102 % To use with only one author or several with the same address
BrechtDeMan@697 103 % ---------------
BrechtDeMan@697 104 %\oneauthor
BrechtDeMan@697 105 % {\firstauthor} {Affiliation1 \\ %
BrechtDeMan@697 106 % {\tt \href{mailto:author1@smcnetwork.org}{author1@smcnetwork.org}}}
BrechtDeMan@697 107
BrechtDeMan@697 108 %Two addresses
BrechtDeMan@697 109 %--------------
BrechtDeMan@697 110 % \twoauthors
BrechtDeMan@697 111 % {\firstauthor} {Affiliation1 \\ %
BrechtDeMan@697 112 % {\tt \href{mailto:author1@smcnetwork.org}{author1@smcnetwork.org}}}
BrechtDeMan@697 113 % {\secondauthor} {Affiliation2 \\ %
BrechtDeMan@697 114 % {\tt \href{mailto:author2@smcnetwork.org}{author2@smcnetwork.org}}}
BrechtDeMan@697 115
BrechtDeMan@702 116
BrechtDeMan@702 117
BrechtDeMan@702 118 % FIX!!!
BrechtDeMan@697 119 \fourauthors
BrechtDeMan@697 120 {\firstauthor} {%Affiliation1 \\
BrechtDeMan@702 121 {\tt \href{mailto:b.deman@qmul.ac.uk}{n.g.r.jillings@se14.qmul.ac.uk, }}}
BrechtDeMan@697 122 {\secondauthor} {%Affiliation2\\ %
BrechtDeMan@702 123 {\tt \href{mailto:n.g.r.jillings@se14.qmul.ac.uk}{\{b.deman,}}}
BrechtDeMan@697 124 {\thirdauthor} {%Affiliation3\\ %
BrechtDeMan@702 125 {\tt \href{mailto:d.j.moffat@qmul.ac.uk}{d.j.moffat, }}}
BrechtDeMan@697 126 {\fourthauthor} {%Affiliation4\\ %
BrechtDeMan@702 127 {\tt \href{mailto:joshua.reiss@qmul.ac.uk}{joshua.reiss\}@qmul.ac.uk}}}
BrechtDeMan@697 128
BrechtDeMan@697 129 % ***************************************** the document starts here ***************
BrechtDeMan@697 130 \begin{document}
BrechtDeMan@697 131 %
BrechtDeMan@697 132 \capstartfalse
BrechtDeMan@697 133 \maketitle
BrechtDeMan@697 134 \capstarttrue
BrechtDeMan@697 135 %
BrechtDeMan@697 136 \begin{abstract}
BrechtDeMan@683 137 New functionality in HTML5, notably its Web Audio API, allow for increasingly powerful applications in the browser. % is this true?
BrechtDeMan@683 138 Perceptual evaluation tests for audio, where the subject assesses certain qualities of different audio fragments through a graphical user interface and/or text boxes, require playback of audio and rapid switching between different files. % what else?
BrechtDeMan@683 139 The advantage of a web application is easy deployment on any platform, without requiring any other application or library, easy storing of results on a server.
BrechtDeMan@683 140 [...]
BrechtDeMan@683 141 %Place your abstract at the top left column on the first page.
BrechtDeMan@683 142 %Please write about 150-200 words that specifically highlight the purpose of your work,
BrechtDeMan@683 143 %its context, and provide a brief synopsis of your results.
BrechtDeMan@683 144 %Avoid equations in this part.\\
BrechtDeMan@683 145
BrechtDeMan@697 146 \end{abstract}
BrechtDeMan@714 147
BrechtDeMan@714 148 % TOTAL PAPER: Minimum 4 pages, 6 preferred, max. 8 (6 for demos/posters)\\
BrechtDeMan@697 149
BrechtDeMan@697 150 \section{Introduction}\label{sec:introduction}
BrechtDeMan@697 151
nicholas@690 152 %NICK: examples of what kind of audio applications HTML5 has made possible, with references to publications (or website)\\
nicholas@690 153
BrechtDeMan@975 154 Perceptual evaluation of audio plays an important role in a wide range of research including audio effect design \cite{}, sound synthesis \cite{de2013real}, source separation \cite{}, codec design \cite{}, general perception of audio \cite{schoeffler2013impact}, and many others \cite{friberg2011comparison}. \\ % EXPAND
BrechtDeMan@975 155
BrechtDeMan@714 156 The Web Audio API is a high-level JavaScript API designed for real-time processing audio inside the browser through various processing nodes \cite{webaudioapi}. Various web sites have used the Web Audio API for either creative purposes, such as drum machines and score creation tools \cite{webaudiodemo}, %http://webaudio.github.io/demo-list/
nicholas@690 157 others from the list show real-time captured audio processing such as room reverberation tools and a phase vocoder from the system microphone. The BBC Radiophonic Workshop shows effects used on famous TV shows such as Doctor Who, being simulated inside the browser \cite{bbcradiophonics}. %http://webaudio.prototyping.bbc.co.uk/
BrechtDeMan@975 158 Another example is the BBC R\&D automatic compressor which applies a dynamic range compressor on a radio station which dynamically adjusts the compressor settings to match the listener's environment \cite{mason2015compression}.\\ % The paper for this has not been released yet by AES...
BrechtDeMan@714 159
BrechtDeMan@975 160 This work is based in part on the APE audio perceptual evaluation interface for MATLAB \cite{deman2014b}. An important drawback of this toolbox is the need to have MATLAB to create a test and even to run (barring the use of an executable generated by MATLAB), and limited compatibility with both earlier and newer versions of MATLAB, which makes it hard to maintain. On the other hand, a web application generally has the advantage of running in most browsers on most applications, and we present a tool that requires no specialised software or even programming knowledge to set up.
BrechtDeMan@973 161
BrechtDeMan@975 162 BRECHT: We present a browser-based perceptual evaluation tool for audio that ... \\
BrechtDeMan@975 163 what can we do with this: multiple stimulus perceptual evaluation \cite{bech}, commenting, rating, ranking, (no AB) - can also be single \\ % also in abstract
BrechtDeMan@975 164 goal, what are we trying to do? \\
BrechtDeMan@973 165
BrechtDeMan@975 166 DAVE: justify:
djmoffat@974 167 \begin{itemize}
djmoffat@974 168 \item Easy deployment - no propitiatory software required
djmoffat@974 169 \item Entirely scalable
djmoffat@974 170 \item Trial multiple participants simultaneously
djmoffat@974 171 \item Intuitive environment - everyone uses the internet
djmoffat@974 172 \item Can be hosted and run from single location with participants worldwide
djmoffat@974 173 \end{itemize}
djmoffat@974 174
djmoffat@974 175
BrechtDeMan@697 176
BrechtDeMan@697 177
BrechtDeMan@702 178 see \cite{deman2014b}: requirements informed by research on music production (see my work and that of others' in the group), such as randomisation, playback of high quality audio, some degree of flexibility in terms of configuration, ... \\
BrechtDeMan@702 179
BrechtDeMan@702 180
BrechtDeMan@975 181 \section{Interface}\label{sec:interface}
BrechtDeMan@702 182
BrechtDeMan@975 183 At this point, we have implemented the interface of the MATLAB-based APE Perceptual Evaluation for Audio toolbox \cite{deman2014b}, which shows one marker for each simultaneously evaluated audio fragment on one or more horizontal axes (to rate/rank the respective fragments), as well as a comment box for every marker, and any extra text boxes for extra comments. See \ref{fig:interface} for an example of the interface, with eleven fragments and one axis. However, the back end of this test environment allows for many more established and novel interfaces for listening tests, particularly ones where the subject only assesses audio without manipulating it (i.e. method of adjustment, which would require additional features to be implemented).
BrechtDeMan@655 184
BrechtDeMan@973 185 \begin{figure*}[htbp]
BrechtDeMan@973 186 \begin{center}
BrechtDeMan@973 187 \includegraphics[width=0.9\textwidth]{interface.png}
djmoffat@974 188 \caption{Example of interface, with 1 axis and 11 fragments}
BrechtDeMan@973 189 \label{fig:interface}
BrechtDeMan@973 190 \end{center}
BrechtDeMan@973 191 \end{figure*}
BrechtDeMan@975 192 [DAVE to make new picture]
BrechtDeMan@655 193
BrechtDeMan@975 194 [BRECHT to expand]
BrechtDeMan@683 195
n@704 196
BrechtDeMan@975 197
BrechtDeMan@975 198 \section{Architecture}\label{sec:architecture} % or implementation?
BrechtDeMan@975 199
nicholas@971 200 The tool runs entirely inside the browser through the new HTML5 Web Audio API and is supported by most major web browsers (with the exception of Internet Explorer). The API allows for constructing audio processing elements and connecting them together to produce a high quality, real time signal process to manipulate audio streams. The API supports multi-channel processing and has an accurate playback timer for precise scheduled playback control. The API is controlled through the browser JavaScript engine and is therefore highly configurable. Processing is all performed in a separate, low latency thread to the main JavaScript thread, meaning there is no blocking due to real time processing.
n@704 201
n@704 202 The web tool itself is split into several files to operate:
n@704 203 \begin{itemize}
nicholas@971 204 \item \texttt{index.html}: The main index file to load the scripts, this is the file the browser must request to load.
nicholas@971 205 \item \texttt{core.js}: Contains functions and objects to define the audio objects, audio playback engine and loading media files
BrechtDeMan@683 206 \item \texttt{ape.js}: Parses setup files to create the interface as instructed, following the same style chain as the MATLAB APE Tool \cite{deman2014b}.
n@704 207 \end{itemize}
n@704 208
nicholas@690 209 The HTML file loads the \texttt{core.js} file along with a few other ancillary files (such as the jQuery JavaScript extensions)% should we cite jQuery.... https://jquery.com/
nicholas@971 210 , at which point the browser JavaScript begins to execute the on-page instructions, which gives the URL of the test setup XML document (outlined in Section \ref{sec:setupresultsformats}). \texttt{core.js} parses this document and executes the function in \texttt{ape.js} to build the web page with the given audio files. The reason for separating these two files is to allow for further interface designs (such as MUSHRA \cite{mushra} or A-B tests \cite{bech}) to be used, which would still require the same underlying core functions outlined in \texttt{core.js}, see also Section \ref{sec:interface}.
n@704 211
nicholas@971 212 The \texttt{ape.js} file has several main functions but the most important are \textit{loadInterface(xmlDoc)}, \textit{loadTest(id)}, \textit{pageXMLSave(testId)} and \textit{interfaceXMLSave()}. \textit{loadInterface(xmlDoc)} is called to decode the supplied project document in respect for the interface specified and define any global structures (such as the slider interface). It also identifies the number of pages in the test and randomises the order, if specified to do so. This is the only madatory function in any of the interface files as this is called by \texttt{core.js} when the document is ready. The design style is such that \texttt{core.js} cannot 'see' any interface specific functions and therefore cannot assume any are available. Therefore the \textit{loadInterface(xmlDoc)} is very important to setup the entire test environment. It can be assumed that the interface files can `see' the \texttt{core.js} file and can therefore not only interact with it, but also modify it.
nicholas@971 213 Each test page is loaded using \textit{loadTest(id)} which performs two major tasks: to populate the interface with the slider elements and comment boxes; and secondly to instruct the \textit{audioEngine} to load the audio fragments and construct the backend audio graph. The markers on the slider at the top of the page are positioned randomly, to minimise the bias that may be introduced when the initial positions are near the beginning, end or middle of the slider. While another approach is to place the markers outside of the slider bar at first and have the subject drag them in, the authors believe this doesn't encourage careful consideration and comparison of the different fragments as the implicit goal of the test becomes to audition and drag each fragment in just once, rather than to compare all fragments rigorously.
nicholas@971 214 They consist of a \textit{bufferSourceNode} (a node which holds a buffer of audio samples for playback) and a \textit{gainNode}. There are various functions applied depending on metric collection which record the interaction with the audio element. These nodes are then connected to the \textit{audioEngine} (itself a custom web audio node) containing a \textit{gainNode} (where the various \textit{audioObject} connect to) for summation before passing the output to the \textit{destinationNode}, a permanent fixed node of the Web Audio API created as the master output where the browser then passes the audio information to the system sound device. % Does this now make sense?
nicholas@971 215 % audio object/audioObject/Audio Object: -- should always be audioObject if talking about the JavaScript object, otherwise should say audio element or audio fragment.
nicholas@971 216 When an \textit{audioObject} is created, it is given the URL of the audio sample to load. This is downloaded into the browser asynchronously using the \textit{XMLHttpRequest} object. This downloads any file into the JavaScript environment for further processing which is particularly useful for the Web Audio API because it supports downloading of files in their binary form for decoding. Once downloaded the file is decoded using the Web Audio API offline decoder. This uses the browser available decoding schemes to decode the audio files into raw float32 arrays, which are in turn passed to the relevant \textit{audioObject} for playback.
nicholas@971 217
nicholas@971 218 Once each page of the test is completed, identified by pressing the Submit button, the \textit{pageXMLSave(testId)} is called to store all of the collected data until all pages of the test are completed. After the final test and any post-test questions are completed, the \textit{interfaceXMLSave()} function is called. This function generates the final XML file for submission as outlined in Section \ref{sec:setupresultsformats}.
nicholas@971 219
nicholas@971 220 Browsers support various audio file formats and are not consistent in any format. Currently the Web Audio API is best supported in Chrome, Firefox, Opera and Safari. All of these support the use of the uncompressed WAV format. Although not a compact, web friendly format, most transport systems are of a high enough bandwidth this should not be a problem. Ogg Vorbis is another well supported format across the 4 supported major desktop browsers, as well as MP3 (although Firefox may not support all MP3 types) \cite{mozdevSupportedMedia}. %https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats
nicholas@971 221 One issue of the Web Audio API is that the sample rate is assigned by the system sound device, rather than requested and does not have the ability to request a different one. % Does this make sense? The problem is across all audio files.
nicholas@971 222 Therefore, the default operation when an audio file is loaded with a different sample rate to that of the system is to convert the sample rate. To provide a check for this, the desired sample rate can be supplied with the setup XML and checked against. If the sample rates do not match, a browser alert window is shown asking for the sample rate to be correctly adjusted.
nicholas@971 223 \item \textbf{Repeat test}: Number of times test should be repeated (none by default), to allow familiarisation with the content and experiment, and to investigate consistency of user and variability due to familiarity. In the setup, each 'page' can be given a repeat count. These are all gathered before shuffling the order so repeated tests are not back-to-back if possible.
djmoffat@977 224 % explanation on how this is implemented? -- Is this better?, Nick