/[svn]/linuxsampler/trunk/src/engines/gig/Filter.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/engines/gig/Filter.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3071 by schoenebeck, Wed Dec 14 17:34:54 2016 UTC revision 3072 by schoenebeck, Wed Jan 4 15:49:52 2017 UTC
# Line 4  Line 4 
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  *
# Line 566  namespace gig { Line 566  namespace gig {
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          }          }

Legend:
Removed from v.3071  
changed lines
  Added in v.3072

  ViewVC Help
Powered by ViewVC