fl_transport
Control playback of the project open in FL Studio: start from the beginning in song or pattern mode, or stop playback, without changing any files.
Instructions
Play or stop whatever project is open in the running FL, to hear it; it changes nothing in any file. action 'play' jumps to the start and plays (from the start, not from where it stopped; called while playing, it restarts from the start). action 'stop' stops playback. mode 'song' plays the arrangement, 'pattern' loops one pattern (pattern: its number, selected first); without mode FL keeps the one it has. Launches FL when it is not running, but then nothing is open: open a project with project_write(open=true), which can also start playback itself (play='song'). Returns {playing, mode}. To get audio out, use fl_render, which saves and closes FL instead. Windows with FL Studio only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'song' or 'pattern'; omit to keep FL's | |
| action | Yes | 'play' or 'stop' | |
| pattern | No | in pattern mode, the pattern number to select first |