Optionalconfig: ReaperConfigurationOptionalconfig: ReaperConfigurationThe underlying stateless OSC client
Controls the OSC device's navigation state (track/bank/FX selection)
Indicates whether any track is soloed
Indicates whether auto-record-arm is enabled
Indicates whether the metronome is enabled
Indicates whether OSC is ready to send and receive messages
The current bank of markers
The master track
The current bank of regions
The OSC device's currently focused track. State is populated by the sync burst Reaper sends when the focused track changes.
The current bank of tracks
Transport controls
Arrange-view scroll and zoom controls
An event that can be subscribed to for property change notifications
The name of the property to subscribe to
A callback to be called when the state of the specified property changes
A function that unsubscribes the event handler
Triggers the action Control surface: Refresh all surfaces (Command ID: 41743)
Send a message to Reaper via OSC. Messages may not be sent while Reaper.isReady is false.
The OSC message to be sent
Reset all solos
Open the OSC port and start listening for messages
Stop listening for OSC messages
Toggle auto-record-arm on or off
Toggle the metronome on or off
Trigger a Reaper action
The Command ID of the action to be triggered.
The value to send for the action. Note that some actions expect the CC value (0-127) while others expect a decimal value between 0 and 1.
// Trigger action 'Track: Toggle mute for master track'
reaper.triggerAction(14);
// Trigger SWS Extension action 'SWS/S&M: Live Config #1 - Apply config (MIDI/OSC only)' with a CC value of 3, selects config #3
reaper.triggerAction('_S&M_LIVECFG_APPLY1', 3);
// Trigger action 'Track: Set volume for track 01 (MIDI CC/OSC only)' with a value of 0.75, sets volume of track 1 to +0.0dB
reaper.triggerAction(20, 0.7156)
Allows control of an instance of Reaper via OSC.
Example