Automation Actions - reaper-csi/reaper_csurf_integrator GitHub Wiki
Automation Actions
TrackAutoMode
Use the CSI Action TrackAutoMode to assign a button to each of Reaper's Track Automation Modes. This action is designed to work on the selected track(s) without the need for a navigator, allowing it to work in a typical "Buttons" zone.
Here is an example of buttons mapped to each of the 5 automation modes in Reaper.
Zone "Buttons"
Trim TrackAutoMode 0 // Trim
Read TrackAutoMode 1 // Read
Touch TrackAutoMode 2 // Touch
Write TrackAutoMode 3 // Write
Latch TrackAutoMode 4 // Latch
Alt+Latch TrackAutoMode 5 // LatchPreview
ZoneEnd
GlobalAutoMode
GlobalAutoMode is used to set Reaper's Global Automation override mode. You may want to use a modifier and put it in the same Zone as your other automation buttons as shown in the example below.
Zone "Buttons"
Trim TrackAutoMode 0 // Trim
Read TrackAutoMode 1 // Read
Touch TrackAutoMode 2 // Touch
Write TrackAutoMode 3 // Write
Latch TrackAutoMode 4 // Latch
Alt+Latch TrackAutoMode 5 // Latch Preview
Shift+Trim GlobalAutoMode 0 // Global automation override off
Shift+Read GlobalAutoMode 1 // Global Read
Shift+Touch GlobalAutoMode 2 // Global Touch
Shift+Write GlobalAutoMode 3 // Global Write
Shift+Latch GlobalAutoMode 4 // Global Latch
Shift+Alt+Latch GlobalAutoMode 5 // Global Latch Preview
ZoneEnd
CycleTrackAutoMode
Use the CSI action CycleTrackAutoMode when you're looking to cycle through the various automation modes in Reaper. Note: "Write" mode is left out by design in order to prevent accidental writing or over-writing of automation while cycling through modes.
Here Shift+RecordArm will cycle through the various automation modes.
Shift+RecordArm| CycleTrackAutoMode
Now, if your surface has displays and you'd like to see the name of the automation mode appear on the surface that can be done by adding the name of the display widget after the CSI action. In the below example, I'm using the upper display of an MCU device to show the automation mode.
Shift+RecordArm| CycleTrackAutoMode DisplayLower|
TrackAutoModeDisplay
TrackAutoModeDisplay can be combined with a TrackNavigator or SelectedTrackNavigator to show you the current automation mode. In this example, pushing RotaryB7 will cycle through the automation mode on the selected track and the corresponding display will tell us which mode it's in.
Zone "SelectedTrack"
SelectedTrackNavigator
RotaryPushB7 CycleTrackAutoMode
DisplayRotaryPushB7 TrackAutoModeDisplay