Browse Source

VCV Audio-2: Get normalled 2nd input value directly from 1st input port instead of DC-coupled value.

tags/v2.6.1
Andrew Belt 3 months ago
parent
commit
8bba27b77f
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/core/Audio.cpp

+ 3
- 2
src/core/Audio.cpp View File

@@ -266,8 +266,8 @@ struct Audio : Module {
if (inputs[AUDIO_INPUTS + i].isConnected()) if (inputs[AUDIO_INPUTS + i].isConnected())
v = inputs[AUDIO_INPUTS + i].getVoltageSum() / 10.f; v = inputs[AUDIO_INPUTS + i].getVoltageSum() / 10.f;
// Normal right input to left on Audio-2 // Normal right input to left on Audio-2
else if (i == 1 && NUM_AUDIO_INPUTS == 2)
v = inputFrame.samples[0];
else if (NUM_AUDIO_INPUTS == 2 && i == 1)
v = inputs[AUDIO_INPUTS + 0].getVoltageSum() / 10.f;


// Apply DC filter // Apply DC filter
if (dcFilterEnabled) { if (dcFilterEnabled) {
@@ -280,6 +280,7 @@ struct Audio : Module {
if (std::fabs(v) >= 1.f) if (std::fabs(v) >= 1.f)
inputClipTimers[i / 2] = clipTime; inputClipTimers[i / 2] = clipTime;
} }

inputFrame.samples[i] = v; inputFrame.samples[i] = v;
} }




Loading…
Cancel
Save