summaryrefslogtreecommitdiff
path: root/libs/ardour/amp.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-04-26 02:31:21 +0200
committerRobin Gareus <robin@gareus.org>2015-04-26 02:48:15 +0200
commitfe7cb07c7f89a7485857c97f731e339cc035b612 (patch)
tree9397f4ecb1c0579f66d6800ef44814426f6906e2 /libs/ardour/amp.cc
parent1b54b85da0f7fdda5940392318dc093b2ca32fde (diff)
relax gain LPF to 25Hz.
Diffstat (limited to 'libs/ardour/amp.cc')
-rw-r--r--libs/ardour/amp.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/amp.cc b/libs/ardour/amp.cc
index caf00dc496..07f79ed5a8 100644
--- a/libs/ardour/amp.cc
+++ b/libs/ardour/amp.cc
@@ -107,7 +107,7 @@ Amp::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /*end_frame*/,
}
- const double a = 62.78 / _session.nominal_frame_rate(); // 10 Hz LPF; see Amp::apply_gain for details
+ const double a = 156.825 / _session.nominal_frame_rate(); // 25 Hz LPF; see Amp::apply_gain for details
double lpf = _current_gain;
for (BufferSet::audio_iterator i = bufs.audio_begin(); i != bufs.audio_end(); ++i) {
@@ -210,7 +210,7 @@ Amp::apply_gain (BufferSet& bufs, framecnt_t sample_rate, framecnt_t nframes, ga
/* Low pass filter coefficient: 1.0 - e^(-2.0 * π * f / 48000) f in Hz.
* for f << SR, approx a ~= 6.2 * f / SR;
*/
- const double a = 62.78 / sample_rate; // 10 Hz LPF
+ const double a = 156.825 / sample_rate; // 25 Hz LPF
for (BufferSet::audio_iterator i = bufs.audio_begin(); i != bufs.audio_end(); ++i) {
Sample* const buffer = i->data();
@@ -289,7 +289,7 @@ Amp::apply_gain (AudioBuffer& buf, framecnt_t sample_rate, framecnt_t nframes, g
}
Sample* const buffer = buf.data();
- const double a = 62.78 / sample_rate; // 10 Hz LPF, see [other] Amp::apply_gain() above,
+ const double a = 156.825 / sample_rate; // 25 Hz LPF, see [other] Amp::apply_gain() above for details
double lpf = initial;
for (pframes_t nx = 0; nx < nframes; ++nx) {