remix.js: one.html

// Extract the first beat of every bar.
var meter = parseInt(track.analysis.track.time_signature);
for (var i=0; i < track.analysis.beats.length; i++) {
    if (i % meter == 0) {
        remixed.push(track.analysis.beats[i])
    }
}

Original Track


Remixed Track