Ableton Live
    Preparing search index...

    Class Device<GP, CP, TP, SP, OP>

    This class represents a MIDI or audio device in Live.

    Specialised devices (racks, Simpler, plug-ins, Looper) extend this class with their own properties. Use createDevice to get the right subclass for a raw device.

    Device

    Type Parameters

    Hierarchy (View Summary)

    Index
    path: string = 'live_set tracks $1 devices'
    • get classDisplayName(): string

      Get the original name of the device (e.g. Operator, Auto Filter)

      Returns string

      Device

    • get className(): string

      Live device type such as MidiChord , Operator , Limiter , MxDeviceAudioEffect , or PluginDevice.

      Returns string

      Device

    • get id(): string | undefined

      Returns string | undefined

    • get name(): string

      This is the string shown in the title bar of the device

      Returns string

      Device

    • get path(): string

      Returns string

    • Type Parameters

      • TName extends string | number | symbol

      Parameters

      • child: TName
      • index: number
      • OptionalchildProps: string[]

      Returns Promise<FlatPropertyType<TName, TP, CP>>

    • Type Parameters

      • TName extends string | number | symbol

      Parameters

      • child: TName
      • OptionalchildProps: string[]
      • Optionalindex: number

      Returns Promise<PropertyType<TName, TP, CP>>

    • Switches between preset A and preset B of the device's A/B comparison.

      Available since Live 12.3.

      Parameters

      • useB: boolean

        true = switch to B, false = switch to A

      Returns Promise<null>

      Device

    • Type Parameters

      • T extends string | number | symbol

      Parameters

      • prop: T

      Returns Promise<T extends keyof TP ? TP[T] : GP[T]>

    • Type Parameters

      • T extends string | number | symbol

      Parameters

      • prop: T
      • listener: (data: T extends keyof OP ? OP[T] : T extends keyof TP ? TP[T] : any) => any

      Returns Promise<any>

    • Stores the current device state in the A/B comparison slot that is not in use. Same as "Compare: Copy A to B / Copy B to A" in the device title bar.

      Available since Live 12.3.

      Returns Promise<void>

      Device

    • Type Parameters

      • T extends string | number | symbol

      Parameters

      • prop: T
      • value: SP[T]

      Returns Promise<null>