py files and modules you create must be located inside one of these subfolders:Ĭontroller script folder: The folder your script is going to be located on can have any name you want. Inside the User data folder, /FL Studio/Settings/Hardware will contain folders for each of the MIDI scripts you load in your system to Inside this folder there will be several folders with names matching Image-Line products names. If you don’t know its location on your PC, launch FL Studio, go to Options > File settings and check the “User data folder” setting. MIDI scripts made by users have to be located inside a specific subfolder of their FL Studio “User data folder”. py files you write as runnable MIDI scripts, you have to satisfy some requirements: Location ¶ Since the Python interpreter is directly built into FL Studio, you can’t use it as you would with a regular Python interpreter.
FL STUDIO DIAGNOSTIC TOOL CODE
Inside your main Python file (you will learn what a “main Python file” is later) depending on when you need your code to be executedĪnd FL Studio will call those functions just like your script was an imported module on another Python script. Series of functions and methods with pre-defined names that FL Studio will run under said conditions. Each event’s actions are defined using what in the official API reference are named as “Script events”: a the user starts playing their song, a MIDI message is received from the The Python programming language, then don’t use language features not available in this version.įL Studio’s MIDI scripting API uses an event-based model for code execution from MIDI scripts: code only gets executed whenĪ certain event happens inside FL Studio (ex. As of today, the latest Python interpreter used by FL Studio is based on Python 3.9.x.