pub struct ModulatorMapping<T> {
pub input_range: (f64, f64),
pub output_range: (T, T),
pub clamp_bottom: bool,
pub clamp_top: bool,
}Expand description
A transformation from a modulator’s value to a parameter value.
Fields§
§input_range: (f64, f64)A range of values from a modulator.
output_range: (T, T)The corresponding range of values of the parameter.
clamp_bottom: boolWhether values should be prevented from being less than the bottom of the output range.
clamp_top: boolWhether values should be prevented from being greater than the top of the output range.
Implementations§
Trait Implementations§
Source§impl<T> Clone for ModulatorMapping<T>where
T: Clone,
impl<T> Clone for ModulatorMapping<T>where
T: Clone,
Source§fn clone(&self) -> ModulatorMapping<T>
fn clone(&self) -> ModulatorMapping<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> Debug for ModulatorMapping<T>where
T: Debug,
impl<T> Debug for ModulatorMapping<T>where
T: Debug,
Source§impl Default for ModulatorMapping<PlaybackRate>
impl Default for ModulatorMapping<PlaybackRate>
Source§fn default() -> ModulatorMapping<PlaybackRate>
fn default() -> ModulatorMapping<PlaybackRate>
Returns the “default value” for a type. Read more
Source§impl Default for ModulatorMapping<Volume>
impl Default for ModulatorMapping<Volume>
Source§impl Default for ModulatorMapping<f32>
impl Default for ModulatorMapping<f32>
Source§impl Default for ModulatorMapping<f64>
impl Default for ModulatorMapping<f64>
Source§impl<T> PartialEq for ModulatorMapping<T>where
T: PartialEq,
impl<T> PartialEq for ModulatorMapping<T>where
T: PartialEq,
impl<T> Copy for ModulatorMapping<T>where
T: Copy,
impl<T> StructuralPartialEq for ModulatorMapping<T>
Auto Trait Implementations§
impl<T> Freeze for ModulatorMapping<T>where
T: Freeze,
impl<T> RefUnwindSafe for ModulatorMapping<T>where
T: RefUnwindSafe,
impl<T> Send for ModulatorMapping<T>where
T: Send,
impl<T> Sync for ModulatorMapping<T>where
T: Sync,
impl<T> Unpin for ModulatorMapping<T>where
T: Unpin,
impl<T> UnwindSafe for ModulatorMapping<T>where
T: UnwindSafe,
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,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().