Expand description
.multisample format domain model
Matches schema on GitHub as of commit 4e7971f1
.
§Example
let multi = Multisample::default()
.with_name("My Instrument")
.with_generator("Rust")
.with_category("Piano")
.with_creator("Me")
.with_description("Toy piano I found at the second hand shop")
.with_keywords(["noisy", "dirty", "metallic"])
.with_samples([
Sample::default()
.with_file(path.join("C2.wav"))
.with_key(Key::default().with_root(36)),
Sample::default()
.with_file(path.join("C3.wav"))
.with_key(Key::default().with_root(48)),
Sample::default()
.with_file(path.join("C4.wav"))
.with_key(Key::default().with_root(60)),
]);
Structs§
- Group
- A sample group (for presentation purposes only)
- Key
- Mapping data relating to notes played
- Loop
- Looping behavior for a sample
- Multisample
- A multi-sample mapping for an instrument
- Sample
- Mapping information for a sample file
- Zone
Info - Generic mapping with endpoints and fade distances
Enums§
Type Aliases§
- Color
- RGB hex value