pub struct BarProcessorConfig {
pub amount_bars: NonZero<u16>,
pub freq_range: Range<NonZero<u16>>,
pub interpolation: InterpolationVariant,
pub sensitivity: f32,
pub bar_distribution: BarDistribution,
}Expand description
The config options for crate::BarProcessor.
Fields§
§amount_bars: NonZero<u16>Set the amount of bars which should be created.
freq_range: Range<NonZero<u16>>Set the frequency range which the bar processor should consider.
interpolation: InterpolationVariantDecide how the bar values should be interpolated.
sensitivity: f32Control how fast the bars should adjust to their new height.
Should be within the range [0, 1].
bar_distribution: BarDistributionSet the bar distribution. In general you needn’t use another value than its default.
Trait Implementations§
Source§impl Clone for BarProcessorConfig
impl Clone for BarProcessorConfig
Source§fn clone(&self) -> BarProcessorConfig
fn clone(&self) -> BarProcessorConfig
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 BarProcessorConfig
impl Debug for BarProcessorConfig
Auto Trait Implementations§
impl Freeze for BarProcessorConfig
impl RefUnwindSafe for BarProcessorConfig
impl Send for BarProcessorConfig
impl Sync for BarProcessorConfig
impl Unpin for BarProcessorConfig
impl UnwindSafe for BarProcessorConfig
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> 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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.