pub enum FloatValue {
F32(f32),
Percentage(MultipliedCurve<RangePercentage>),
Degrees(MultipliedCurve<RangeDegrees>),
}Variants§
Implementations§
Source§impl FloatValue
impl FloatValue
pub fn percentage(&mut self) -> &mut MultipliedCurve<RangePercentage>
pub fn degrees(&mut self) -> &mut MultipliedCurve<RangeDegrees>
Sourcepub fn normalized_value(
&self,
beat_progression: f32,
collection: &Collections,
sound_data: &dyn SoundLevels,
) -> f32
pub fn normalized_value( &self, beat_progression: f32, collection: &Collections, sound_data: &dyn SoundLevels, ) -> f32
The value as a share of its range: degrees over a full turn, the others as they are.
Sourcepub fn multiplier(&self) -> f32
pub fn multiplier(&self) -> f32
The setting’s own value: the number of a plain value, the multiplier of a curve. A controller’s fader sets and shows this.
Sourcepub fn set_multiplier(&mut self, multiplier: f32)
pub fn set_multiplier(&mut self, multiplier: f32)
Sets what multiplier returns, keeping a curve and its sound trigger.
Trait Implementations§
Source§impl Clone for FloatValue
impl Clone for FloatValue
Source§impl CollectSoundTriggers for FloatValue
impl CollectSoundTriggers for FloatValue
Source§fn collect_sound_triggers(&self, triggers: &mut SoundTriggerSet)
fn collect_sound_triggers(&self, triggers: &mut SoundTriggerSet)
Adds the triggers of
self to triggers. When two triggers share an
id, the first one wins; copies of a value share their trigger.Source§impl Debug for FloatValue
impl Debug for FloatValue
Source§impl Default for FloatValue
impl Default for FloatValue
Source§impl<'de> Deserialize<'de> for FloatValue
impl<'de> Deserialize<'de> for FloatValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FloatValue
Source§impl PartialEq for FloatValue
impl PartialEq for FloatValue
Source§impl Serialize for FloatValue
impl Serialize for FloatValue
impl StructuralPartialEq for FloatValue
Auto Trait Implementations§
impl Freeze for FloatValue
impl RefUnwindSafe for FloatValue
impl Send for FloatValue
impl Sync for FloatValue
impl Unpin for FloatValue
impl UnsafeUnpin for FloatValue
impl UnwindSafe for FloatValue
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> DebugAny for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 more