Class BeatmapEncoder

A beatmap encoder.

Constructors

Properties

FIRST_LAZER_VERSION: 128 = 128

First playable lazer version.

Methods

  • Performs beatmap encoding to the specified path.

    Parameters

    • path: string

      The path for writing the .osu file.

    • Optional beatmap: IBeatmap

      The beatmap for encoding.

    Returns Promise<void>

    Throws

    If beatmap can't be encoded or file can't be written.

  • Performs beatmap encoding to a string.

    Parameters

    • Optional beatmap: IBeatmap

      The beatmap for encoding.

    Returns string

    The string with encoded beatmap data.