diff --git a/src/UnisonHelper.h b/src/UnisonHelper.h index 65e3c03..77d151a 100644 --- a/src/UnisonHelper.h +++ b/src/UnisonHelper.h @@ -387,6 +387,8 @@ struct UnisonHelper : modules::XTModule, sst::rackhelpers::module_connector::Nei outputs[OUTPUT_L].setChannels(nChan); outputs[OUTPUT_R].setChannels(nChan); + bool stereoOut = outputs[OUTPUT_R].isConnected(); + if (samplePos == 0) { modAssist.setupMatrix(this); @@ -475,11 +477,18 @@ struct UnisonHelper : modules::XTModule, sst::rackhelpers::module_connector::Nei outputs[OUTPUT_VOCT_SUB1 + v].setVoltage(vo, p); auto iv = inputs[INPUT_SUB1 + v].getVoltage(p); - float pL, pR; - unisonSetup.attenuatedPanLaw(vi, pL, pR); + if (stereoOut) + { + float pL, pR; + unisonSetup.attenuatedPanLaw(vi, pL, pR); - outputL[svi] += iv * pL; - outputR[svi] += iv * pR; + outputL[svi] += iv * pL; + outputR[svi] += iv * pR; + } + else + { + outputL[svi] += iv; + } } } } diff --git a/surge b/surge index d338dd2..be921b8 160000 --- a/surge +++ b/surge @@ -1 +1 @@ -Subproject commit d338dd2ccb3fbdaeb273c68843b345e335cab292 +Subproject commit be921b8bbe2be2820ceb82d141762c924402c8b9