pub struct Frequencies;Expand description
weirdnet.frequencies: a biquad filter (RBJ cookbook, from weirdnet-dsp) on every channel.
| Parameter | Range | Default |
|---|---|---|
type | peak, low, high or band (peaking EQ, low-pass, high-pass, band-pass) | peak |
cutoff_hz | 20 to 20000 Hz | 1000 |
q | 0.1 to 18 | 0.7071 |
gain_db | -24 to +24 dB, peak only | 0 |
A cutoff at or above half the waveform’s sample rate is PluginError::InvalidParam: it is a different error from an out-of-range value
because the limit depends on the audio. A peaking filter with zero gain is an identity and returns the input’s samples unchanged.
The filter starts from rest and output has the input’s length, so a high-Q filter’s ring is cut off at the end of the sound.
Trait Implementations§
Source§impl Plugin for Frequencies
impl Plugin for Frequencies
Source§fn id(&self) -> &'static str
fn id(&self) -> &'static str
The stable id, for example
"weirdnet.gain". Saved in projects, so it never changes.Source§fn process(
&self,
input: &Waveform,
values: &ParamValues,
) -> Result<Waveform, PluginError>
fn process( &self, input: &Waveform, values: &ParamValues, ) -> Result<Waveform, PluginError>
Processes
input. values are already resolved against Plugin::params: complete, typed and in range.
Returns a new waveform (which may share the input’s samples when nothing changed) or an error.Auto Trait Implementations§
impl Forget for Frequencies
impl Freeze for Frequencies
impl Move for Frequencies
impl RefUnwindSafe for Frequencies
impl Send for Frequencies
impl Sync for Frequencies
impl Unpin for Frequencies
impl UnsafeUnpin for Frequencies
impl UnwindSafe for Frequencies
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