Skip to main content

Module preset

Module preset 

Source
Expand description

Preset files of the target synths, behind one adapter per synth.

  • format: the PresetFormat and PresetModel traits that read, edit and write a preset, and the tree that preset inspect prints.
  • registry: the ParamRegistry of each synth, with the law between stored and physical values and its provenance.
  • template: where the template of a new preset comes from.
  • vital: the Vital adapter.
  • edits: the edit list an agent writes, and its check against the registry.
  • apply: applies checked edits to a model.
  • mapper: the SynthMapper trait that turns layer values into edits, and the synth-neutral plan of the pitch and envelope groups.
  • catalogue: the layer and pattern of each control in the agent reference.

inspect runs preset inspect and apply_file runs preset apply.

Modules§

apply
Applies resolved edits to a model through the format traits. The applier is synth-neutral: the registry supplies keys, ranges and defaults, and the format supplies the route rules and the final scan.
catalogue
Where each control of a synth sits in the agent reference: its layer and the pattern that groups its instances.
edits
The edit list: the JSON an agent writes and preset apply reads.
format
The preset file of a synth behind two traits: PresetFormat reads and writes the bytes, and PresetModel is the decoded preset.
mapper
Turns measured layer values into edits for one synth.
registry
The parameter registry of a synth: the key, range, unit and law of every control, with the provenance of each law.
template
Where the template of a preset comes from: a path on the command line, a file the adapter knows about, or a template built into the binary.
vital
The Vital adapter: the .vital JSON format, the parameter registry, the built-in template, the capabilities and the laws that span controls.

Structs§

ApplyRequest
The inputs of preset apply.

Enums§

PresetError
A preset command that failed.

Functions§

apply_file
Runs preset apply: reads the edit list, takes the template, applies the edits and writes the preset. Returns the report to print.
inspect
The text preset inspect prints: the header fields of the adapter, a blank line, then the decoded tree.