ssNearestNeighbors(type, threshold);
        return count;
    }

    function resetTuning() {
        undeleteAllEdges();

        jukeboxData.addLastEdge = true;
        jukeboxData.justBackwards = false;
        jukeboxData.justLongBranches = false;
        jukeboxData.removeSequentialBranches = false;
        jukeboxData.currentThreshold = jukeboxData.computedThreshold;
        jukeboxData.minRandomBranchChance = defaultMinRandomBranchChance;
        jukeboxData.maxRandomBranchChance = defaultMaxRandomB