#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Equalizer<const N: usize>(pub [f32; N]);
impl<const N: usize> Default for Equalizer<N> {
fn default() -> Self {
Self([0.0; N])
}
}
impl<const N: usize> std::ops::Deref for Equalizer<N> {
type Target = [f32; N];
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl<const N: usize> std::ops::DerefMut for Equalizer<N> {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}