// Add bars and beats to a live queue.
function addBar() {
var index = $("#indexBox").val();
player.queue(track.analysis.bars[index])
}
function addBeat() {
var index = $("#indexBox").val();
player.queue(track.analysis.beats[index])
}