Function omitEmptyLayers

  • Internal

    Deletes all layers without notes from a Song.

    Parameters

    • song: Song

      Song to remove empty layers from

    • makeClone: boolean = true

      Whether to create a clone of the song, preventing modification of the original song

    Returns Song

    The song without empty layers (new Song if cloned, original Song otherwise)