rror: function(xhr, textStatus, error) {
                if (xhr.responseJSON && typeof xhr.responseJSON.error === "string") {
                    error = xhr.responseJSON.error;
                }
                info("Sorry, can't find info for that track: " + error)
            }
        });
    }

    var timbreWeight = 1, pitchWeight = 10,
        loudStartWeight = 1, loudMaxWeight = 1,
        durationWeight = 100, confidenceWeight = 1;

    function get_seg_distances(seg1, seg2) {
        var timbre =