sim_lib_sound_render/lib.rs
1//! Sound rendering for the SIM music constellation.
2//!
3//! This crate turns synthesized [`Tone`](sim_lib_sound_core::Tone)s into
4//! interleaved PCM audio. [`PcmRenderer`] renders single tones and mixes
5//! scheduled tones with per-tone timing and panning, and encodes the result as
6//! 16-bit WAV; [`RendererOptions`] configures the sample rate and channel
7//! count. It also composes the existing STFT and numbers-signal owners for
8//! policy-complete offline phase vocoding, and reports EBU R128 / ITU-R
9//! BS.1770 loudness, true peak, and transparent normalization gain.
10#![forbid(unsafe_code)]
11#![deny(missing_docs)]
12
13mod error;
14mod loudness;
15mod model;
16mod runtime;
17mod vocoder;
18
19pub use error::*;
20pub use loudness::*;
21pub use model::*;
22pub use runtime::*;
23pub use vocoder::*;
24
25/// Cookbook recipes for this lib, embedded at build time.
26pub static RECIPES: sim_cookbook::EmbeddedDir =
27 include!(concat!(env!("OUT_DIR"), "/cookbook_recipes.rs"));
28
29#[cfg(test)]
30mod tests;