Mercurial > hg > nodescore
comparison nodescore.js @ 95:cb1862bbcd5a
added functionality for audio score units
author | Rob Canning <rob@foo.net> |
---|---|
date | Fri, 01 Aug 2014 13:29:37 +0100 |
parents | a633d8c04929 |
children | 9641c2572988 |
comparison
equal
deleted
inserted
replaced
94:a633d8c04929 | 95:cb1862bbcd5a |
---|---|
226 | 226 |
227 initPage=function(seq){ | 227 initPage=function(seq){ |
228 // initiate first page here | 228 // initiate first page here |
229 var nextunit=seq.units[seq.transect%numberoftransects][(seq.counter+1)%order]; | 229 var nextunit=seq.units[seq.transect%numberoftransects][(seq.counter+1)%order]; |
230 socket.emit("pageIni", voice, unit, time, seq.mm,seq.counter,nextunit ); | 230 socket.emit("pageIni", voice, unit, time, seq.mm,seq.counter,nextunit ); |
231 socket.broadcast.emit("pageIni", voice, unit, time, seq.mm,seq.counter,nextunit ); | |
232 | |
233 socket.emit("pageFlip", voice, unit, time, seq.mm,seq.counter,nextunit ); | |
234 socket.broadcast.emit("pageFlip", voice, unit, time, seq.mm,seq.counter,nextunit ); | |
231 } | 235 } |
232 | 236 |
233 | 237 |
234 | 238 |
235 | 239 |