Skip to main content

Module format

Module format 

Source
Expand description

The preset file of a synth behind two traits: PresetFormat reads and writes the bytes, and PresetModel is the decoded preset.

The commands and the edit applier use only these traits. Container, number and hash rules stay inside each adapter. A model keeps every key it read, including keys the registry does not know, so a rewrite loses no feature of a newer build.

Structs§

DescribeOptions
How much of a long list or text PresetModel::describe shows.
Description
The tree that preset inspect prints under the header.
FormatError
A preset that cannot be read or written.
Header
The header fields of a preset, in print order. The first field is always build: the build stamp the file carries.
HeaderField
One line of the header.
Route
One modulation slot.

Enums§

Node
A node of the describe tree.
RoutePolarity
The direction of a modulation source.
Status
How a header field reads.
Stored
A value as the file stores it.

Constants§

SHOWN_TEXT_CHARS
The longest text shown in full when full is false.

Traits§

PresetFormat
The file format of one synth.
PresetModel
A decoded preset.

Functions§

format_for
The format of a synth.