Properties
Mixer > Properties
Properties of the mixer and other aspects of FL Studio as a whole
getTrackInfo
Returns the index of a special mixer track depending on mode
.
This function can serve to help potentially future-proof scripts by ensuring that they continue to use the correct indexes for mixer tracks.
Args
-
mode
(int
): Determines the type of information provided.-
TN_Master
(0
): Index of master track. -
TN_FirstIns
(1
): Index of first insert track. -
TN_LastIns
(2
): Index of last insert track. -
TN_Sel
(3
): Index of the "current" track (the one with the large peak meter docked to the left).
-
Returns
int
: requested track index.
Included since API version 1.
trackCount
Returns the number of tracks available on the mixer.
The value returned by this function includes master and "current track" tracks.
The range of accessible tracks is from 0
to trackCount() - 1
.
Returns
int
: number of tracks.
Included since API version 1.
getSongStepPos
Returns the current position in the song, measured in steps.
Returns
int
: song position.
Included since API version 1.
getCurrentTempo
Returns the current tempo of the song.
Args
asInt
(bool
, optional): whether to return the tempo as anint
(True
) or not (False
). Defaults toFalse
.
Returns
int
orfloat
: Current tempo.
Included since API version 1.
getRecPPS
Returns the recording PPS.
This value is determined by the the timebase (PPQ) value of the current project.
Returns
int
: recording PPS.
Included since API version 1.
getSongTickPos
Returns the current position in the song, measured in ticks.
Args
mode
(int
, optional): the format to return the tick position in. See the documentation.
Returns
int
orfloat
: song position in ticks.
Included since API version 1.
getLastPeakVol
Returns last peak volume.
Args
-
section
(int
): audio channel-
0
: left channel. -
1
: right channel.
-
Returns
float
: last peak volume (0.0
for silence,1.0
for 0 dB,>1.0
for clipping).
Included since API version 9.
focusEditor
Focus the editor the effect plugin at the given location.
Args
-
index
(int
): track index of plugin. -
plugIndex
(int
): mixer slot index of plugin.
Included since API Version 25.