Mercurial > hg > webaudioevaluationtool
diff ape.js @ 254:d61d8a6bf1a3
Log slider movements to console
author | Brecht De Man <b.deman@qmul.ac.uk> |
---|---|
date | Wed, 01 Jul 2015 11:35:52 +0100 |
parents | 3bda6ed7cc6a |
children | 2e19ac736876 |
line wrap: on
line diff
--- a/ape.js Wed Jul 01 11:11:54 2015 +0100 +++ b/ape.js Wed Jul 01 11:35:52 2015 +0100 @@ -33,7 +33,6 @@ audioEngineContext.metric.sliderMoved = function() { - var id = this.data; this.data = -1; var position = convSliderPosToRate(id); @@ -495,6 +494,7 @@ var time = audioEngineContext.timer.getTestTime(); var id = Number(ev.srcElement.getAttribute('trackindex')); audioEngineContext.audioObjects[id].metric.moved(time,convSliderPosToRate(ev.srcElement)); + console.log('slider '+id+' moved to '+convSliderPosToRate(ev.srcElement)+' ('+time+')'); } function buttonSubmitClick() // TODO: Only when all songs have been played!