pub struct Wrap {
pub scale: (i128, i128),
pub shift: (i128, i128),
pub gain: (i128, i128),
pub inner: [(i128, i128); 2],
pub period: (i128, i128),
}Expand description
scale*t + shift + gain*((inner_scale*t + inner_shift) mod period) at sample n’s
instant, each a rational (num, den) with den > 0 and period > 0. The remainder and
the sum are integers over one denominator, so which side of a jump an instant falls on is
decided exactly and only the quotient that states the sum rounds.
Fields§
§scale: (i128, i128)§shift: (i128, i128)§gain: (i128, i128)§inner: [(i128, i128); 2]§period: (i128, i128)Implementations§
Trait Implementations§
impl Copy for Wrap
impl Eq for Wrap
impl StructuralPartialEq for Wrap
Auto Trait Implementations§
impl Freeze for Wrap
impl RefUnwindSafe for Wrap
impl Send for Wrap
impl Sync for Wrap
impl Unpin for Wrap
impl UnsafeUnpin for Wrap
impl UnwindSafe for Wrap
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