pub struct EQ {
pub bands: Vec<(EqBand, Active)>,
pub min_gain: Gain,
pub max_gain: Gain,
pub min_frequency: Frequency,
pub max_frequency: Frequency,
pub min_q: Q,
pub max_q: Q,
pub active: Active,
}Fields§
§bands: Vec<(EqBand, Active)>§min_gain: Gain§max_gain: Gain§min_frequency: Frequency§max_frequency: Frequency§min_q: Q§max_q: Q§active: ActiveImplementations§
Source§impl EQ
impl EQ
pub fn new( bands: Vec<(EqBand, Active)>, min_gain: f64, max_gain: f64, min_frequency: f64, max_frequency: f64, min_q: f64, max_q: f64, active: Active, ) -> EQ
pub fn plot(&self, width: f64, height: f64, invert_y: bool) -> EqGraph
pub fn calc_major_frequency_grid_markers(&self, width: f64) -> Vec<X> ⓘ
pub fn calc_minor_frequency_grid_markers(&self, width: f64) -> Vec<X> ⓘ
pub fn update(&mut self, index: usize, change: Parameter)
pub fn x_to_frequency_converter( &self, width: f64, ) -> (LinearScale<f64>, LogarithmicScale<f64>)
pub fn y_to_gain_converter( &self, height: f64, inverted: bool, ) -> (LinearScale<f64>, LinearScale<f64>)
pub fn q_to_radius_converter( &self, width: f64, ) -> (LogarithmicScale<f64>, LogarithmicScale<f64>)
Trait Implementations§
impl StructuralPartialEq for EQ
Auto Trait Implementations§
impl Freeze for EQ
impl RefUnwindSafe for EQ
impl Send for EQ
impl Sync for EQ
impl Unpin for EQ
impl UnwindSafe for EQ
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