Skip to main content

Module and function definitions and documentation for the FL Studio Python API

Project description

FL Studio Python API Stubs

This project contains function definitions to provide intellisense while working on scripts for FL Studio's Python API, as well as a partially-complete model of FL Studio, which allows for scripts to be tested outside of FL Studio.

Online Reference

The documentation is also available as an online reference if Image-Line's own documentation isn't up to scratch.

Installation

To avoid module conflicts with other Python projects, it is recommended that you install this script in a virtual environment by following these instructions in the official Python documentation.

After activating the environment in your editor, you can install the stub modules by running the command pip install FL-Studio-API-Stubs on Windows or pip3 install FL-Studio-API-Stubs on MacOS or Linux.

Video reference for installation instructions

Testing using the FL Studio API Stubs

This code provides a model of FL Studio which can be used to test basic functionality of projects using the API. The fl_model module can be used for controlling the state of the model. Refer to its documentation for usage instructions.

The Small Print

A couple of notes regarding this repo.

This Documentation isn't Complete

Although the stubs are mostly complete, there are a few functions where I don't fully understand how they work. These functions have a HELP WANTED: label in their documentation. If you happen to know how to use one, I'd love it if you helped out by improving the documentation! I may also have incorrect definitions for some functions. Please create an issue if you find anything incorrect.

Differences to the Official Implementation

A small number of tweaks have been made to these stubs in order to ease code writing. These shouldn't have any functional impact on the behavior of the API compared to the implied behavior from the stubs, but should help clarify some properties of certain functions.

  • Functions where parameters or returns are boolean by nature are listed as using a bool type, even though the implementation uses the integers 0 and 1. This change should help to describe the context in which the functions should be called when writing scripts, which in a language like Python is far more important than the actual implementation of the functions.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

FL_Studio_API_Stubs-24.0.0.tar.gz (77.0 kB view details)

Uploaded Source

Built Distribution

FL_Studio_API_Stubs-24.0.0-py3-none-any.whl (101.3 kB view details)

Uploaded Python 3

File details

Details for the file FL_Studio_API_Stubs-24.0.0.tar.gz.

File metadata

  • Download URL: FL_Studio_API_Stubs-24.0.0.tar.gz
  • Upload date:
  • Size: 77.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for FL_Studio_API_Stubs-24.0.0.tar.gz
Algorithm Hash digest
SHA256 db0147695c1abb8f2286153de421adecd8a0fd617037a78b3b76d939ddd58ce2
MD5 93ddec57488cf9eae07c6ab805517401
BLAKE2b-256 bb2913df5cae2b76612a06f65ff7c43d2d80bdca3336c49c005f33c6d4ab6842

See more details on using hashes here.

Provenance

File details

Details for the file FL_Studio_API_Stubs-24.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for FL_Studio_API_Stubs-24.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f54cc74e8d03b1fcefd61dd9df4422febca91a0c87f2b9c07d00f5e316386b96
MD5 dc3e5e16b1aead9649bf599064562991
BLAKE2b-256 b641b6fc84694e759c05e3abf0a596c631bf94f6e67e179f7535b9cd00c3c15a

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page