flutmax 0.1.0

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

flutmax

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

Part of the flutmax workspace.

Overview

Unified facade crate that re-exports the entire flutmax compiler pipeline. Provides high-level compile(), decompile(), and parse_to_json() functions for common workflows.

Usage

// Compile .flutmax source to .maxpat JSON
let maxpat = flutmax::compile("out audio: signal;\nwire osc = cycle~(440);\nout[0] = osc;").unwrap();

// Decompile .maxpat JSON back to .flutmax source
let source = flutmax::decompile(&maxpat).unwrap();

// Parse to AST and return as JSON (useful for bindings)
let ast_json = flutmax::parse_to_json("wire osc = cycle~(440);").unwrap();

Sub-crate access

For advanced usage, sub-crates are re-exported:

use flutmax::ast;
use flutmax::parser;
use flutmax::sema;
use flutmax::codegen;
use flutmax::objdb;
use flutmax::decompile;

License

MIT