annotate docs/ProjectSpecificationDocument.tex @ 481:d39c99d83891 Dev_main

Minor change to loudness calculation.
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Fri, 15 Jan 2016 11:04:23 +0000
parents 38f2df7badda
children
rev   line source
nicholas@9 1 \documentclass{article}
nicholas@9 2
nicholas@9 3 \usepackage[margin=2cm]{geometry}
nicholas@11 4 \usepackage{listings}
nicholas@9 5
nicholas@9 6 \begin{document}
nicholas@9 7
nicholas@9 8 \large APE Browser Tool - Project Specification Document
nicholas@9 9
nicholas@9 10 \section{Document}
nicholas@9 11
nicholas@9 12 An XML file containing all project information to load and execute the project on the client. Certain interfaces are optional, however others are mandatory. This guide should reflect the changes in the XML project and keep track of the versions. Hopwfully this can remain simple!
nicholas@9 13
nicholas@9 14 \section{Root}
nicholas@9 15
nicholas@9 16 The XML root must be \texttt{<BrowserEvalProjectDocument>}. This should be sufficiently identifiable in both itself and in the JavaScript decoding as it will create an object called the root name.
nicholas@9 17
nicholas@9 18 There must also be a \texttt{<version>} tag which has the attribute \texttt{id} containing a numerical representation of the version. Currently everything in this document can be assumed to be version 1. If future updates or corrections are made post delivery this should give the flexibility to ensure past projects still work.
nicholas@9 19
nicholas@9 20 The root will also contain the following tags: setup and tracks.
nicholas@9 21
nicholas@9 22 \section{Setup tag}
nicholas@9 23
nicholas@9 24 The setup tag specifies certain global test settings including: the interface type to use, the project return location and any other setup instructions.
n@53 25 Any general pre/post test questions must be specified in the relevant children tag. Any enabled metrics must also be specified in the metric child node.
nicholas@9 26
nicholas@9 27 \subsection{Attributes}
nicholas@9 28 \begin{itemize}
n@13 29 \item \texttt{interface} - Mandatory, String. Defaults to APE, otherwise use to load any of the available interfaces. Currently only valid string is APE.
n@13 30 \item \texttt{projectReturn} - Mandatory, String. Specify the URL to return the test results. If null client will generate XML locally and prompt user to return the file.
nicholas@279 31 \item \texttt{randomiseOrder} - Optional, default to false. Specify if the order of the test pages are to be randomised.
nicholas@279 32 \item \texttt{collectMetrics} - Deprecated. Optional, Boolean. Default to false. Determine if the test metrics should be collected. These include how long each test session took etc. The full metrics list can be modified in the 'metrics' tag.
nicholas@9 33 \end{itemize}
nicholas@9 34
nicholas@9 35 \subsection{Elements}
nicholas@9 36 None
nicholas@9 37
nicholas@279 38 \section{Metric tag}
nicholas@279 39 A 'setup' node child tag, metrics must be declared in the setup tag. This takes a set of children 'metricEnable' to define which metrics to collect and present, for example \texttt{<metricEnable> testTimer </metricEnable>}. The interface may not be able to utilise all of these features. It is up to the interface to determine whether to use the metric or not. For example, 'elementFlagMoved' would not be usable in an AB test as there are no interface value objects.
nicholas@279 40
nicholas@279 41 \subsection{metricEnable tag}
nicholas@279 42 This takes a single attribute to determine which metric to enable for collection. Some of these are a global, per track or per test instance.
nicholas@279 43 \begin{itemize}
nicholas@279 44 \item testTimer - Return the global test timer and test instance timers. Measures the time between the first start and final submit.
nicholas@279 45 \item elementTimer - Return the total time each audioElement in each test was listened too. Measures time between successive clicks on the track changer
nicholas@279 46 \item elementTracker - Return the initial position of each track
nicholas@279 47 \item elementTrackerFull - Return an enumerated pair of time and position. Track the entire movement of each element position. NOTE: Will override the elementTracker option above and throw an error into the browser console.
nicholas@279 48 \item elementFlagListenedTo - Return a boolean per elementck to see if the element was listened to
nicholas@279 49 \item elementFlagMoved - Return a boolean per element to see if the element slider was moved.
nicholas@279 50 \item elementFlagComments - Return a boolean per element to see if the element has comments.
nicholas@279 51 \end{itemize}
nicholas@279 52
nicholas@279 53 \section{Interface tag}
nicholas@279 54 This enables any interface options for each test page. Further interface tags in each audioHolder add further options. This takes option nodes only. Each option node takes a 'name' to determine what feature to enable. The following options are currently employed.
nicholas@279 55
nicholas@279 56 \subsection{Option nodes}
nicholas@279 57
nicholas@279 58 \begin{itemize}
nicholas@279 59 \item \texttt{fragmentPlayed} - Enforce each fragment be partially played before finishing the page
nicholas@279 60 \item \texttt{fragmentFullPlayback} - Enforce each fragment to be fully played from start to end before finishing the page. Not enabled if an audioHolder reports it is to be looped playback.
nicholas@279 61 \item \texttt{fragmentMoved} - Enforce each fragment to be moved at least once from its starting position.
nicholas@279 62 \item \texttt{fragmentComments} - Enforce each fragment comment to have some text entered.
nicholas@279 63 \item \texttt{playhead} - Show the playhead object.
nicholas@279 64 \item \texttt{page-count} - Show the current test page number and the total number
nicholas@279 65 \item \texttt{scalerange} - Must also have min and max values between 0 and 100. Enforce that at least one fragment is below the min value and one fragment is above the max value before continuing.
nicholas@279 66 \end{itemize}
nicholas@279 67
n@13 68 \section{AudioHolder tag}
nicholas@9 69
nicholas@279 70 There should be one audioHolder tag for each test page, inside which each audioElement is specified as children. The audioHolder tag can help to generalise certain objects.
nicholas@9 71
nicholas@9 72 \subsection{Attributes}
nicholas@9 73 \begin{itemize}
n@30 74 \item \texttt{id} - Mandatory, String. Give an ID string or number to identify the test in the result.
n@13 75 \item \texttt{hostURL} - Optional, String. If all tracks are hosted from the same folder on a server, you can put in the lead here. For instance, if loading http://test.com/tracks/track1.wav and http://test.com/tracks/track2.wav, this could equal http://test.com/tracks/ and the url attribute in the track tag can be track1.wav or track2.wav. Equally http://test.com/ and then using tracks/track1.wav and tracks/track2.wav is valid.
n@13 76 \item \texttt{sampleRate} - Optional, Number. If your test requires a specific sample rate, this should be set to the desired sample rate in Hertz. This does not set the browser to the correct sample rate, but forces the browser to check the sample rate matches. If this is undefined, no sample rate matching will occur.
n@30 77 \item \texttt{randomiseOrder} - Optional, Boolean String. Defaults to false. Determine if the track order should be randomised. Must be true or false.
n@30 78 \item \texttt{repeatCount} - Optional, Number. Defaults to 0 (ie: no repeats). The number of times a test should be repeated.
n@57 79 \item \texttt{loop} - Optional, Boolean String. Defaults to false. Enable if audioElements should loop their playback or not.
nicholas@279 80 \item \texttt{elementComments} - Optional, Boolean String. Defaults to false. Enable to populate the test page with Comment Boxes linked to each fragment.
nicholas@9 81 \end{itemize}
nicholas@9 82
nicholas@9 83 \subsection{Elements}
n@30 84 Contain the audioElements tags and the interfaceSetup tag.
nicholas@9 85
n@13 86 \section{audioElements tag}
nicholas@9 87
n@13 88 This must reside as children in the audioHolder tag. There must be one audioElement tag per sound sample to load into the test.
nicholas@9 89
nicholas@9 90 \subsection{Attributes}
nicholas@9 91 \begin{itemize}
n@53 92 \item \texttt{id} - Mandatory, String. Must give a string or number to identify each audio element. This id is used in the output to identify each track once randomised.
n@13 93 \item \texttt{url} - Mandatory, String. Contain the full URL to the track. If the Tracks tag hostURL is set, concatenate this tag with the hostURL attribute to obtain the full URL.
nicholas@279 94 \item \texttt{type} - Optional, String. Can be 'normal', 'anchor', 'reference' or 'outside-reference'. Default is for normal. Only one anchor can be specified per page. Only one reference can be specified per page. Only one outside-reference can be specified per page. If multiple audioelements have the same type in the same page, the browser console will explain the problem and the audioelements will be treated as 'normal' fragments.
nicholas@9 95 \end{itemize}
nicholas@9 96
n@48 97 \section{interface tag}
n@30 98
n@48 99 This is contained within the audioHolder tag and outlines test instance specific requirements. These include the following children tags:
n@48 100 \begin{itemize}
n@53 101 \item 'title' - Contains the test title to be shown at the top of the page. Can only be one title node per interface.
n@53 102 \item 'scale' - Takes the attribute position to be a value between 0 and 100 indicating where on the scale to place the text contained inside. Can be multiple scale tags per interface.
nicholas@279 103 \item 'option' - Can hold any of the option tags available in the setup tag. These will only be enabled for the page instance.
n@48 104 \end{itemize}
n@30 105
n@13 106 \section {CommentQuestion tag}
n@13 107
nicholas@279 108 This allows another question and comment box to be presented on the page. The results of these are passed back in the results XML with both the comment and the question. An id must be set, otherwise the result is undefined. Also the type must be set as follows.
nicholas@279 109 \begin{itemize}
nicholas@279 110 \item 'type="text"' - Default type. Creates a text box on the page. The text is included as the element.
nicholas@279 111 \item 'type="radio"' - Create radio button entry. Multiple equally spaced entried per box. Only one entry can be selected. Each radio button is specified by an option tag. The tag must contain a name attribute, which will be the response if true. Optional text can be included as the element to label the box. Presented question is included in a statement node.
nicholas@279 112 \item 'type="checkbox"' - Create a checkbox entry. Multiple equally space entries per box, multiple can be selected. Each checkbox is specified by an option tag. The tag must contain a name attribute. Optional text can be included as the element to label the checkbox. Presented question is included in a statement node.
nicholas@279 113 \end{itemize}
nicholas@279 114
n@13 115
n@13 116 \section {PreTest tag and PostTest tag}
n@13 117
n@13 118 These are 1st level tags. The PreTest tag allows for the specifying of pre test instructions and questions. These appear as a pop-up style window with next buttons and other automatic GUI. The postTest tag allows for specifying post test instructions, questions and resources. These appear as a pop-up style window after the submit button is pressed.
n@13 119
nicholas@279 120 PreTest and PostTag nodes can be included in the audioHolders (for pre and post for that test page) and in the setup node for pre-test before the first page, and post-test for after the last test.
nicholas@279 121
n@13 122 \subsection{Attributes}
n@13 123 None.
n@13 124
n@13 125 \subsection{Elements}
nicholas@279 126
nicholas@279 127 Takes the following available tags to structure the pre and post test options. The order these are presented in the XML define the order they appear.
n@13 128
n@13 129 \subsubsection{Statement}
n@13 130
n@13 131 The statement tag simply prints the included string verbatim on a 'pop-up' window with a next button.
n@13 132
n@13 133 \subsubsection{Question}
n@13 134
nicholas@279 135 This allows for a question to be asked pre/post the test. The response includes both the question asked and the response. The following attributes are used:
n@30 136 \begin{itemize}
nicholas@279 137 \item \texttt{id} - Mandatory, String. Used to reference to the response.
nicholas@279 138 \item \texttt{mandatory} - Optional, String Boolean. Determine if this question must have some response. Defaults to false.
nicholas@279 139 \item \texttt{boxsize} - Optional, String. Defaults to normal. Allows 'small', 'normal', 'large' or 'huge'. This determines the size of the box entry. All entries are wrappable, so this does not determine the maximum size of the text response, but can be used to encourage (or dicourage) long answers.
n@30 140 \end{itemize}
n@30 141
nicholas@279 142 \subsubsection{Number}
nicholas@279 143
nicholas@279 144 Gives a number box entry defined with the following attributes:
d@28 145 \begin{itemize}
nicholas@279 146 \item \texttt{id} - Mandatory, String. Used to reference to the response.
nicholas@279 147 \item \texttt{mandatory} - Optional, String Boolean. Determine if this question must have some response. Defaults to false.
nicholas@279 148 \item \texttt{min, max} - Optional, Number. Defaults to undefined. Used to bound the number response. If a number entered is below this, the pre/post sequence will not continued.
d@28 149 \end{itemize}
d@28 150
nicholas@279 151 \subsubsection{Radio}
d@28 152
nicholas@279 153 Create a set of radio boxes. Only one element can be returned as true. The radio node must have an id to reference for the output. The radio node also must have a statment node which will contain the text to show on the popup. Radio buttons are created using option nodes. Each node must have a name attribute to indentify which radio was selected in the response. The option node can also contain any text to link to the node.
d@28 154
nicholas@279 155 \subsubsection{Checkbox}
nicholas@279 156
nicholas@279 157 Create a set of checkbox boxes. Multiple elements can be returned as true. The checkbox node must have an id to reference for the output. The checkbox node also must have a statment node which will contain the text to show on the popup. Checkbox buttons are created using option nodes. Each node must have a name attribute to indentify which radio was selected in the response. The option node can also contain any text to link to the node.
d@28 158
nicholas@9 159 \section{Example}
nicholas@9 160
nicholas@11 161 Here is an example XML structure
nicholas@9 162
nicholas@11 163 \begin{lstlisting}
nicholas@11 164 <?xml version="1.0" encoding="utf-8"?>
nicholas@11 165 <BrowserEvalProjectDocument>
n@48 166 <setup interface="APE" projectReturn="null" randomiseOrder='true' collectMetrics='true'>
n@48 167 <PreTest>
n@48 168 <statement>Please listen to all mixes</statement>
n@48 169 <question id="location" mandatory="true">Please enter your listening location</question>
n@48 170 </PreTest>
n@48 171 <PostTest>
n@48 172 <statement>Thank you for taking this listening test.</statement>
n@48 173 <question id="SessionID">Please enter your name.</question>
n@48 174 </PostTest>
n@48 175 <Metric>
n@48 176 <metricEnable>testTimer</metricEnable>
n@48 177 <metricEnable>elementTimer</metricEnable>
n@48 178 <metricEnable>elementTracker</metricEnable>
n@48 179 <metricEnable>elementFlagListenedTo</metricEnable>
n@48 180 <metricEnable>elementFlagMoved</metricEnable>
n@48 181 </Metric>
n@48 182 </setup>
n@48 183 <audioHolder id='0' hostURL="example_eval/" sampleRate="44100" randomiseOrder='true' repeatCount='1'>
n@48 184 <interface>
n@48 185 <title>Example Test Question</title>
n@48 186 <scale position="0">Min</scale>
n@48 187 <scale position="100">Max</scale>
n@48 188 <scale position="50">Middle</scale>
n@48 189 <scale position="20">20</scale>
n@48 190 </interface>
n@48 191 <audioElements url="0.wav" id="0"/>
n@48 192 <audioElements url="1.wav" id="1"/>
n@48 193 <audioElements url="2.wav" id="2"/>
n@48 194 <audioElements url="3.wav" id="3"/>
n@48 195 <audioElements url="4.wav" id="4"/>
n@48 196 <audioElements url="5.wav" id="5"/>
n@48 197 <audioElements url="6.wav" id="6"/>
n@48 198 <audioElements url="7.wav" id="7"/>
n@48 199 <audioElements url="8.wav" id="8"/>
n@48 200 <audioElements url="9.wav" id="9"/>
n@48 201 <audioElements url="10.wav" id="10"/>
n@48 202 <CommentQuestion id='mixingExperiance'>What is your mixing experiance</CommentQuestion>
n@48 203 <PreTest>
n@48 204 <statement>Start the Test 3</statement>
n@48 205 </PreTest>
n@48 206 <PostTest>
n@48 207 <statement>Please take a break before the next test</statement>
n@48 208 <question id="testComment">How did you find the test</question>
n@48 209 </PostTest>
n@48 210 </audioHolder>
nicholas@9 211 </BrowserEvalProjectDocument>
nicholas@11 212 \end{lstlisting}
nicholas@11 213
nicholas@9 214
nicholas@9 215
nicholas@9 216 \end{document}