4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 Christian Schoenebeck * |
* Copyright (C) 2005 Christian Schoenebeck * |
7 |
* Copyright (C) 2006-2011 Christian Schoenebeck and Andreas Persson * |
* Copyright (C) 2006-2017 Christian Schoenebeck and Andreas Persson * |
8 |
* * |
* * |
9 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
10 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
566 |
} |
} |
567 |
|
|
568 |
void SetParameters(FilterData& d, float fc, float r, float fs) const { |
void SetParameters(FilterData& d, float fc, float r, float fs) const { |
569 |
|
if (fc < 1.f) fc = 1.f; // this lowpass turbo filter cannot cope with cutoff being zero (would cause click sounds) |
570 |
LowpassFilter::SetParameters(d, fc, r, fs); |
LowpassFilter::SetParameters(d, fc, r, fs); |
571 |
d.b20 = d.b0 * 0.5; |
d.b20 = d.b0 * 0.5; |
572 |
} |
} |