# HG changeset patch # User Nicholas Jillings # Date 1428682725 -3600 # Node ID c8eb821710fa7debc046861a92990c8003b9a6ae # Parent 6455bee850904b808963b152d30268719e87c3a5 audioElement id's tracked from input to output for randomisation. diff -r 6455bee85090 -r c8eb821710fa ape.js --- a/ape.js Fri Apr 10 16:21:57 2015 +0100 +++ b/ape.js Fri Apr 10 17:18:45 2015 +0100 @@ -51,8 +51,8 @@ }); // New check if we need to randomise the test order - var randomise = xmlSetup.attributes['randomiseOrder']; - if (randomise != undefine) { + var randomise = xmlSetup[0].attributes['randomiseOrder']; + if (randomise != undefined) { randomise = Boolean(randomise.value); } else { randomise = false; @@ -207,9 +207,23 @@ return; } } - // Find all the audioElements from the audioHolder + + var randomise = textXML.attributes['randomiseOrder']; + if (randomise != undefined) {randomise = randomise.value;} + else {randomise = false;} + var audioElements = $(textXML).find('audioElements'); audioElements.each(function(index,element){ + // Find any blind-repeats + // Not implemented yet, but just incase + currentTrackOrder[index] = element; + }); + if (randomise) { + // TODO: Randomise order + } + + // Find all the audioElements from the audioHolder + $(currentTrackOrder).each(function(index,element){ // Find URL of track // In this jQuery loop, variable 'this' holds the current audioElement. @@ -460,8 +474,7 @@ function testEnded(testId) { - var xmlDoc = interfaceXMLSave(); - testResultsHolders; + pageXMLSave(testId); if (testXMLSetups.length-1 > testId) { // Yes we have another test to perform @@ -495,33 +508,41 @@ var testXML = testXMLSetups[testId]; xmlDoc.id = testXML.id; xmlDoc.repeatCount = testXML.attributes['repeatCount'].value; - + var trackSliderObjects = document.getElementsByClassName('track-slider'); + var commentObjects = document.getElementsByClassName('comment-div'); + var rateMin = 50; + var rateMax = window.innerWidth-50; + for (var i=0; i - - - - - - - - - - - + + + + + + + + + + + What is your mixing experiance Start the Test 3