Crate dot_multisample

source ·
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

  • A sample group (for presentation purposes only)
  • Mapping data relating to notes played
  • Looping behavior for a sample
  • A multi-sample mapping for an instrument
  • Mapping information for a sample file
  • Generic mapping with endpoints and fade distances

Enums

  • Traversal mode
  • Specify behavior when multiple samples occupy the same zone

Type Aliases