This guide is still under-development.
Each time a MIDI message gets received by FL Studio from a MIDI device with a Python script assigned to it, several script events get called as a part of a filtering process with several levels that allows, among others, to process MIDI messages of the same kind the same way without having to repeat code for each specific message.
OnMidiIn()¶When your device sends a MIDI message to FL Studio, it creates an event object that will represent the message for your script to use it.
Represents and holds the data of a MIDI message in order for a MIDI script to be able to react and use it.
Controls wether the message will make it into the next MIDI filtering stage or not. (read/write access)
Each time the execution of a OnMidi*() script event ends, FL Studio will check the value of handled to decide whether the event has to
get promoted to the next filtering level or the script doesn’t need any further processing of the event.
Timestamp of the event. (read access)
Value of the STATUS byte of the MIDI message. (read/write access)
Value of the DATA1 byte of the MIDI message. (read/write access)
If the message is a SysEx message, it will be set to 0.
Value of the DATA2 byte of the MIDI message. (read/write access)
If the message is a SysEx message, it will be set to 0.
Value of the MIDI port the MIDI device is assigned to. (read access)
MIDI note number. (read/write access)
MIDI velocity. (read/write access)
MIDI pressure. (read/write access)
MIDI program number. (read access)
MIDI control number. (read access)
MIDI control value. (read access)
MIDI pitch bend value. (read access)
If the message is a SysEx message, the full byte chain will be available here. (read/write access)
If the message is regular MIDI message, it will be set to None.
MIDI is increment state. (read/write access)
Unknown. (read/write access)
Unknown. (read/write access)
Unknown. (read/write access)
Unknown. (read/write access)
MIDI channel used to transmit the message (with index on 0). (read/write access)
Unknown. (read/write access)