A tool to generate skeleton puredata and Max/MSP external files.
Has two intended purposes:
-
Generate skeleton puredata and Max/MSP external code
-
Generate related puredata and Max/MSP patch code
The idea is that an external is generically specified in a <name>.yml
file, and then this file is used to generate one of several target formats {Max, PD, Hybrid, ...}
The external model is roughly sketched in the model.py
file.
pip3 install mako
Can generate a basic external skeleton from a .yml
specification file (see counter.yml
)
Run the following for a demo
python3 xtgen.py
A pd external project will be created in output/counter
which should be compilable:
make -C output/counter
- create hybrid dual Max/PD template
- create hybrid dual Max/PD template for audio
- Add
xtgen.h
for common helper functions
- create/generate inlets
- create/generate outlets
- params: should be either 'anything' or alternatives.
- populate variables (switch statement)
- fixed inconsistencies in
external.yml
, especiallyarg
vsparam
configuration - rulecheck:
anything
method vs. others (especially list), can be redundant.
- generate pd help code
- generate pd project
- generate signal-based external
- add utility library for builtin scaling, clamp, ..., dsp functions?