Skip to main content

Crate flutmax

Crate flutmax 

Source
Expand description

§flutmax

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

§Quick Start

let maxpat = flutmax::compile("wire osc = cycle~(440);\nout audio: signal = osc;").unwrap();
let source = flutmax::decompile(&maxpat).unwrap();

Re-exports§

pub use flutmax_ast as ast;
pub use flutmax_codegen as codegen;
pub use flutmax_decompile as decompile;
pub use flutmax_objdb as objdb;
pub use flutmax_parser as parser;
pub use flutmax_sema as sema;

Functions§

compile
Compile .flutmax source to .maxpat JSON string.
decompile
Decompile .maxpat JSON string to .flutmax source.
decompile_multi
Decompile with multi-file support (subpatchers, codebox, UI data).
parse_to_json
Parse .flutmax source and return AST as JSON string.