comparison www/m/js/controlseq.js @ 8:83dfd5f7186a

transport control mods
author tzara <rc-web@kiben.net>
date Thu, 05 Jul 2012 17:38:59 +0100
parents 9070b2a7ca65
children 0e5543ccb8fb
comparison
equal deleted inserted replaced
7:40253bcfce03 8:83dfd5f7186a
5 ////////////////////////////////////////////// 5 //////////////////////////////////////////////
6 // Sequencer Controls 6 // Sequencer Controls
7 7
8 function startSeq() { socket.emit("startSeq") } 8 function startSeq() { socket.emit("startSeq") }
9 function stopSeq() { socket.emit("stopSeq") } 9 function stopSeq() { socket.emit("stopSeq") }
10 function resetSeq() { socket.emit("resetSeq") }
10 11
11 ////////////////////////////////////////////// 12 //////////////////////////////////////////////
12 // Metronome Controls 13 // Metronome Controls
13 14
14 //socket.on("metroPulse", metronomeTick); 15 //socket.on("metroPulse", metronomeTick);
50 var n=6; var x=seq-1; var off=((x%n)+n)%n // thanks claudiusmaximus 51 var n=6; var x=seq-1; var off=((x%n)+n)%n // thanks claudiusmaximus
51 seqnow = "#"+group+"magicsquare"+seq 52 seqnow = "#"+group+"magicsquare"+seq
52 turnmeoff = "#"+group+"magicsquare"+off 53 turnmeoff = "#"+group+"magicsquare"+off
53 $(seqnow).css('background-color', 'white'); 54 $(seqnow).css('background-color', 'white');
54 $(turnmeoff).css('background-color', 'blue') 55 $(turnmeoff).css('background-color', 'blue')
55 //console.log("#"+group+"magicsquare"+seq +" time: " +time + " %:" + off) 56 console.log("#"+group+"magicsquare"+seq +" time: " +time + " %:" + off)
56 } 57 }
57 ////////////////////////////////////////////// 58 //////////////////////////////////////////////
58 // CLient Popup window code 59 // CLient Popup window code
59 60
60 function newPopup(url) { 61 function newPopup(url) {