changeset 1053:329dfa208333

Log slider movements to console
author Brecht De Man <BrechtDeMan@users.noreply.github.com>
date Wed, 01 Jul 2015 11:35:52 +0100
parents b7fd0296c6ab
children 5bcf1745e044
files ape.js core.js
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
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!
--- a/core.js	Wed Jul 01 11:11:54 2015 +0100
+++ b/core.js	Wed Jul 01 11:35:52 2015 +0100
@@ -406,7 +406,7 @@
 				this.stateResults.push(obj);
 			}
 		} else {
-			conolse.log('FATAL - StateMap not correctly constructed. EMPTY_STATE_MAP');
+			console.log('FATAL - StateMap not correctly constructed. EMPTY_STATE_MAP');
 		}
 	};
 	this.advanceState = function(){
@@ -1688,8 +1688,8 @@
 			root.id = this.specification.id;
 			root.setAttribute('type',this.specification.type);
 			root.textContent = this.textArea.value;
-			console.log("Question :"+this.string.textContent);
-			console.log("Response :"+root.textContent);
+			console.log("Question: "+this.string.textContent);
+			console.log("Response: "+root.textContent);
 			return root;
 		};
 	};