# HG changeset patch # User Nicholas Jillings # Date 1450372180 0 # Node ID 01c026742e1e699d8672cab83693ed1cce811194 # Parent af6cfa619c2498f7ef5a915fd4fb92cd5e29a964 MUSHRA: Checks enabled. MUSHRA & APE: Warning if check not supported. Core: checkMoved and checkPlayed now in interface and available to all interfaces. diff -r af6cfa619c24 -r 01c026742e1e ape.js --- a/ape.js Thu Dec 17 16:48:08 2015 +0000 +++ b/ape.js Thu Dec 17 17:09:40 2015 +0000 @@ -653,6 +653,9 @@ var checkState = interfaceContext.checkScaleRange(); if (checkState == false) {canContinue = false;} break; + default: + console.log("WARNING - Check option "+checks[i].check+" is not supported on this interface"); + break; } } diff -r af6cfa619c24 -r 01c026742e1e core.js --- a/core.js Thu Dec 17 16:48:08 2015 +0000 +++ b/core.js Thu Dec 17 17:09:40 2015 +0000 @@ -2819,4 +2819,64 @@ alert(str_start); } }; + this.checkAllMoved = function() + { + var str = "You have not moved "; + var failed = []; + for (var i in audioEngineContext.audioObjects) + { + if(audioEngineContext.audioObjects[i].metric.wasMoved == false) + { + failed.push(audioEngineContext.audioObjects[i].id); + } + } + if (failed.length == 0) + { + return true; + } else if (failed.length == 1) + { + str += 'track '+failed[0]; + } else { + str += 'tracks '; + for (var i=0; i