qualia_audio/midi/instrument/mod.rs
1//! SFZ/SF2/DLS instrument LOADERS + hypermedia/vendor resolver + licence provenance.
2//!
3//! **Qualia ships NO sample content.** This module implements the open, dependency-free
4//! *loaders* and a *resolver* over USER-supplied instrument files (from the user's hypermedia
5//! library or a user/vendor content dir). SFZ is parsed from the open plain-text spec (no
6//! vendored sfizz); SF2/DLS are enumerated from their RIFF headers WITHOUT decoding sample audio.
7//! Each resolved instrument carries a [`LicenceTag`] as provenance so downstream export/share can
8//! fail closed on non-commercial / no-redistribution assets. See the delivery plan Wave M
9//! ("Engine vs content"). Lane AU-MIDI-INSTRUMENT. Re-exports only.
10
11mod dls;
12mod preset;
13mod resolver;
14mod sample_map;
15mod sf2;
16mod sfz;
17
18pub use dls::{read_dls_instruments, DlsCollection, DlsInstrument, MAX_INSTRUMENTS};
19pub use preset::{InstrumentPreset, PresetFormat, SampleSource};
20pub use resolver::{
21 resolve_instrument, resolve_instrument_with, LicenceTag, ResolvedInstrument, ResolvedSample,
22};
23pub use sample_map::region_for;
24pub use sf2::{read_sf2_presets, Sf2Preset, Sf2Presets, MAX_PRESETS};
25pub use sfz::{parse_sfz, SfzInstrument, SfzRegion, MAX_REGIONS};