Skip to main content

Features

Struct Features 

Source
pub struct Features {
    pub audio: AudioFeatures,
    pub structural: StructFeatures,
    pub vet: VetReport,
    pub lufs_before: f64,
    pub gain_db: f64,
    pub peak_reduction_db: f64,
}
Expand description

Everything the taste model and audition path need for one candidate.

Fields§

§audio: AudioFeatures

Perceptual descriptors of the normalized render.

§structural: StructFeatures

Render-free structural descriptors of the term.

§vet: VetReport

Raw-render measurements from the vet gate.

§lufs_before: f64

Integrated loudness before normalization (LUFS).

§gain_db: f64

Gain applied (dB) — toward TARGET_LUFS, but never past auracle_features::PEAK_CEILING.

§peak_reduction_db: f64

Makeup gain given up so the render would not clip, in dB (≥ 0).

Zero for most patches. Positive means this one auditions below TARGET_LUFS because its crest factor would not let it reach the target without going over full scale — so a surface comparing two candidates’ levels can say which of them was pulled down and by how much, rather than presenting a peak-limited patch as a quiet one.

#[serde(default)] is forward-looking rather than a migration. Features cross the farm as crate::CachedFeatures within a single boot, where the worker’s version stamp guarantees one build on both ends, and nothing persists them across boots today — BankEntry stores trees, so a reloaded pool is re-featurized under whatever normalizer is current. The default matters the moment the persistent render cache lands, and the thing to note there is that a row written before this ceiling carries a gain_db that would clip: normalization changing has to invalidate the cache namespace, not merely default a field.

Implementations§

Source§

impl Features

Source

pub fn phi(&self) -> Vec<f64>

The concatenated feature vector φ(x) = [φ_audio ; φ_struct].

Source

pub fn phi_names() -> Vec<&'static str>

Names for Self::phi entries, in order.

Trait Implementations§

Source§

impl Clone for Features

Source§

fn clone(&self) -> Features

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Features

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Features

Source§

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 Serialize for Features

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,