Skip to content

Commit

Permalink
Added Clouds input normalization
Browse files Browse the repository at this point in the history
  • Loading branch information
mhetrick committed Sep 27, 2017
1 parent 7c4d42f commit d9cdf7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Clouds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,11 @@ void Clouds::step() {
if (!inputBuffer.full()) {
Frame<2> inputFrame;
inputFrame.samples[0] = getf(inputs[IN_L_INPUT]) * params[IN_GAIN_PARAM] / 5.0;
inputFrame.samples[1] = getf(inputs[IN_R_INPUT]) * params[IN_GAIN_PARAM] / 5.0;
if(inputs[IN_R_INPUT])
inputFrame.samples[1] = getf(inputs[IN_R_INPUT]) * params[IN_GAIN_PARAM] / 5.0;
else
inputFrame.samples[1] = getf(inputs[IN_L_INPUT]) * params[IN_GAIN_PARAM] / 5.0;

inputBuffer.push(inputFrame);
}

Expand Down

0 comments on commit d9cdf7e

Please sign in to comment.