fl_transport
Play or stop playback of the FL Studio project already open, without editing any files. Select song or pattern mode; FL must be running with a project.
Instructions
Play or stop whatever project is open in the running FL, to hear it; it changes nothing in any file. action 'play' plays from the start, also when called while playing. 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. Needs FL open with a project; it is not started for this: open one 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.
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 |