     // if true, allow branching
        maxBranches: 4,        // max branches allowed per beat
        maxBranchThreshold: 80, // max allowed distance threshold

        computedThreshold: 0,   // computed best threshold
        currentThreshold: 0,    // current in-use max threshold
        addLastEdge: true,      // if true, optimize by adding a good last edge
        justBackwards: false,   // if true, only add backward branches
        justLongBranches: false,// if true, only add long branches
       