MCPcopy Create free account
hub / github.com/RizeCrime/linuxblaster_control / calculate_peaking_eq_response

Function calculate_peaking_eq_response

src/app.rs:520–525  ·  view source on GitHub ↗
(freq: f64, center_freq: f64, gain: f64, q: f64)

Source from the content-addressed store, hash-verified

518}
519
520fn calculate_peaking_eq_response(freq: f64, center_freq: f64, gain: f64, q: f64) -> f64 {
521 let bandwidth = center_freq / q;
522 let diff = (freq - center_freq).abs();
523 let falloff = 1.0 / (1.0 + (diff / (bandwidth * 0.5)).powf(2.0));
524 gain * falloff
525}

Callers 1

autoeq_paneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected