PyFLP - A parser for FL Studio project files

Audio Plugin Hosts and other audio software applications discussion
Post Reply New Topic
RELATED
PRODUCTS

Post

AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
PyFLP is a parser for FL Studio project files (.flp) written in pure Python. It supports reading and editing. You don't need to understand the underlying format at all. I can't be overly technical here, so I give examples of what you can possibly do.

Initialisation:

Code: Select all (#)

from pyflp import Parser
proj = Parser().parse("myflp.flp")
Changing the tempo:

Code: Select all (#)

proj.misc.tempo = 69.420
Getting all channel names:

Code: Select all (#)

print([ch.get_name() for ch in proj.channels])
Saving back:

Code: Select all (#)

# Overwrite
proj.save()

# Save to a new location
proj.save("/path/to/newflp.flp")
There's much much more you can do. The entire API is documented on ReadTheDocs https://pyflp.rtfd.io (https://pyflp.rtfd.io).

Image-Line doesn't disclose much information about their format, all that is available is code from other similar projects I mention on the GitHub page. I don't take responsibility for any losses you face, do this at your own risk, keep a backup.

The FLP format is shit. I can write a long rant about it but it would be meaningless anyways. TLDR; Just notice how much space you can save by just zipping an FLP.

I have tested PyFLP only on some FL 20+ projects, FLPs saved with older version won't get parsed and will throw errors.

You might ask why not use FL Studio directly instead? You are not wrong, however once you save a project in a particular version of FL, you can't open it in old versions of FL. You might also want to automate something like organizing you FLPs into folders depending on certain information stored inside FLPs, like artist names, genre, title etc.

PyFLP @ GitHub: https://github.com/demberto/PyFLP (https://github.com/demberto/PyFLP) for installation and more info.

Post

Yoo, this library is just what i've been looking for! Its awesome. Do you know how you can use it to export a full song in mp3?

Post

Glacierman wrote: Thu May 18, 2023 8:41 pm Yoo, this library is just what i've been looking for! Its awesome. Do you know how you can use it to export a full song in mp3?
You cannot do that without FL Studio (and obviously all the plugins installed).

Post Reply

Return to “Hosts & Applications (Sequencers, DAWs, Audio Editors, etc.)”