Skip to main content

Transpiler between .flutmax text and Max/MSP .maxpat patches

Project description

flutmax

Python bindings for the flutmax transpiler — convert between .flutmax text and Max/MSP .maxpat patches.

Install

pip install flutmax

Usage

File-based (compile / decompile files directly)

import flutmax_py

# Compile .flutmax → .maxpat
flutmax_py.compile_file("synth.flutmax", "synth.maxpat")

# Decompile .maxpat → .flutmax
flutmax_py.decompile_file("patch.maxpat", "patch.flutmax")

String-based (for programmatic use)

import flutmax_py
import json

# Compile source string to .maxpat JSON
maxpat = flutmax_py.compile("wire osc = cycle~(440);\nout audio: signal = osc;")

# Decompile .maxpat JSON to .flutmax source
source = flutmax_py.decompile(maxpat)

# Parse to AST JSON
ast = json.loads(flutmax_py.parse("wire osc = cycle~(440);"))

License

MIT — see LICENSE

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

flutmax-0.1.1.tar.gz (175.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flutmax-0.1.1-cp312-cp312-macosx_11_0_arm64.whl (515.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

File details

Details for the file flutmax-0.1.1.tar.gz.

File metadata

  • Download URL: flutmax-0.1.1.tar.gz
  • Upload date:
  • Size: 175.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.12.6

File hashes

Hashes for flutmax-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cf50ef7630898b8842664584fb9620c3a718cf0f7a2091cc9d0a19ab0c3cd318
MD5 1fa775017b320e4cfa47be02fdf665bb
BLAKE2b-256 3499e297182e8a0f879addc5a5e3e7c59505f70fd9b646152da936d6d0b15b24

See more details on using hashes here.

File details

Details for the file flutmax-0.1.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for flutmax-0.1.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ce6b2aa459aed1ffbdfff8a4ca07dea67014bf17f8e01bd31edd242c21f4c080
MD5 63470b44af3ef08d81dc0d03a0cd169b
BLAKE2b-256 c31257c384d15d35ae2b9d4573e6f7ce9fc46b9afa44e2640eeca50c806df0eb

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