[−][src]Struct loopers_engine::sample::Sample
Fields
buffer: [Vec<f32>; 2]Implementations
impl Sample[src]
pub fn new() -> Sample[src]
pub fn with_size(len: usize) -> Sample[src]
pub fn from_mono(buffer: &[f32]) -> Sample[src]
pub fn length(&self) -> u64[src]
pub fn record(&mut self, data: &[&[f32]])[src]
pub fn overdub(&mut self, time_in_samples: u64, data: &[&[f32]])[src]
pub fn replace(&mut self, time_in_samples: u64, data: &[&[f32]])[src]
pub fn clear(&mut self)[src]
pub fn xfade(
&mut self,
xfade_size: usize,
start_time_in_fade: u64,
time_in_samples: u64,
data: &[&[f32]],
direction: XfadeDirection,
f: fn(_: f32) -> f32
)[src]
&mut self,
xfade_size: usize,
start_time_in_fade: u64,
time_in_samples: u64,
data: &[&[f32]],
direction: XfadeDirection,
f: fn(_: f32) -> f32
)
Performs a crossfade with the existing buffer using the given function The fade direction refers to the given sample -- i.e., a fade in starts with 100% of the existing sample, and ends at 100% of the new sample.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnwindSafe for Sample
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[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.
pub 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>,