Mercurial > hg > webaudioevaluationtool
comparison docs/Instructions/Instructions.tex @ 2386:3f8996191f5b
Instructions edit
Wrap-around issues with hyperlinks. Update index.html --> test.html. Added 'returnURL'. Typo in SMC paper.
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Fri, 20 May 2016 20:17:57 +0200 |
parents | 3cf673fb1c96 |
children | b33d6988152c |
comparison
equal
deleted
inserted
replaced
2374:c3b1be14aca5 | 2386:3f8996191f5b |
---|---|
275 | 275 |
276 Ensure that the \path{saves/} directory has public read-write access. On most linux servers this can be achieved using the command \texttt{sudo chmod 777 ./saves}. | 276 Ensure that the \path{saves/} directory has public read-write access. On most linux servers this can be achieved using the command \texttt{sudo chmod 777 ./saves}. |
277 | 277 |
278 Make sure the \texttt{projectReturn} attribute of the \texttt{setup} node is set to the \texttt{save.php} script. | 278 Make sure the \texttt{projectReturn} attribute of the \texttt{setup} node is set to the \texttt{save.php} script. |
279 | 279 |
280 Then, just go to the URL of the corresponding HTML file, e.g. \texttt{http://server.com/path/to/WAET/index.html?url=test/my-test.xml}. If storing on the server doesn't work at submission (e.g. if the \texttt{projectReturn} attribute isn't properly set or PHP does not have the correct permissions), the result XML file will be presented to the subject on the client side, as a `Save file' link. | 280 Then, just go to the URL of the corresponding HTML file, e.g. \url{http://server.com/path/to/WAET/index.html?url=test/my-test.xml}. If storing on the server doesn't work at submission (e.g. if the \texttt{projectReturn} attribute isn't properly set or PHP does not have the correct permissions), the result XML file will be presented to the subject on the client side, as a `Save file' link. |
281 | 281 |
282 \subsection{Load a test / Multiple test documents} | 282 \subsection{Load a test / Multiple test documents} |
283 By default the index page will load an empty page. To automatically load a test document, you need to append the location in the URL. If your URL is normally http://localhost:8000/index.html you would append the following: \texttt{?url=/path/to/your/test.xml}. Replace the fields with your actual path, the path is local to the running directory, so if you have your test in the directory \texttt{example\_eval} called \texttt{project.xml} you would append \texttt{?url=/example\_eval/project.xml}. | 283 By default the \texttt{test.html} page will load an empty page. To automatically load a test document, you need to append the location in the URL. If your URL is normally \url{http://localhost:8000/index.html} you would append the following: \url{?url=/path/to/your/test.xml}. Replace the fields with your actual path, the path is local to the running directory, so if you have your test in the directory \texttt{example\_eval} called \texttt{project.xml} you would append \url{?url=/example\_eval/project.xml}. |
284 | 284 |
285 \clearpage | 285 \clearpage |
286 | 286 |
287 \section{Interfaces} | 287 \section{Interfaces} |
288 | 288 |
402 \subsection{Set up} | 402 \subsection{Set up} |
403 The first child node, \texttt{<setup>} specifies any one time and global parameters. It takes the following attributes: | 403 The first child node, \texttt{<setup>} specifies any one time and global parameters. It takes the following attributes: |
404 \begin{itemize} | 404 \begin{itemize} |
405 \item \texttt{interface}: String, mandatory, specifies the interface to load | 405 \item \texttt{interface}: String, mandatory, specifies the interface to load |
406 \item \texttt{projectReturn}: URL, mandatory, specifies the return point. Can be a 3rd party server or the local server. Set to null to disable automatic saving. Specifying ``save.php'' will trigger the return if either the PHP or python servers are used. On error, it will always default to presenting the save on page. | 406 \item \texttt{projectReturn}: URL, mandatory, specifies the return point. Can be a 3rd party server or the local server. Set to null to disable automatic saving. Specifying ``save.php'' will trigger the return if either the PHP or python servers are used. On error, it will always default to presenting the save on page. |
407 \item \texttt{returnURL}: Upon successful completion and submission of the test, this URL will be opened. This can be a presentation of the results thus far, some type of reward, or a page with links to other tests. | |
407 \item \texttt{randomiseOrder}: Boolean, optional, if true it will randomise the order of the test pages. Default is false. | 408 \item \texttt{randomiseOrder}: Boolean, optional, if true it will randomise the order of the test pages. Default is false. |
408 \item \texttt{poolSize}: non-negative integer, optional. Specifies the number of test pages to actually test with. Combined with randomiseOrder being true will give a random set of test pages per participant from the given pool of \texttt{<page>} nodes. Specifying 0 disables this option, default is 0. | 409 \item \texttt{poolSize}: non-negative integer, optional. Specifies the number of test pages to actually test with. Combined with randomiseOrder being true will give a random set of test pages per participant from the given pool of \texttt{<page>} nodes. Specifying 0 disables this option, default is 0. |
409 \item \texttt{loudness}: non-positive integer, optional. Set the default LUFS target value. See Section~\ref{sec:loudness} for more. | 410 \item \texttt{loudness}: non-positive integer, optional. Set the default LUFS target value. See Section~\ref{sec:loudness} for more. |
410 \item \texttt{sampleRate}: positive integer, optional. If set, the sample rate reported by the Web Audio API must match this number. See Section~\ref{sec:samplerate}. | 411 \item \texttt{sampleRate}: positive integer, optional. If set, the sample rate reported by the Web Audio API must match this number. See Section~\ref{sec:samplerate}. |
411 \item \texttt{calibration}: boolean, optional. If true, a simple hearing test is presented to user to gather system frequency response (DAC, listening device and subject hearing). Default is false. | 412 \item \texttt{calibration}: boolean, optional. If true, a simple hearing test is presented to user to gather system frequency response (DAC, listening device and subject hearing). Default is false. |