diff ape.js @ 2059:c5b5a5ee2020

Log slider movements to console
author Brecht De Man <b.deman@qmul.ac.uk>
date Wed, 01 Jul 2015 11:35:52 +0100
parents 003e98fdbf51
children 6bd41ef8b1e0
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!