diff nodescore.js @ 20:9daa1ac0af33

seperated content to external html (seta) and fixed thumbnail generation and preview context
author tzara <rc-web@kiben.net>
date Tue, 10 Jul 2012 14:16:12 +0100
parents e05eede75e0d
children aaf429469697
line wrap: on
line diff
--- a/nodescore.js	Mon Jul 09 19:18:47 2012 +0100
+++ b/nodescore.js	Tue Jul 10 14:16:12 2012 +0100
@@ -154,12 +154,13 @@
 		if (counter > 0 && counter <= outcount ) {              
 		    socket.broadcast.emit('countinFromServer', seq.voice, counter, "","", "white", "transparent");
 		}
+		
 		// remove displayed number with " " at end of both countin/out
+		
 		if (counter == 0 ) {
 		    socket.broadcast.emit('countinFromServer', seq.voice, " ", "","", "white","transparent");
 		}
 		
-	//	console.log(counter + "========" + totaltime)
 		if (counter > (totaltime)-incount  && counter <= totaltime ) {              
 		    socket.broadcast.emit('countinFromServer', seq.voice, counter-(totaltime-incount), "","", "red","gray");	    
 		}
@@ -169,13 +170,14 @@
 		}
 	    	
 		// push out the pulse to metronome	
+
 		seq.metrobeat = (seq.metrobeat+1)%seq.beatsinbar ;
-     		//console.log(seq.metrobeat);
      		socket.broadcast.emit('metroPulse', tempoms, seq.voice,seq.metrobeat); 
 		socket.emit('metroPulse', tempoms, seq.voice,seq.metrobeat);	
 	    }
 	    
 	    // flip the page
+
 	    if (ztime == 0){
 		socket.emit('counterText', seq.voice, seq.counter, " ");
 		seq.counter = (seq.counter + 1) % seq.durations.length	    		
@@ -201,8 +203,6 @@
 	    stopChr();
 	});
 
-
-
 			  };
     
     step = function (seq) {
@@ -220,8 +220,6 @@
 	else console.log("already started...")
     });
 
-    
-
 
     socket.on('resetSeq', function () { 
 	console.log("rrrrreset")