@@ -4,6 +4,7 @@ use core::fmt;
44
55/// Precomputed frequencies (Hz) for all 128 MIDI notes using standard A440 tuning.
66/// Formula: 2^((n + 36.37631656229591) / 12)
7+ #[ allow( clippy:: excessive_precision) ]
78const FREQ_F64 : [ f64 ; 128 ] = [
89 8.175798915643707e+00 , // 0 CMinus1
910 8.661957218027251e+00 , // 1 DbMinus1
@@ -137,6 +138,7 @@ const FREQ_F64: [f64; 128] = [
137138
138139/// Precomputed frequencies (Hz) for all 128 MIDI notes using standard A440 tuning.
139140/// Formula: 2^((n + 36.376316) / 12)
141+ #[ allow( clippy:: excessive_precision) ]
140142const FREQ_F32 : [ f32 ; 128 ] = [
141143 8.1757987e+00_f32 , // 0 CMinus1
142144 8.6619569e+00_f32 , // 1 DbMinus1
@@ -768,7 +770,10 @@ mod test {
768770 assert ! (
769771 rel_err < 1e-4 ,
770772 "note={}: got {} expected {} rel_err={}" ,
771- midi, got, expected, rel_err
773+ midi,
774+ got,
775+ expected,
776+ rel_err
772777 ) ;
773778 }
774779 }
@@ -787,7 +792,10 @@ mod test {
787792 assert ! (
788793 rel_err < 1e-4 ,
789794 "note={}: got {} expected {} rel_err={}" ,
790- midi, got, expected, rel_err
795+ midi,
796+ got,
797+ expected,
798+ rel_err
791799 ) ;
792800 }
793801 }
0 commit comments