Marker
Markers are used to mark times and control piano roll behavior (such as time signatures and scale highlighting).
Marker
Represents a marker in the FL Studio piano roll.
name
property
writable
Name of the marker.
Note that for markers that have an associated action, this won't be displayed to the user.
mode
property
writable
Action associated with the marker.
Possible values
-
0
: no action. -
6
: pattern length. -
8
: time signature (numerator and denominator can be accessed from propertiestsnum
andtsden
, respectively). -
9
: start recording. -
10
: stop recording. -
12
: key/scale (key and scale helper can be accessed from propertiesscale_root
andscale_helper
, respectively).
scale_root
property
writable
Root note of the scale of a key/scale marker, where C is note 0
.
scale_helper
property
writable
Notes that are highlighted in the piano roll, as a comma-separated list of boolean integers.
For example, if C, D and Eb were highlighted, the elements would be:
To parse this into a more Pythonic form, you could use the following code:
>>> [n == '1' for n in marker.scale_helper.split(',')]
[True, False, True, True, False, False, False, False, False, False, False, False]
To assign this value in a more pythonic form, you could use the following code: