pub struct ReaperNormalizedFxParamValue(/* private fields */);Expand description
This represents a particular value of an FX parameter in “REAPER-normalized” form.
Please note that this value is not normalized in the classical sense of being in the unit interval 0.0..=1.0! It can be very well > 1.0 (e.g. the Wet param of ReaPitch). All this type guarantees is that the value is > 0.0.
Implementations§
Source§impl ReaperNormalizedFxParamValue
impl ReaperNormalizedFxParamValue
Sourcepub const MIN: ReaperNormalizedFxParamValue
pub const MIN: ReaperNormalizedFxParamValue
The minimum possible value (0.0).
Sourcepub fn new(value: f64) -> ReaperNormalizedFxParamValue
pub fn new(value: f64) -> ReaperNormalizedFxParamValue
Creates a REAPER-normalized FX parameter value.
§Panics
This function panics if the given value is negative.
Trait Implementations§
Source§impl Clone for ReaperNormalizedFxParamValue
impl Clone for ReaperNormalizedFxParamValue
Source§fn clone(&self) -> ReaperNormalizedFxParamValue
fn clone(&self) -> ReaperNormalizedFxParamValue
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 Debug for ReaperNormalizedFxParamValue
impl Debug for ReaperNormalizedFxParamValue
Source§impl Default for ReaperNormalizedFxParamValue
impl Default for ReaperNormalizedFxParamValue
Source§fn default() -> ReaperNormalizedFxParamValue
fn default() -> ReaperNormalizedFxParamValue
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReaperNormalizedFxParamValue
impl PartialEq for ReaperNormalizedFxParamValue
Source§fn eq(&self, other: &ReaperNormalizedFxParamValue) -> bool
fn eq(&self, other: &ReaperNormalizedFxParamValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ReaperNormalizedFxParamValue
impl PartialOrd for ReaperNormalizedFxParamValue
impl Copy for ReaperNormalizedFxParamValue
impl StructuralPartialEq for ReaperNormalizedFxParamValue
Auto Trait Implementations§
impl Freeze for ReaperNormalizedFxParamValue
impl RefUnwindSafe for ReaperNormalizedFxParamValue
impl Send for ReaperNormalizedFxParamValue
impl Sync for ReaperNormalizedFxParamValue
impl Unpin for ReaperNormalizedFxParamValue
impl UnwindSafe for ReaperNormalizedFxParamValue
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