reaper-osc
    Preparing search index...

    Class SelectedTrack

    The OSC device's currently selected track.

    Receives state via the /track/ (no index) address space, which Reaper populates with a full sync burst whenever the device's focused track changes.

    DeviceState.selectTrack to change which track is selected

    Implements

    Index

    Constructors

    • Parameters

      • numberOfFx: number

        The number of FX slots in the device FX bank

      • numberOfSends: number

        The number of sends in the device send bank

      • numberOfReceives: number

        The number of receives in the device receive bank

      • send: SendCommand

        A callback used to send typed commands to Reaper

      Returns SelectedTrack

    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 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 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

    • 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

    • Renames the track

      Parameters

      • name: string

        The new name for the track

      Returns void

    • Select this track in Reaper. Note: this selects the track in the Reaper project. To change which track the 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