
    }

    function getQuantumSegment(q) {
        return q.oseg;
    }

    function isSegment(q) {
        return 'timbre' in q;
    }

    function getBranchColor(q) {
        if (q.neighbors.length == 0) {
            return to_rgb(0, 0, 0);
        } else {
            var red = q.neighbors.length / jukeboxData.maxBranches;
            var color = to_rgb(red, 0, (1. - red));
            return color;
        }
    }

    function createNewTile(which, q, height, width) {
        var tile = Object.creat