Events
Mixer > Events
Functions for managing events on effects plugins
getTrackPluginId
Returns the plugin ID of the plugin on track index
in slot plugIndex
.
A plugin ID is used internally by FL Studio to represent effects present
on the mixer. A plugin ID can be used with REC events in order to automate
plugins, and is also the return value of
ui.getFocusedFormID()
if the focused window is an effect
plugin.
Plugin IDs are represented as ((track << 6) + index) << 16
, although
the official documentation lists them as (track << 6 + index) << 16
,
which uses the order of operations incorrectly.
Args
-
index (
int
): track index. -
plugIndex (
int
): plugin index.
Returns
int
: plugin ID.
Included since API version 1.
isTrackPluginValid
Returns whether a plugin on track index
in slot plugIndex
is valid
(has been loaded, so the slot isn't empty).
Args
-
index
(int
): track index. -
plugIndex
(int
): plugin index.
Returns
bool
: whether a plugin is loaded at this location.
Included since API version 1.
getEventValue
Returns event value from MIDI.
HELP WANTED
- What does this do?
Args
-
index
(int
): ??? -
value
(int
, optional): ???. Defaults to 'MaxInt'. -
smoothTarget
(int
, optional): ???. Defaults to 1.
Returns
int
: ???
Included since API version 1.
remoteFindEventValue
Returns event value.
HELP WANTED
- What does this do?
Args
-
index
(int
): ??? -
flags
(int
, optional): ???. Defaults to 0.
Returns
float
: ???
Included since API version 1.
getEventIDName
Returns event name for event at index
.
HELP WANTED
- What does this do?
Args
-
index
(int
): ??? -
shortname
(int
, optional): ???. Defaults to 0.
Returns
str
: name of event?
Included since API version 1.
getEventIDValueString
Returns event value as a string.
HELP WANTED
- What does this do?
Args:
-
index
(int
): ??? -
value
(int
): ???
Returns
str
: ???
Included since API version 1.
getAutoSmoothEventValue
Returns auto smooth event value.
HELP WANTED
- What does this do?
Args
-
index
(int
): ??? -
locked
(int
, optional): ???. Defaults to 1.
Returns
int
: ???
Included since API version 1.
automateEvent
automateEvent(index: int, value: int, flags: int, speed: int = 0, isIncrement: int = 0, res: float = midi.EKRes) -> int
Automate event.
HELP WANTED
- What does this do?
Args
-
index
(int
): ??? -
value
(int
): ??? -
flags
(int
): refer to the FL Studio manual. -
speed
(int
, optional): ???. Defaults to 0. -
isIncrement
(int
, optional): ???. Defaults to 0. -
res
(float
, optional): ???. Defaults tomidi.EKRes
.
Returns
long
: ???
Included since API version 1.