fl_call
Call one FL Studio scripting API function inside a running FL Studio on Windows to read or change a single project value, such as a parameter name or mixer level, and return the result.
Instructions
Call one function of FL's scripting API inside the running FL and return what it returns: {ok, value} or {ok: false, error}. For a single read or change, e.g. a parameter name or a mixer level of the open project. Use fl_exec for several calls or logic; use project_read and project_write for anything the .flp file holds, which need no FL. A setter changes the open project as an edit by hand would; nothing is saved. Launches FL if needed. Windows with FL Studio only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fn | Yes | module.function as FL's API names it, e.g. 'plugins.getParamName' | |
| args | No | its positional arguments, e.g. [0, 5, -1] |