Overview
Rift Studio includes a Lua 5.4-compatible scripting environment for custom automation, MIDI generation, and utility tools.
Open via View > Utility > Script Console.
Features
- File extensions — : .lua, .riftscript
- Sandboxed execution — : No file I/O, no network access, time-limited
- Script types — : MIDI Generator, Audio Effect, Utility
- Hot-reload — : Scripts recompile automatically on save
- Preset system — : Save and load script parameters
- Parameter UI — : Expose script parameters to the DAW interface
- Console output — : Print to the Script Console panel
API Examples
setMixerLevel(0, -6) -- Set track 0 to -6 dB
playNote(60, 100) -- Play MIDI note 60 at velocity 100
setTempo(140) -- Set BPM to 140
createTrack() -- Create a new trackEvent Callbacks
Scripts can respond to DAW events:
- onNote(note, velocity, channel) — MIDI note received
- onBeat(beat) — called each beat
- onBar(bar) — called each bar
- onTransport(playing) — play/stop state change
Use Cases
- Custom algorithmic MIDI generators - Automated batch processing workflows - Parameter randomization tools - Custom metering and analysis scripts - Integration with external systems via the DAW command API