pub struct AudioConfig {
pub tracks: Vec<AudioTrack>,
pub bpm: Option<f64>,
pub beat_offset: Option<f64>,
pub voices: HashMap<String, Voice>,
pub score: Vec<ScoreEvent>,
pub master: MasterBus,
}Expand description
The object form of AudioValue — file tracks plus, optionally, a
synthesised score (issue #331’s voices/score/master, matching the
issue body’s example verbatim). bpm/beat_offset default to the
scenario’s own Scenario::bpm/Scenario::beat_offset when
absent here — see AudioConfig::as_score’s caller in rustmotion’s
encode crate, which is where that fallback is actually applied (this
crate only carries the override, it does not resolve it: Scenario
alone does not know its own bpm by the time include::resolve_includes
has consumed it — the caller captures both before that happens).
Fields§
§tracks: Vec<AudioTrack>§bpm: Option<f64>Overrides the scenario’s own bpm for this score only. Normally
left absent — sharing the scenario’s real grid (deliverable #1’s
whole point) is the common case, not the exception.
beat_offset: Option<f64>§voices: HashMap<String, Voice>§score: Vec<ScoreEvent>§master: MasterBusImplementations§
Trait Implementations§
Source§impl Clone for AudioConfig
impl Clone for AudioConfig
Source§impl Debug for AudioConfig
impl Debug for AudioConfig
Source§impl Default for AudioConfig
impl Default for AudioConfig
Source§impl<'de> Deserialize<'de> for AudioConfig
impl<'de> Deserialize<'de> for AudioConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for AudioConfig
impl JsonSchema for AudioConfig
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AudioConfig
impl RefUnwindSafe for AudioConfig
impl Send for AudioConfig
impl Sync for AudioConfig
impl Unpin for AudioConfig
impl UnsafeUnpin for AudioConfig
impl UnwindSafe for AudioConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more