flutmax-codegen 0.1.0

Code generator: analyzed graph -> .maxpat JSON
Documentation

flutmax-codegen

Code generator: analyzed graph -> .maxpat JSON.

Part of the flutmax workspace.

Overview

Transforms the analyzed AST into a PatchGraph and serializes it as a .maxpat JSON file compatible with Max/MSP. Uses a Sugiyama-style layered layout algorithm for automatic object placement.

Usage

let ast = flutmax_parser::parse(source).unwrap();
let graph = flutmax_codegen::build_graph(&ast).unwrap();
let maxpat_json = flutmax_codegen::generate(&graph).unwrap();

License

MIT