Skip to main content

Library for Midi Fighter Twister Interfacing in Python

Project description

    # pymft: Python Midi Fighter Twister Library

    This library provides a simple and easy-to-use interface for interacting with the [Midi Fighter Twister](https://djtechtools.com/product/midifighter-twister/) controller in Python. 

    The code in this library is inspired from the [Chromatik MidiFighterTwister library](https://github.com/heronarts/LX/blob/dev/src/main/java/heronarts/lx/midi/surface/MidiFighterTwister.java).

    ## Features

    - **Easy Configuration:** Define knob configurations using the `MidiFighterTwister` class. This library is trying to asbtract the complexity of the Midi Fighter Twister controller interface out of the client code.
    - **Knob Configuration:** Define knob settings (type, range, color, detent, movement, MIDI type, etc.) using the `KnobSettings` class.
    - **Easy Subscription:** Subscribe to knob changes using `mft.subscribe()`, which automatically applies the defined knob settings to the device.
    - **Efficient Reading:**  The library handles reading knob values in the background, allowing you to efficiently query changes using functions like `read_all_changed()`, `read_active_changed()`, `read_all()`, and `read_active()`.
    - **JSON Configuration:** Load knob configurations from JSON files, allowing you to define and manage settings easily.
    - **Value Change Callback:** Call a function when the value of a knob changes to avoid expensive while loops.

    Future developments include:
    - **Non-linear Mapping:** Support non-linear min-max mapping for knob values
    - **2-way Communication:** Send new knob values to the device to allow 2-way communication between the client code and the hardware
    - **Multiple MFT Devices:** Test with more than 1 MFT device and see if it works

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

pymft-0.1.4.tar.gz (27.6 kB view details)

Uploaded Source

File details

Details for the file pymft-0.1.4.tar.gz.

File metadata

  • Download URL: pymft-0.1.4.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.1

File hashes

Hashes for pymft-0.1.4.tar.gz
Algorithm Hash digest
SHA256 bb39907af70007c4ea9afb448b7d7b22e66a54c9708d7080c8ec4629279b121a
MD5 00cb70e4b0bf5ec32a662c3d62c1ba59
BLAKE2b-256 4f323b64de708f21a1aa48d6f9685c7ec766692b8af861c45938ebe3aa50b70b

See more details on using hashes here.

Supported by

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