From 8bba27b77f3f3d249fda04d42e0f3a4c5b3d7c09 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 31 Jan 2025 01:32:01 -0500 Subject: [PATCH] VCV Audio-2: Get normalled 2nd input value directly from 1st input port instead of DC-coupled value. --- src/core/Audio.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/Audio.cpp b/src/core/Audio.cpp index ccf93ebd..90b7293f 100644 --- a/src/core/Audio.cpp +++ b/src/core/Audio.cpp @@ -266,8 +266,8 @@ struct Audio : Module { if (inputs[AUDIO_INPUTS + i].isConnected()) v = inputs[AUDIO_INPUTS + i].getVoltageSum() / 10.f; // 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 if (dcFilterEnabled) { @@ -280,6 +280,7 @@ struct Audio : Module { if (std::fabs(v) >= 1.f) inputClipTimers[i / 2] = clipTime; } + inputFrame.samples[i] = v; }