Skip to main content

Module catalogue

Module catalogue 

Source
Expand description

Where each control of a synth sits in the agent reference: its layer and the pattern that groups its instances.

The reference has one catalogue file per synth layer, plus one file for controls outside the layers. The layer of a key is a fact of one synth, so each adapter supplies its own map; this module only dispatches.

use sound_to_patch::preset::catalogue::{Layer, placement};
use sound_to_patch::synth::Synth;

let place = placement(Synth::Vital, "osc_2_unison_detune")?;
assert_eq!(place.layer, Some(Layer::Unison));
assert_eq!(place.pattern, "osc_N_unison_detune");
assert_eq!(place.instance.as_deref(), Some("2"));

Structs§

Placement
Where one key sits in the reference.

Enums§

Layer
A synth layer, in signal-path order.

Functions§

placement
Where a key of synth sits in the reference.
unread_keys
Keys that files saved by some builds of synth hold and the registry does not cover. The reference lists them apart, with no range.