reaper-osc
    Preparing search index...

    Class Track

    A Reaper track

    Implements

    Index

    Constructors

    • Parameters

      • trackNumber: number

        The track's number in the current bank

      • numberOfFx: number

        The number of FX per FX bank

      • numberOfSends: number

        The number of sends per track

      • numberOfReceives: number

        The number of receives per track

      • send: SendCommand

        A callback used to send typed commands to Reaper

      Returns Track

    Properties

    trackNumber: number

    The track's number in the current bank

    Accessors

    • get isMuted(): boolean

      Indicates whether the track is muted

      Returns boolean

    • get isRecordArmed(): boolean

      Indicates whether the track is armed for recording

      Returns boolean

    • get isSoloed(): boolean

      Indicates whether the track is soloed

      Returns boolean

    • get name(): string

      The track name

      Returns string

    • get pan(): number

      A floating-point value between -1 and 1 that indicates the pan position, with -1 being 100% left and 1 being 100% right

      Returns number

    • get pan2(): number

      A floating-point value between -1 and 1 that indicates the pan 2 position, with -1 being 100% left and 1 being 100% right

      Returns number

    • get panMode(): string

      The current pan mode

      Returns string

    • get volumeDb(): number

      The track volume in dB

      Returns number

    • get volumeFaderPosition(): number

      A floating-point value between 0 and 1 that indicates the fader position, with 0 being all the way down and 1 being all the way up

      Returns number

    • get vu(): number

      A floating-point value between 0 and 1 that indicates the VU level

      Returns number

    • get vuLeft(): number

      A floating-point value between 0 and 1 that indicates the Left VU level

      Returns number

    • get vuRight(): number

      A floating-point value between 0 and 1 that indicates the Right VU level

      Returns number

    Methods

    • Deselect the track in the Reaper project. Note: this affects Reaper's project-level track selection (visible in the UI). To change which track the OSC device is focused on, use DeviceState.selectTrack instead.

      Returns void

    • An event that can be subscribed to for property change notifications

      Parameters

      • property: string

        The name of the property to subscribe to

      • callback: () => void

        A callback to be called when the state of the specified property changes

      Returns () => void

      A function that unsubscribes the event handler

    • Arm the track for recording

      Returns void

    • Disarm track recording

      Returns void

    • Renames the track

      Parameters

      • name: string

        The new name of the track

      Returns void

      // Change the track name to 'Guitar'
      track.rename('Guitar');
    • Select the track in the Reaper project. Note: this affects Reaper's project-level track selection (visible in the UI). To change which track the OSC device is focused on, use DeviceState.selectTrack instead.

      Returns void

    • Sets the pan

      Parameters

      • value: number

        A floating-point value between -1 and 1, where -1 is 100% left and 1 is 100% right

      Returns void

    • Sets the pan 2

      Parameters

      • value: number

        A floating-point value between -1 and 1, where -1 is 100% left and 1 is 100% right

      Returns void

    • Sets the volume to a specific dB value.

      Parameters

      • value: number

        Value (in dB) to set the volume to. Valid range is -100 to 12.

      Returns void

    • Sets the volume by moving the fader to a specific position

      Parameters

      • position: number

        A value for the fader position between 0 and 1, where 0 is all the way down and 1 is all the way up

      Returns void

    • Toggle mute on/off

      Returns void

    • Toggle record arm on/off

      Returns void

    • Toggle solo on/off

      Returns void

    • Unmute the track

      Returns void

    • Unsolo the track

      Returns void