pub struct LayerStats {
pub id: String,
pub peak_dbfs: f32,
pub rms_dbfs: f32,
pub energy_pct: f32,
pub mute: bool,
}Expand description
Post-fader, pre-master snapshot of one layer’s contribution to the stereo bus — the balance numbers an agent mixes by. “Pre-master” matters: a master compressor / reverb reshapes the bus AFTER these are measured. Energy and peak are measured per channel (pan-invariant: hard-panned and centered layers of equal power read equal).
Fields§
§id: StringThe layer’s stable id.
peak_dbfs: f32Peak of the layer’s loudest bus channel in dBFS (−180 ⇒ silent/muted).
rms_dbfs: f32RMS of the layer’s bus contribution over the WHOLE document timeline
(per-channel energy, both channels), dBFS — comparable across layers
regardless of their at placement.
energy_pct: f32Share of the summed pre-master layer energy, 0..100.
mute: boolTrue when the layer is muted (it contributes nothing).
Trait Implementations§
Source§impl Clone for LayerStats
impl Clone for LayerStats
Source§fn clone(&self) -> LayerStats
fn clone(&self) -> LayerStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LayerStats
impl Debug for LayerStats
Source§impl<'de> Deserialize<'de> for LayerStats
impl<'de> Deserialize<'de> for LayerStats
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for LayerStats
impl JsonSchema for LayerStats
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for LayerStats
impl PartialEq for LayerStats
Source§impl Serialize for LayerStats
impl Serialize for LayerStats
impl StructuralPartialEq for LayerStats
Auto Trait Implementations§
impl Freeze for LayerStats
impl RefUnwindSafe for LayerStats
impl Send for LayerStats
impl Sync for LayerStats
impl Unpin for LayerStats
impl UnsafeUnpin for LayerStats
impl UnwindSafe for LayerStats
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
Mutably borrows from an owned value. Read more