PyFLP - FL Studio Project file (.flp) parser

Discussion in 'FL Studio' started by demberto, Nov 18, 2021.

Tags:
  1. demberto

    demberto Rock Star

    Joined:
    Nov 27, 2018
    Messages:
    931
    Likes Received:
    325
    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:
    from pyflp import Parser
    proj = Parser().parse("myflp.flp")
    
    Changing the tempo:

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

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

    Code:
    # 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 here.

    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 for installation and more info. Do consider contributing in any way you could :)
    pyflp @ PyPI where PyFLP is hosted.
     
    • Interesting Interesting x 2
    • List
  2.  
  3. jagen

    jagen Guest

    Can I repair a corrupted FL studio file with it. Don't have access to FL Diagnostics Tool. Or if you can help me repair the file, I'll be grateful.
     
Loading...
Similar Threads - PyFLP Studio Project Forum Date
Vocals aufnehmen Studio One DE Yesterday at 4:40 PM
My Machine ID does not fit into the R2R Keygen for Studio One Studio One Monday at 4:37 AM
Studio One Neues Lizenz System DE Sunday at 11:29 PM
Need help, Studio One Filter/Select by Name Script Studio One Apr 17, 2024
Studio one 6.6 melodyne not working Software Apr 15, 2024
Loading...