pub struct Segment {
pub start: f64,
pub duration: f64,
pub confidence: f64,
pub loudness_start: f64,
pub loudness_max: f64,
pub loudness_max_time: f64,
pub loudness_end: f64,
pub pitches: Vec<f64>,
pub timbre: Vec<f64>,
}
Expand description
Struct representing segments in a track for audio analysis Segment: Each segment contains a roughly consistent sound throughout its duration.
Fields§
§start: f64
§duration: f64
§confidence: f64
§loudness_start: f64
§loudness_max: f64
§loudness_max_time: f64
§loudness_end: f64
§pitches: Vec<f64>
The offset loudness of the segment in decibels (dB). This value should be equal to loudness_start
of the next segment
timbre: Vec<f64>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnwindSafe for Segment
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