use global smoothing const
parent
6476bd8ddf
commit
b816f05279
|
@ -66,6 +66,9 @@
|
|||
#define LUPPP_RETURN_WARNING 1
|
||||
#define LUPPP_RETURN_ERROR 2
|
||||
|
||||
// Smoothing value
|
||||
#define SMOOTHING_CONST 0.05
|
||||
|
||||
|
||||
/// debug.hxx for printing convienience
|
||||
#include "debug.hxx"
|
||||
|
|
|
@ -566,7 +566,7 @@ void Jack::processFrames(int nframes)
|
|||
buffers.audio[Buffers::SIDECHAIN_SIGNAL_R][i] += inputR * inputToXSideVol;
|
||||
|
||||
//compute master volume lag;
|
||||
masterVolLag += 0.05 * (masterVol - masterVolLag);
|
||||
masterVolLag += SMOOTHING_CONST * (masterVol - masterVolLag);
|
||||
/// mixdown returns into master buffers
|
||||
buffers.audio[Buffers::JACK_MASTER_OUT_L][i] = (L + returnL*returnVol) * masterVolLag;
|
||||
buffers.audio[Buffers::JACK_MASTER_OUT_R][i] = (R + returnR*returnVol) * masterVolLag;
|
||||
|
|
|
@ -113,7 +113,7 @@ void TrackOutput::process(unsigned int nframes, Buffers* buffers)
|
|||
int trackoffset = track * NCHANNELS;
|
||||
|
||||
//compute master volume lag;
|
||||
_toMasterLag += 0.05 * (_toMaster - _toMasterLag);
|
||||
_toMasterLag += SMOOTHING_CONST * (_toMaster - _toMasterLag);
|
||||
|
||||
// get & zero track buffer
|
||||
float* trackBufferL = buffers->audio[Buffers::RETURN_TRACK_0_L + trackoffset];
|
||||
|
@ -166,7 +166,7 @@ void TrackOutput::process(unsigned int nframes, Buffers* buffers)
|
|||
for(unsigned int i = 0; i < nframes; i++) {
|
||||
|
||||
//compute master volume lag;
|
||||
_toMasterLag += 0.05 * (_toMaster - _toMasterLag);
|
||||
_toMasterLag += SMOOTHING_CONST * (_toMaster - _toMasterLag);
|
||||
|
||||
// * master for "post-fader" sends
|
||||
float tmpL = trackBufferL[i];
|
||||
|
|
Loading…
Reference in New Issue