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

    Class AudioTrack<Version>

    Represents an audio track.

    Type Parameters

    • Version extends ApiVersion

    Hierarchy (View Summary)

    Index

    Properties

    handle: Handle
    className: "AudioTrack"

    Accessors

    • get arm(): boolean

      Returns boolean

    • set arm(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    • get mute(): boolean

      Returns boolean

    • set mute(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    • get mutedViaSolo(): boolean

      Returns boolean

    • get name(): string

      Returns string

    • set name(value: string): void

      Parameters

      • value: string

      Returns void

    • get solo(): boolean

      Returns boolean

    • set solo(value: boolean): void

      Parameters

      • value: boolean

      Returns void

    Methods

    • Deletes clips within the range. Clips that overlap a boundary are truncated to the range edge rather than fully deleted.

      Parameters

      • startTime: number

        Start of the range in beats.

      • endTime: number

        End of the range in beats.

      Returns Promise<void>

    • Creates an audio clip from a file in the track's arrangement timeline.

      Parameters

      • args: {
            duration?: number;
            filePath: string;
            isWarped?: boolean;
            loopSettings?: ClipLoopSettings;
            startTime: number;
        }
        • Optionalduration?: number

          Length of the clip on the arrangement timeline, in beats. Capped at the sample's natural length for non-looping clips; looping clips repeat to fill the full length. Defaults to the sample's natural length at the current tempo when omitted.

        • filePath: string

          Absolute path to the audio file.

        • OptionalisWarped?: boolean

          Whether warping is enabled. Defaults to the clip's saved .asd settings if present, otherwise Live's "Auto-Warp" preference. Must be provided when loopSettings is provided.

        • OptionalloopSettings?: ClipLoopSettings

          Initial loop settings. Requires isWarped to be defined. If isWarped is false, loopSettings.looping must be false.

        • startTime: number

          Position in the arrangement timeline in beats.

      Returns Promise<AudioClip<Version>>

      const clip = await track.createAudioClip({ filePath: '/samples/kick.wav', startTime: 0 });
      
      const clip = await track.createAudioClip({
      filePath: '/samples/ambient.wav',
      startTime: 16,
      isWarped: false,
      });
      // Clip view: Start=beat 0, End=beat 2, Loop position=beat 0, Loop length=1 beat.
      const clip = await track.createAudioClip({
      filePath: '/samples/loop.wav',
      startTime: 0,
      isWarped: true,
      loopSettings: { looping: true, startMarker: 0, endMarker: 2, loopStart: 0, loopEnd: 1 },
      });
      const clip = await track.createAudioClip({
      filePath: '/samples/loop.wav',
      startTime: 0,
      isWarped: true,
      duration: 8,
      loopSettings: { looping: true, startMarker: 0, endMarker: 2, loopStart: 0, loopEnd: 2 },
      });
    • Deletes a device from this track's device chain. Await the returned promise to ensure the deletion has been fully processed.

      Parameters

      Returns Promise<void>

    • Inserts a built-in Live device with its default preset into the track's device chain. Only devices native to Live are supported — third-party plug-ins cannot be loaded this way.

      Parameters

      • deviceName: string

        The name of the built-in Live device (e.g. "Reverb", "Auto Filter").

      • index: number

        Zero-based position in the device chain at which to insert.

      Returns Promise<Device<Version>>