pub struct Segment {
pub freqs: Vec<f64>,
pub ms: u32,
}Expand description
One stretch of a tone: which frequencies sound, and for how long.
An empty freqs is silence — that is how a cadence’s gap is written.
Fields§
§freqs: Vec<f64>§ms: u32Trait Implementations§
impl StructuralPartialEq for Segment
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin 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