pub struct Tape {
pub strength: f32,
pub direction: Direction,
pub split: Option<f32>,
pub echo: Option<f32>,
pub wash: Option<f32>,
pub smear: Option<f32>,
pub grain: Option<f32>,
pub bands: Option<f32>,
}Fields§
§strength: f32§direction: Direction§split: Option<f32>§echo: Option<f32>§wash: Option<f32>§smear: Option<f32>§grain: Option<f32>§bands: Option<f32>Implementations§
Source§impl Tape
impl Tape
pub const OFF: Self
pub const fn new(strength: f32, direction: Direction) -> Self
pub const fn forward(strength: f32) -> Self
pub const fn rewind(strength: f32) -> Self
pub fn strength(&self) -> f32
pub fn is_off(&self) -> bool
pub fn amounts(&self) -> Amounts
pub fn params(&self) -> [f32; 16]
pub fn split_pixels(&self, width: u32) -> [f32; 2]
pub fn echo_pixels(&self, width: u32) -> [f32; 2]
pub fn band_centres(&self, time: f32, seed: u32) -> [f32; 3]
pub fn envelope(&self, y: f32, time: f32, seed: u32) -> f32
Trait Implementations§
impl Copy for Tape
impl StructuralPartialEq for Tape
Auto Trait Implementations§
impl Freeze for Tape
impl RefUnwindSafe for Tape
impl Send for Tape
impl Sync for Tape
impl Unpin for Tape
impl UnsafeUnpin for Tape
impl UnwindSafe for Tape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.