[−][src]Struct dasp::interpolate::linear::Linear
Interpolator that interpolates linearly between the previous value and the next value
Required Features
- When using
dasp_interpolate
, this item requires the linear feature to be enabled. - When using
dasp
, this item requires the interpolate-linear feature to be enabled.
Implementations
impl<F> Linear<F>
[src]
pub fn new(left: F, right: F) -> Linear<F>
[src]
Create a new Linear Interpolator, where left
and right
are the first two frames to be
interpolated.
Required Features
- When using
dasp_interpolate
, this item requires the linear feature to be enabled. - When using
dasp
, this item requires the interpolate-linear feature to be enabled.
Trait Implementations
impl<F> Interpolator for Linear<F> where
F: Frame,
<F as Frame>::Sample: Duplex<f64>,
[src]
F: Frame,
<F as Frame>::Sample: Duplex<f64>,
type Frame = F
The type of frame over which the interpolate may operate.
fn interpolate(&self, x: f64) -> <Linear<F> as Interpolator>::Frame
[src]
Converts linearly from the previous value, using the next value to interpolate. It is possible, although not advisable, to provide an x > 1.0 or < 0.0, but this will just continue to be a linear ramp in one direction or another.
fn next_source_frame(
&mut self,
source_frame: <Linear<F> as Interpolator>::Frame
)
[src]
&mut self,
source_frame: <Linear<F> as Interpolator>::Frame
)
Auto Trait Implementations
impl<F> RefUnwindSafe for Linear<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for Linear<F> where
F: Send,
F: Send,
impl<F> Sync for Linear<F> where
F: Sync,
F: Sync,
impl<F> Unpin for Linear<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for Linear<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
[src]
T: FromSample<S> + ToSample<S>,
impl<T> From<T> for T
[src]
impl<S> FromSample<S> for S
[src]
fn from_sample_(s: S) -> S
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
[src]
U: FromSample<T>,
fn to_sample_(self) -> U
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,