@ableton-extensions/sdk
    Preparing search index...

    Class Song<Version>

    Represents the current Live Set.

    Type Parameters

    • Version extends ApiVersion

    Hierarchy (View Summary)

    Index

    Properties

    handle: Handle
    className: "Song"

    Accessors

    • get gridIsTriplet(): boolean

      Whether the arrangement grid uses triplet subdivisions of the current gridQuantization value.

      Returns boolean

    • get rootNote(): number

      The root note of the scale currently selected in Live, as a MIDI note number from 0 (C) to 11 (B).

      Returns number

    • get scaleIntervals(): number[]

      The intervals of the current scale as semitone offsets from the root note.

      Returns number[]

    • get scaleMode(): boolean

      Whether Live's Scale Mode is enabled.

      Returns boolean

    • get scaleName(): string

      The name of the scale selected in Live, as shown in the Current Scale Name chooser.

      Returns string

    • get tempo(): number

      Returns number

    • set tempo(value: number): void

      Parameters

      • value: number

      Returns void

    • get tracks(): Track<Version>[]

      Regular tracks only — excludes return tracks and the main track.

      Returns Track<Version>[]

    Methods

    • Parameters

      • time: number

        Position in the arrangement in beats.

      Returns Promise<CuePoint<Version>>

    • Parameters

      • index: number

        0-based insert position in the range [0, song.scenes.length]. Pass -1 to append at the end.

      Returns Promise<Scene<Version>>

    • Deletes a cue point from the song. Await the returned promise to ensure the deletion has been fully processed.

      Parameters

      Returns Promise<void>

    • Deletes a scene from the song. Await the returned promise to ensure the deletion has been fully processed.

      Parameters

      Returns Promise<void>

    • Deletes a track from the song. Await the returned promise to ensure the deletion has been fully processed.

      Parameters

      Returns Promise<void>