1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
ix!();
pub struct CombFilter {
pub subtype: FilterSubType,
pub tuner: TunerHandle,
pub srunit: SampleRateHandle,
}
impl CombFilter {
pub fn reso_factor(&self) -> f32 {
match self.subtype == FilterSubType::Smooth
{
true => -1.0,
false => 1.0
}
}
pub fn combmix(&self) -> f32 {
match self.subtype == FilterSubType::Rough
{
true => 0.0,
false => 0.5
}
}
}