Skip to content

Event mapping

FL Studio uses an advanced system mapping events from hardware controls to software controls, which can be confusing to use without an explanation.

Control IDs

These represent the unique identifier of a single hardware control within FL Studio. They are formed from a port number, a MIDI channel and a CC number, which are encoded as follows:

cc + (channel << 16) + ((port + 1) << 22)

This encoding can be calculated using the midi.EncodeRemoteControlID function.

Event IDs

FL Studio maps events using event IDs, which represent the unique identifier of a single software control. When automating these controls, event IDs are mapped to control IDs. You can determine this link using the device.findEventID function.

From this, several functions are available to interact with FL Studio using event IDs.