use super::band::Band;
pub const FAMICOM: &[Band] = &[
Band::LowCut1 { hz: 90.0 },
Band::LowCut1 { hz: 440.0 },
Band::HighCut1 { hz: 14_000.0 },
];
pub const SMALL_SPEAKER: &[Band] = &[Band::LowCut {
hz: 150.0,
q: 0.707,
}];
pub const SUBSONIC: &[Band] = &[Band::LowCut { hz: 30.0, q: 0.707 }];
pub const NAMED: &[(&str, &[Band])] = &[
("famicom", FAMICOM),
("small-speaker", SMALL_SPEAKER),
("subsonic", SUBSONIC),
];
pub fn by_name(name: &str) -> Option<&'static [Band]> {
NAMED.iter().find(|(n, _)| *n == name).map(|(_, b)| *b)
}