create_rack
Generate a complete Eurorack-style Pure Data rack from module specifications, with automatic wiring and MIDI controller configuration for hardware control.
Instructions
Generate an entire Eurorack-style rack of Pd patches at once. Takes an array of module specs (template + params) and generates: individual .pd files for each module + a combined _rack.pd with all modules side-by-side. Use wiring to connect modules via throw~/catch~ (audio) or send/receive (control) buses. Add controller config to map a MIDI controller (e.g. K2) to rack parameters — generates _controller.pd (MIDI routing) and _k2_config.json (LED feedback). Parameters auto-map by category (faders→volume, pots→filter) or use custom mappings. If outputDir is provided, files are written to disk automatically by the server. IMPORTANT: The complete .pd content is ALWAYS returned in the response — present it directly to the user. STOP after presenting the result. Do NOT run bash, ls, mkdir, cat, cp, mv, or ANY file/shell operations after this tool. Do NOT try to save, verify, or create files — everything is already handled. Just show the content to the user.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modules | Yes | Array of module specifications. Each becomes a separate .pd file. | |
| wiring | No | Inter-module connections for the combined _rack.pd patch. | |
| controller | No | MIDI controller configuration. Generates _controller.pd (input) and/or _output_controller.pd (output) for hardware control of rack parameters. | |
| outputDir | No | Optional ABSOLUTE directory path to write all .pd files. If omitted, content is returned but not written to disk. |