$ bash code/build.sh warning: struct `Df1State` is never constructed --> code/eq.rs:28:12 | 28 | pub struct Df1State { pub input: [f64; 2], pub output: [f64; 2] } | ^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: struct `Df1` is never constructed --> code/eq.rs:30:12 | 30 | pub struct Df1 { pub state: Df1State, pub coefficients: Coefficients } | ^^^ warning: associated items `new`, `set_parameters`, and `process_sample` are never used --> code/eq.rs:32:12 | 31 | impl Df1 { | -------- associated items in this implementation 32 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Df1State::default(), coefficients: Coefficients::rbj(p, rate) } } | ^^^ 33 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ 34 | #[inline] pub fn process_sample(&mut self, x: f64) -> f64 { | ^^^^^^^^^^^^^^ warning: struct `Tdf2State` is never constructed --> code/eq.rs:43:12 | 43 | pub struct Tdf2State { pub delays: [f64; 2] } | ^^^^^^^^^ warning: struct `Tdf2` is never constructed --> code/eq.rs:45:12 | 45 | pub struct Tdf2 { pub state: Tdf2State, pub coefficients: Coefficients } | ^^^^ warning: associated items `new`, `set_parameters`, and `process_sample` are never used --> code/eq.rs:47:12 | 46 | impl Tdf2 { | --------- associated items in this implementation 47 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Tdf2State::default(), coefficients: Coefficients::rbj(p, rate) } } | ^^^ 48 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ 49 | #[inline] pub fn process_sample(&mut self, x: f64) -> f64 { | ^^^^^^^^^^^^^^ warning: struct `SvfState` is never constructed --> code/eq.rs:73:12 | 73 | pub struct SvfState { pub integrators: [f64; 2] } | ^^^^^^^^ warning: struct `Svf` is never constructed --> code/eq.rs:75:12 | 75 | pub struct Svf { pub state: SvfState, pub coefficients: SvfCoefficients } | ^^^ warning: associated items `new`, `set_parameters`, and `process_sample` are never used --> code/eq.rs:77:12 | 76 | impl Svf { | -------- associated items in this implementation 77 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: SvfState::default(), coefficients: SvfCoefficients::new(p,rate) } } | ^^^ 78 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = SvfCoefficients::new(p,rate); } | ^^^^^^^^^^^^^^ 79 | #[inline] pub fn process_sample(&mut self, x: f64) -> f64 { | ^^^^^^^^^^^^^^ warning: 9 warnings emitted warning: struct `Df1State` is never constructed --> code/eq.rs:28:12 | 28 | pub struct Df1State { pub input: [f64; 2], pub output: [f64; 2] } | ^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: struct `Df1` is never constructed --> code/eq.rs:30:12 | 30 | pub struct Df1 { pub state: Df1State, pub coefficients: Coefficients } | ^^^ warning: associated items `new`, `set_parameters`, and `process_sample` are never used --> code/eq.rs:32:12 | 31 | impl Df1 { | -------- associated items in this implementation 32 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Df1State::default(), coefficients: Coefficients::rbj(p, rate) } } | ^^^ 33 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ 34 | #[inline] pub fn process_sample(&mut self, x: f64) -> f64 { | ^^^^^^^^^^^^^^ warning: struct `Tdf2State` is never constructed --> code/eq.rs:43:12 | 43 | pub struct Tdf2State { pub delays: [f64; 2] } | ^^^^^^^^^ warning: struct `Tdf2` is never constructed --> code/eq.rs:45:12 | 45 | pub struct Tdf2 { pub state: Tdf2State, pub coefficients: Coefficients } | ^^^^ warning: associated items `new`, `set_parameters`, and `process_sample` are never used --> code/eq.rs:47:12 | 46 | impl Tdf2 { | --------- associated items in this implementation 47 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Tdf2State::default(), coefficients: Coefficients::rbj(p, rate) } } | ^^^ 48 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ 49 | #[inline] pub fn process_sample(&mut self, x: f64) -> f64 { | ^^^^^^^^^^^^^^ warning: struct `SvfState` is never constructed --> code/eq.rs:73:12 | 73 | pub struct SvfState { pub integrators: [f64; 2] } | ^^^^^^^^ warning: struct `Svf` is never constructed --> code/eq.rs:75:12 | 75 | pub struct Svf { pub state: SvfState, pub coefficients: SvfCoefficients } | ^^^ warning: associated items `new`, `set_parameters`, and `process_sample` are never used --> code/eq.rs:77:12 | 76 | impl Svf { | -------- associated items in this implementation 77 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: SvfState::default(), coefficients: SvfCoefficients::new(p,rate) } } | ^^^ 78 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = SvfCoefficients::new(p,rate); } | ^^^^^^^^^^^^^^ 79 | #[inline] pub fn process_sample(&mut self, x: f64) -> f64 { | ^^^^^^^^^^^^^^ warning: 9 warnings emitted warning: enum `Kind` is never used --> code/eq.rs:5:10 | 5 | pub enum Kind { Bell, LowShelf, HighShelf } | ^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: struct `Parameters` is never constructed --> code/eq.rs:7:12 | 7 | pub struct Parameters { pub kind: Kind, pub frequency: f64, pub gain_db: f64, pub q: f64 } | ^^^^^^^^^^ warning: associated function `rbj` is never used --> code/eq.rs:11:12 | 10 | impl Coefficients { | ----------------- associated function in this implementation 11 | pub fn rbj(p: Parameters, rate: f64) -> Self { | ^^^ warning: struct `Df1State` is never constructed --> code/eq.rs:28:12 | 28 | pub struct Df1State { pub input: [f64; 2], pub output: [f64; 2] } | ^^^^^^^^ warning: struct `Df1` is never constructed --> code/eq.rs:30:12 | 30 | pub struct Df1 { pub state: Df1State, pub coefficients: Coefficients } | ^^^ warning: associated items `new`, `set_parameters`, and `process_sample` are never used --> code/eq.rs:32:12 | 31 | impl Df1 { | -------- associated items in this implementation 32 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Df1State::default(), coefficients: Coefficients::rbj(p, rate) } } | ^^^ 33 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ 34 | #[inline] pub fn process_sample(&mut self, x: f64) -> f64 { | ^^^^^^^^^^^^^^ warning: struct `Tdf2State` is never constructed --> code/eq.rs:43:12 | 43 | pub struct Tdf2State { pub delays: [f64; 2] } | ^^^^^^^^^ warning: struct `Tdf2` is never constructed --> code/eq.rs:45:12 | 45 | pub struct Tdf2 { pub state: Tdf2State, pub coefficients: Coefficients } | ^^^^ warning: associated items `new`, `set_parameters`, and `process_sample` are never used --> code/eq.rs:47:12 | 46 | impl Tdf2 { | --------- associated items in this implementation 47 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Tdf2State::default(), coefficients: Coefficients::rbj(p, rate) } } | ^^^ 48 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ 49 | #[inline] pub fn process_sample(&mut self, x: f64) -> f64 { | ^^^^^^^^^^^^^^ warning: struct `SvfCoefficients` is never constructed --> code/eq.rs:57:12 | 57 | pub struct SvfCoefficients { pub a1: f64, pub a2: f64, pub a3: f64, pub mix: [f64; 3] } | ^^^^^^^^^^^^^^^ warning: associated function `new` is never used --> code/eq.rs:59:12 | 58 | impl SvfCoefficients { | -------------------- associated function in this implementation 59 | pub fn new(p: Parameters, rate: f64) -> Self { | ^^^ warning: struct `SvfState` is never constructed --> code/eq.rs:73:12 | 73 | pub struct SvfState { pub integrators: [f64; 2] } | ^^^^^^^^ warning: struct `Svf` is never constructed --> code/eq.rs:75:12 | 75 | pub struct Svf { pub state: SvfState, pub coefficients: SvfCoefficients } | ^^^ warning: associated items `new`, `set_parameters`, and `process_sample` are never used --> code/eq.rs:77:12 | 76 | impl Svf { | -------- associated items in this implementation 77 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: SvfState::default(), coefficients: SvfCoefficients::new(p,rate) } } | ^^^ 78 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = SvfCoefficients::new(p,rate); } | ^^^^^^^^^^^^^^ 79 | #[inline] pub fn process_sample(&mut self, x: f64) -> f64 { | ^^^^^^^^^^^^^^ warning: 14 warnings emitted warning: method `set_parameters` is never used --> code/eq.rs:33:12 | 31 | impl Df1 { | -------- method in this implementation 32 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Df1State::default(), coefficients: Coefficients::rbj(p, rate) } } 33 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: method `set_parameters` is never used --> code/eq.rs:48:12 | 46 | impl Tdf2 { | --------- method in this implementation 47 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Tdf2State::default(), coefficients: Coefficients::rbj(p, rate) } } 48 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ warning: method `set_parameters` is never used --> code/eq.rs:78:12 | 76 | impl Svf { | -------- method in this implementation 77 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: SvfState::default(), coefficients: SvfCoefficients::new(p,rate) } } 78 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = SvfCoefficients::new(p,rate); } | ^^^^^^^^^^^^^^ warning: method `process_sample` is never used --> code/phaser.rs:36:22 | 17 | impl Phaser { | ----------- method in this implementation ... 36 | #[inline] pub fn process_sample(&mut self,x:f64)->f64 { | ^^^^^^^^^^^^^^ warning: 4 warnings emitted warning: trait `EqFilter` is never used --> code/bench_fir.rs:8:7 | 8 | trait EqFilter:Clone {type C:Copy;fn new(p:eq::Parameters,rate:f64)->Self;fn coefficients(p:eq::Parameters,rate:f64)->Self::C;fn set(... | ^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: struct `EqBank` is never constructed --> code/bench_fir.rs:11:8 | 11 | struct EqBank<'a,F:EqFilter>{filters:Vec<[F;2]>,control:&'a[eq::Parameters],rate:f64,update:usize} | ^^^^^^ warning: function `tone_parameters` is never used --> code/bench_fir.rs:12:4 | 12 | fn tone_parameters(bands:usize)->Vec{use eq::{Kind::*,Parameters as P};let p=[P{kind:LowShelf,frequency:120.,gain_db... | ^^^^^^^^^^^^^^^ warning: associated function `new` is never used --> code/bench_fir.rs:13:37 | 13 | impl<'a,F:EqFilter> EqBank<'a,F>{fn new(bands:usize,rate:f64,control:&'a[eq::Parameters],update:usize)->Self{let filters=tone_parame... | -------------------------------- ^^^ | | | associated function in this implementation warning: struct `PhaserPair` is never constructed --> code/bench_fir.rs:18:8 | 18 | struct PhaserPair<'a,const M:usize>{channels:[phaser::Phaser;2],control:&'a[[f64;2]],rate:f64,update:usize} | ^^^^^^^^^^ warning: associated function `new` is never used --> code/bench_fir.rs:19:44 | 19 | impl<'a,const M:usize> PhaserPair<'a,M>{fn new(stages:usize,feedback:f64,rate:f64,control:&'a[[f64;2]],update:usize)->Self{let metho... | --------------------------------------- ^^^ | | | associated function in this implementation warning: enum `Kind` is never used --> code/eq.rs:5:10 | 5 | pub enum Kind { Bell, LowShelf, HighShelf } | ^^^^ warning: struct `Parameters` is never constructed --> code/eq.rs:7:12 | 7 | pub struct Parameters { pub kind: Kind, pub frequency: f64, pub gain_db: f64, pub q: f64 } | ^^^^^^^^^^ warning: struct `Coefficients` is never constructed --> code/eq.rs:9:12 | 9 | pub struct Coefficients { pub b: [f64; 3], pub a: [f64; 2] } | ^^^^^^^^^^^^ warning: associated function `rbj` is never used --> code/eq.rs:11:12 | 10 | impl Coefficients { | ----------------- associated function in this implementation 11 | pub fn rbj(p: Parameters, rate: f64) -> Self { | ^^^ warning: struct `Df1State` is never constructed --> code/eq.rs:28:12 | 28 | pub struct Df1State { pub input: [f64; 2], pub output: [f64; 2] } | ^^^^^^^^ warning: struct `Df1` is never constructed --> code/eq.rs:30:12 | 30 | pub struct Df1 { pub state: Df1State, pub coefficients: Coefficients } | ^^^ warning: associated items `new`, `set_parameters`, and `process_sample` are never used --> code/eq.rs:32:12 | 31 | impl Df1 { | -------- associated items in this implementation 32 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Df1State::default(), coefficients: Coefficients::rbj(p, rate) } } | ^^^ 33 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ 34 | #[inline] pub fn process_sample(&mut self, x: f64) -> f64 { | ^^^^^^^^^^^^^^ warning: struct `Tdf2State` is never constructed --> code/eq.rs:43:12 | 43 | pub struct Tdf2State { pub delays: [f64; 2] } | ^^^^^^^^^ warning: struct `Tdf2` is never constructed --> code/eq.rs:45:12 | 45 | pub struct Tdf2 { pub state: Tdf2State, pub coefficients: Coefficients } | ^^^^ warning: associated items `new`, `set_parameters`, and `process_sample` are never used --> code/eq.rs:47:12 | 46 | impl Tdf2 { | --------- associated items in this implementation 47 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Tdf2State::default(), coefficients: Coefficients::rbj(p, rate) } } | ^^^ 48 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ 49 | #[inline] pub fn process_sample(&mut self, x: f64) -> f64 { | ^^^^^^^^^^^^^^ warning: struct `SvfCoefficients` is never constructed --> code/eq.rs:57:12 | 57 | pub struct SvfCoefficients { pub a1: f64, pub a2: f64, pub a3: f64, pub mix: [f64; 3] } | ^^^^^^^^^^^^^^^ warning: associated function `new` is never used --> code/eq.rs:59:12 | 58 | impl SvfCoefficients { | -------------------- associated function in this implementation 59 | pub fn new(p: Parameters, rate: f64) -> Self { | ^^^ warning: struct `SvfState` is never constructed --> code/eq.rs:73:12 | 73 | pub struct SvfState { pub integrators: [f64; 2] } | ^^^^^^^^ warning: struct `Svf` is never constructed --> code/eq.rs:75:12 | 75 | pub struct Svf { pub state: SvfState, pub coefficients: SvfCoefficients } | ^^^ warning: associated items `new`, `set_parameters`, and `process_sample` are never used --> code/eq.rs:77:12 | 76 | impl Svf { | -------- associated items in this implementation 77 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: SvfState::default(), coefficients: SvfCoefficients::new(p,rate) } } | ^^^ 78 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = SvfCoefficients::new(p,rate); } | ^^^^^^^^^^^^^^ 79 | #[inline] pub fn process_sample(&mut self, x: f64) -> f64 { | ^^^^^^^^^^^^^^ warning: enum `Method` is never used --> code/phaser.rs:6:10 | 6 | pub enum Method { Direct, Transposed, Tpt, Lattice, SecondOrder } | ^^^^^^ warning: struct `Parameters` is never constructed --> code/phaser.rs:8:12 | 8 | pub struct Parameters { pub center_hz:f64, pub spread_octaves:f64, pub stages:usize, pub q:f64, pub feedback:f64, pub mix:f64 } | ^^^^^^^^^^ warning: struct `StageState` is never constructed --> code/phaser.rs:10:12 | 10 | pub struct StageState { pub delay:[f64;2] } | ^^^^^^^^^^ warning: struct `StageCoefficients` is never constructed --> code/phaser.rs:12:12 | 12 | pub struct StageCoefficients { pub a:f64, pub b:f64 } | ^^^^^^^^^^^^^^^^^ warning: struct `PhaserState` is never constructed --> code/phaser.rs:14:12 | 14 | pub struct PhaserState { pub stages:[StageState;12], pub previous_wet:f64 } | ^^^^^^^^^^^ warning: struct `Phaser` is never constructed --> code/phaser.rs:16:12 | 16 | pub struct Phaser { pub state:PhaserState, pub coefficients:[StageCoefficients;12], pub method:Method, pub parameters:Parameters } | ^^^^^^ warning: associated items `new`, `set_parameters`, `process_sample`, `process_sample_method`, `process_zero_delay_sample`, and `process_wet_sample` are never used --> code/phaser.rs:18:12 | 17 | impl Phaser { | ----------- associated items in this implementation 18 | pub fn new(method:Method,p:Parameters,rate:f64)->Self { | ^^^ ... 21 | pub fn set_parameters(&mut self,p:Parameters,rate:f64) { | ^^^^^^^^^^^^^^ ... 36 | #[inline] pub fn process_sample(&mut self,x:f64)->f64 { | ^^^^^^^^^^^^^^ ... 45 | #[inline] pub fn process_sample_method(&mut self,x:f64)->f64 { | ^^^^^^^^^^^^^^^^^^^^^ ... 50 | #[inline] pub fn process_zero_delay_sample(&mut self,x:f64)->f64 { | ^^^^^^^^^^^^^^^^^^^^^^^^^ ... 66 | #[inline] fn process_wet_sample(&mut self,input:f64)->f64 { | ^^^^^^^^^^^^^^^^^^ warning: methods `process_samples` and `reset` are never used --> code/convolution_half.rs:32:12 | 25 | impl Direct{ | ----------- methods in this implementation ... 32 | pub fn process_samples(&mut self,input:&[[f64;2]],output:&mut[[f64;2]]){for(x,y)in input.iter().zip(output){*y=self.process_samp... | ^^^^^^^^^^^^^^^ 33 | pub fn reset(&mut self){self.state.history.fill([0.;2]);self.state.cursor=0;} | ^^^^^ warning: method `reset` is never used --> code/convolution_half.rs:60:12 | 38 | impl Partitioned{ | ---------------- method in this implementation ... 60 | pub fn reset(&mut self){for h in &mut self.state.history{h.fill(Complex::default());}self.state.input.fill([0.;2]);self.state.ou... | ^^^^^ warning: method `reset` is never used --> code/convolution_half.rs:68:12 | 65 | impl Hybrid{ | ----------- method in this implementation ... 68 | pub fn reset(&mut self){self.head.reset();self.tail.reset();} | ^^^^^ warning: method `reset` is never used --> code/convolution_half.rs:81:12 | 78 | impl HybridTwoLevel{ | ------------------- method in this implementation ... 81 | pub fn reset(&mut self){self.head.reset();self.middle.reset();self.tail.reset();} | ^^^^^ warning: 32 warnings emitted warning: method `set_parameters` is never used --> code/eq.rs:33:12 | 31 | impl Df1 { | -------- method in this implementation 32 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Df1State::default(), coefficients: Coefficients::rbj(p, rate) } } 33 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: method `set_parameters` is never used --> code/eq.rs:48:12 | 46 | impl Tdf2 { | --------- method in this implementation 47 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Tdf2State::default(), coefficients: Coefficients::rbj(p, rate) } } 48 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ warning: method `set_parameters` is never used --> code/eq.rs:78:12 | 76 | impl Svf { | -------- method in this implementation 77 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: SvfState::default(), coefficients: SvfCoefficients::new(p,rate) } } 78 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = SvfCoefficients::new(p,rate); } | ^^^^^^^^^^^^^^ warning: method `process_sample` is never used --> code/phaser.rs:36:22 | 17 | impl Phaser { | ----------- method in this implementation ... 36 | #[inline] pub fn process_sample(&mut self,x:f64)->f64 { | ^^^^^^^^^^^^^^ warning: 4 warnings emitted warning: method `set_parameters` is never used --> code/eq.rs:33:12 | 31 | impl Df1 { | -------- method in this implementation 32 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Df1State::default(), coefficients: Coefficients::rbj(p, rate) } } 33 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: method `set_parameters` is never used --> code/eq.rs:48:12 | 46 | impl Tdf2 { | --------- method in this implementation 47 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Tdf2State::default(), coefficients: Coefficients::rbj(p, rate) } } 48 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ warning: method `set_parameters` is never used --> code/eq.rs:78:12 | 76 | impl Svf { | -------- method in this implementation 77 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: SvfState::default(), coefficients: SvfCoefficients::new(p,rate) } } 78 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = SvfCoefficients::new(p,rate); } | ^^^^^^^^^^^^^^ warning: variant `SecondOrder` is never constructed --> code/phaser.rs:6:53 | 6 | pub enum Method { Direct, Transposed, Tpt, Lattice, SecondOrder } | ------ variant in this enum ^^^^^^^^^^^ | = note: `Method` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis warning: method `process_zero_delay_sample` is never used --> code/phaser.rs:50:22 | 17 | impl Phaser { | ----------- method in this implementation ... 50 | #[inline] pub fn process_zero_delay_sample(&mut self,x:f64)->f64 { | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: 5 warnings emitted warning: method `set_parameters` is never used --> code/eq.rs:33:12 | 31 | impl Df1 { | -------- method in this implementation 32 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Df1State::default(), coefficients: Coefficients::rbj(p, rate) } } 33 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: method `set_parameters` is never used --> code/eq.rs:48:12 | 46 | impl Tdf2 { | --------- method in this implementation 47 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Tdf2State::default(), coefficients: Coefficients::rbj(p, rate) } } 48 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ warning: method `set_parameters` is never used --> code/eq.rs:78:12 | 76 | impl Svf { | -------- method in this implementation 77 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: SvfState::default(), coefficients: SvfCoefficients::new(p,rate) } } 78 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = SvfCoefficients::new(p,rate); } | ^^^^^^^^^^^^^^ warning: method `process_zero_delay_sample` is never used --> code/phaser.rs:50:22 | 17 | impl Phaser { | ----------- method in this implementation ... 50 | #[inline] pub fn process_zero_delay_sample(&mut self,x:f64)->f64 { | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: 4 warnings emitted warning: trait `EqFilter` is never used --> code/bench_fir.rs:8:7 | 8 | trait EqFilter:Clone {type C:Copy;fn new(p:eq::Parameters,rate:f64)->Self;fn coefficients(p:eq::Parameters,rate:f64)->Self::C;fn set(... | ^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: struct `EqBank` is never constructed --> code/bench_fir.rs:11:8 | 11 | struct EqBank<'a,F:EqFilter>{filters:Vec<[F;2]>,control:&'a[eq::Parameters],rate:f64,update:usize} | ^^^^^^ warning: function `tone_parameters` is never used --> code/bench_fir.rs:12:4 | 12 | fn tone_parameters(bands:usize)->Vec{use eq::{Kind::*,Parameters as P};let p=[P{kind:LowShelf,frequency:120.,gain_db... | ^^^^^^^^^^^^^^^ warning: associated function `new` is never used --> code/bench_fir.rs:13:37 | 13 | impl<'a,F:EqFilter> EqBank<'a,F>{fn new(bands:usize,rate:f64,control:&'a[eq::Parameters],update:usize)->Self{let filters=tone_parame... | -------------------------------- ^^^ | | | associated function in this implementation warning: struct `PhaserPair` is never constructed --> code/bench_fir.rs:18:8 | 18 | struct PhaserPair<'a,const M:usize>{channels:[phaser::Phaser;2],control:&'a[[f64;2]],rate:f64,update:usize} | ^^^^^^^^^^ warning: associated function `new` is never used --> code/bench_fir.rs:19:44 | 19 | impl<'a,const M:usize> PhaserPair<'a,M>{fn new(stages:usize,feedback:f64,rate:f64,control:&'a[[f64;2]],update:usize)->Self{let metho... | --------------------------------------- ^^^ | | | associated function in this implementation warning: method `set_parameters` is never used --> code/eq.rs:33:12 | 31 | impl Df1 { | -------- method in this implementation 32 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Df1State::default(), coefficients: Coefficients::rbj(p, rate) } } 33 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ warning: method `set_parameters` is never used --> code/eq.rs:48:12 | 46 | impl Tdf2 { | --------- method in this implementation 47 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Tdf2State::default(), coefficients: Coefficients::rbj(p, rate) } } 48 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ warning: method `set_parameters` is never used --> code/eq.rs:78:12 | 76 | impl Svf { | -------- method in this implementation 77 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: SvfState::default(), coefficients: SvfCoefficients::new(p,rate) } } 78 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = SvfCoefficients::new(p,rate); } | ^^^^^^^^^^^^^^ warning: variant `SecondOrder` is never constructed --> code/phaser.rs:6:53 | 6 | pub enum Method { Direct, Transposed, Tpt, Lattice, SecondOrder } | ------ variant in this enum ^^^^^^^^^^^ | = note: `Method` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis warning: method `process_zero_delay_sample` is never used --> code/phaser.rs:50:22 | 17 | impl Phaser { | ----------- method in this implementation ... 50 | #[inline] pub fn process_zero_delay_sample(&mut self,x:f64)->f64 { | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: method `reset` is never used --> code/convolution_half.rs:33:12 | 25 | impl Direct{ | ----------- method in this implementation ... 33 | pub fn reset(&mut self){self.state.history.fill([0.;2]);self.state.cursor=0;} | ^^^^^ warning: method `reset` is never used --> code/convolution_half.rs:60:12 | 38 | impl Partitioned{ | ---------------- method in this implementation ... 60 | pub fn reset(&mut self){for h in &mut self.state.history{h.fill(Complex::default());}self.state.input.fill([0.;2]);self.state.ou... | ^^^^^ warning: method `reset` is never used --> code/convolution_half.rs:68:12 | 65 | impl Hybrid{ | ----------- method in this implementation ... 68 | pub fn reset(&mut self){self.head.reset();self.tail.reset();} | ^^^^^ warning: method `reset` is never used --> code/convolution_half.rs:81:12 | 78 | impl HybridTwoLevel{ | ------------------- method in this implementation ... 81 | pub fn reset(&mut self){self.head.reset();self.middle.reset();self.tail.reset();} | ^^^^^ warning: 15 warnings emitted warning: method `set_parameters` is never used --> code/eq.rs:33:12 | 31 | impl Df1 { | -------- method in this implementation 32 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Df1State::default(), coefficients: Coefficients::rbj(p, rate) } } 33 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: method `set_parameters` is never used --> code/eq.rs:48:12 | 46 | impl Tdf2 { | --------- method in this implementation 47 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Tdf2State::default(), coefficients: Coefficients::rbj(p, rate) } } 48 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ warning: method `set_parameters` is never used --> code/eq.rs:78:12 | 76 | impl Svf { | -------- method in this implementation 77 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: SvfState::default(), coefficients: SvfCoefficients::new(p,rate) } } 78 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = SvfCoefficients::new(p,rate); } | ^^^^^^^^^^^^^^ warning: 3 warnings emitted warning: method `set_parameters` is never used --> code/eq.rs:33:12 | 31 | impl Df1 { | -------- method in this implementation 32 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Df1State::default(), coefficients: Coefficients::rbj(p, rate) } } 33 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: method `set_parameters` is never used --> code/eq.rs:48:12 | 46 | impl Tdf2 { | --------- method in this implementation 47 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Tdf2State::default(), coefficients: Coefficients::rbj(p, rate) } } 48 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ warning: method `set_parameters` is never used --> code/eq.rs:78:12 | 76 | impl Svf { | -------- method in this implementation 77 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: SvfState::default(), coefficients: SvfCoefficients::new(p,rate) } } 78 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = SvfCoefficients::new(p,rate); } | ^^^^^^^^^^^^^^ warning: 3 warnings emitted warning: method `set_parameters` is never used --> code/eq.rs:33:12 | 31 | impl Df1 { | -------- method in this implementation 32 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Df1State::default(), coefficients: Coefficients::rbj(p, rate) } } 33 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ | = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default warning: method `set_parameters` is never used --> code/eq.rs:48:12 | 46 | impl Tdf2 { | --------- method in this implementation 47 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: Tdf2State::default(), coefficients: Coefficients::rbj(p, rate) } } 48 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = Coefficients::rbj(p, rate); } | ^^^^^^^^^^^^^^ warning: method `set_parameters` is never used --> code/eq.rs:78:12 | 76 | impl Svf { | -------- method in this implementation 77 | pub fn new(p: Parameters, rate: f64) -> Self { Self { state: SvfState::default(), coefficients: SvfCoefficients::new(p,rate) } } 78 | pub fn set_parameters(&mut self, p: Parameters, rate: f64) { self.coefficients = SvfCoefficients::new(p,rate); } | ^^^^^^^^^^^^^^ warning: methods `process_sample` and `process_zero_delay_sample` are never used --> code/phaser.rs:36:22 | 17 | impl Phaser { | ----------- methods in this implementation ... 36 | #[inline] pub fn process_sample(&mut self,x:f64)->f64 { | ^^^^^^^^^^^^^^ ... 50 | #[inline] pub fn process_zero_delay_sample(&mut self,x:f64)->f64 { | ^^^^^^^^^^^^^^^^^^^^^^^^^ warning: struct `ControlledEq` is never constructed --> code/eq_control.rs:15:12 | 15 | pub struct ControlledEq{filters:[F;2],ramp:CoefficientRamp} | ^^^^^^^^^^^^ warning: associated items `new`, `prepare_segment`, and `process_sample` are never used --> code/eq_control.rs:17:9 | 16 | impl ControlledEq{ | ------------------------------ associated items in this implementation 17 | pub fn new(p:Parameters,rate:f64)->Self{let f=F::new(p,rate);Self{filters:[f.clone(),f],ramp:CoefficientRamp::new(F::design(p,rate))}} | ^^^ 18 | pub fn prepare_segment(&mut self,next:Parameters,rate:f64,length:usize){self.ramp.prepare_segment(F::design(next,rate),length)} | ^^^^^^^^^^^^^^^ 19 | #[inline]pub fn process_sample(&mut self,x:[f64;2])->[f64;2]{for f in &mut self.filters{f.assign(self.ramp.coefficients())}let y=[s... | ^^^^^^^^^^^^^^ warning: 6 warnings emitted $ local-sources/tests running 3 tests test eq::tests::same_frozen_impulse_response ... ok test phaser::tests::frozen_first_order_responses_match ... ok test phaser::tests::normalized_update_preserves_instantaneous_energy ... ok test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 14.37s $ local-sources/test-second running 4 tests test phaser::tests::frozen_first_order_responses_match ... ok test phaser::tests::normalized_update_preserves_instantaneous_energy ... ok test phaser_second::tests::frozen_matches_second_order_tdf2 ... ok test phaser_second::tests::time_varying_energy_identity ... ok test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.53s $ local-sources/test-fir running 7 tests test convolution_half::tests::convolution_equivalence ... ok test convolution_half::tests::fft_roundtrip ... ok test eq::tests::same_frozen_impulse_response ... ok test fir_tests::all_eq_impulses_match_fft_convolution_across_blocks ... ok test phaser::tests::frozen_first_order_responses_match ... ok test phaser::tests::normalized_update_preserves_instantaneous_energy ... ok test tests::symmetric_fir_matches_direct_convolution ... ok test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 14.52s $ local-sources/test-eq-control eq_control running 1 test test eq_control::tests::one_sample_segments_match_exact_design ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.02s $ local-sources/test-reuse-f64 output_reuse running 1 test test tests::output_reuse_preserves_all_samples_and_future_state ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.02s $ local-sources/test-reuse-f32 output_reuse running 1 test test tests::output_reuse_preserves_all_samples_and_future_state ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 1 filtered out; finished in 0.02s $ local-sources/test-bench symmetric_fir_matches_direct_convolution running 1 test test tests::symmetric_fir_matches_direct_convolution ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 3 filtered out; finished in 0.00s $ local-sources/check-feedback-energy {"rate":44100,"stages":1,"arbitrary_states_tested":2000,"max_abs_residual_lattice_unit":0.0000000000000006661338147750939,"max_abs_residual_lattice_zero":0.0000000000000009992007221626409,"max_abs_residual_schur_unit":0.0000000000000011657341758564144} {"rate":44100,"stages":6,"arbitrary_states_tested":2000,"max_abs_residual_lattice_unit":0.0000000000000015543122344752192,"max_abs_residual_lattice_zero":0.000000000000001654926196081874,"max_abs_residual_schur_unit":0.000000000000003164135620181696} {"rate":44100,"stages":12,"arbitrary_states_tested":2000,"max_abs_residual_lattice_unit":0.0000000000000036637359812630166,"max_abs_residual_lattice_zero":0.000000000000003021075143522234,"max_abs_residual_schur_unit":0.000000000000007299716386910404} {"rate":48000,"stages":1,"arbitrary_states_tested":2000,"max_abs_residual_lattice_unit":0.0000000000000006106226635438361,"max_abs_residual_lattice_zero":0.0000000000000014432899320127035,"max_abs_residual_schur_unit":0.0000000000000012212453270876722} {"rate":48000,"stages":6,"arbitrary_states_tested":2000,"max_abs_residual_lattice_unit":0.0000000000000015543122344752192,"max_abs_residual_lattice_zero":0.0000000000000014773880903373726,"max_abs_residual_schur_unit":0.000000000000002942091015256665} {"rate":48000,"stages":12,"arbitrary_states_tested":2000,"max_abs_residual_lattice_unit":0.000000000000003247402347028583,"max_abs_residual_lattice_zero":0.0000000000000029976021664879227,"max_abs_residual_schur_unit":0.000000000000006994405055138486} {"rate":96000,"stages":1,"arbitrary_states_tested":2000,"max_abs_residual_lattice_unit":0.0000000000000005551115123125783,"max_abs_residual_lattice_zero":0.0000000000000014432899320127035,"max_abs_residual_schur_unit":0.0000000000000011102230246251565} {"rate":96000,"stages":6,"arbitrary_states_tested":2000,"max_abs_residual_lattice_unit":0.0000000000000014432899320127035,"max_abs_residual_lattice_zero":0.0000000000000015543122344752192,"max_abs_residual_schur_unit":0.000000000000002994132719535969} {"rate":96000,"stages":12,"arbitrary_states_tested":2000,"max_abs_residual_lattice_unit":0.000000000000004773959005888173,"max_abs_residual_lattice_zero":0.00000000000000347725320759551,"max_abs_residual_schur_unit":0.000000000000007438494264988549} $ ../eq_phaser/local-sources/bench bench eq-df1-tone3 48000 256 4 10 {"case_id":"eq-df1-tone3","frames":192000,"channels":2,"elapsed_ns":2725069,"ns_per_frame":14.193067708333333,"burn_in_ns":11919979,"burn_in_cycles":4,"checksum":"e2e94810fd912e26","peak":0.43078271242453303,"rms":0.1805172515764341,"state_bytes":488,"latency_samples":0} $ ../eq_phaser/local-sources/bench-v2 bench phaser-direct-feedback6 48000 256 4 10 {"case_id":"phaser-direct-feedback6","frames":192000,"channels":2,"elapsed_ns":44587624,"ns_per_frame":232.22720833333332,"burn_in_ns":66640231,"burn_in_cycles":1,"checksum":"aa38ae648f21092f","peak":0.4183440040746401,"rms":0.1122087756605008,"state_bytes":928,"latency_samples":0} $ ../eq_phaser/local-sources/bench-fir bench direct-257 48000 256 4 10 {"case_id":"direct-257","frames":192000,"channels":2,"elapsed_ns":36903419,"ns_per_frame":192.20530729166666,"burn_in_ns":55289266,"burn_in_cycles":1,"checksum":"ea036554488d5736","peak":0.4286768010865188,"rms":0.17666724825753358,"state_bytes":9344,"latency_samples":128} $ ../eq_phaser/local-sources/bench-eq-control bench eq-df1-auto1 48000 256 4 10 {"case_id":"eq-df1-auto1","frames":192000,"channels":2,"elapsed_ns":11011999,"ns_per_frame":57.35416145833333,"burn_in_ns":16500626,"burn_in_cycles":1,"checksum":"7706ab06ce8dd80d","peak":0.4590408524773325,"rms":0.1763552085056838,"state_bytes":488,"latency_samples":0} $ ../eq_phaser/local-sources/bench-reuse-f64 bench f64-eq-tdf2-reuse 48000 32 4 10 {"case_id":"f64-eq-tdf2-reuse","frames":192000,"channels":2,"elapsed_ns":1042667,"ns_per_frame":5.430557291666666,"burn_in_ns":10948837,"burn_in_cycles":7,"checksum":"4025f19d0627ac16","peak":0.24839970006738735,"rms":0.16402324735135068,"state_bytes":384,"latency_samples":0,"sample_bits":64,"mxcsr":40896,"diagnostic_scope":"last_output_block","diagnostic_frames":32} $ ../eq_phaser/local-sources/bench-reuse-f64 bench f64-eq-tdf2-reuse 48000 256 4 10 {"case_id":"f64-eq-tdf2-reuse","frames":192000,"channels":2,"elapsed_ns":1019733,"ns_per_frame":5.311109375,"burn_in_ns":10763846,"burn_in_cycles":7,"checksum":"47fb5f06c5012219","peak":0.4183995562296037,"rms":0.17641007684158755,"state_bytes":384,"latency_samples":0,"sample_bits":64,"mxcsr":40896,"diagnostic_scope":"last_output_block","diagnostic_frames":256}