function sendNextBeat(socket){
  var nextBeat = startTime + beatCounts*rate + rate;
  socket.emit('nextBeatSent', {
    nextBeat: nextBeat,
    tempo: tempo
  });
}
// Calculate and send the next coming beat for client to run
Calculate and send the next coming beat for client to run
Calculate and send the next coming beat for client to run
function sendNextBeat(socket){
  var nextBeat = startTime + beatCounts*rate + rate;
  socket.emit('nextBeatSent', {
    nextBeat: nextBeat,
    tempo: tempo
  });
}
function sendNextBeat ( socket ) { var nextBeat = startTime + beatCounts * rate + rate ; socket . emit ( 'nextBeatSent' , { nextBeat : nextBeat , tempo : tempo } ) ; }
Calculate and send the next coming beat for client to run
Calculate and send the next coming beat for client to run