RPE Chart Utils
    Preparing search index...

    Function mergeCharts

    • Merge another chart's lines (and their notes/events) into this chart.

      Lines from source are deep-cloned and appended to target.judgeLineList. father references inside the merged lines are offset by the original length of target.judgeLineList so they continue pointing to the correct parents.

      The source chart's metadata and BPM list are not merged.

      Parameters

      • target: RpeJson

        The target chart (modified in place).

      • source: RpeJson

        The source chart to merge from (not modified).

      Returns RpeJson

      The target chart (for chaining).

      // Combine a background chart into the main chart
      mergeCharts(mainChart, bgChart);