From 5879cefa1972e45183c9345c52771d54503c2829 Mon Sep 17 00:00:00 2001 From: Don Cross Date: Sat, 1 Feb 2025 21:12:10 -0500 Subject: [PATCH] Env: fixed bug writing voltages to ports. --- src/env_vcv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/env_vcv.cpp b/src/env_vcv.cpp index d913cc0..cf5cbe5 100644 --- a/src/env_vcv.cpp +++ b/src/env_vcv.cpp @@ -85,11 +85,11 @@ namespace Sapphire } } - void setPolyOutput(const OutputId id, int nc, const float* volts) + void setPolyOutput(OutputId id, int nc, const float* volts) { outputs[id].setChannels(nc); for (int c = 0; c < nc; ++c) - outputs[id].setVoltage(c, volts[c]); + outputs[id].setVoltage(volts[c], c); } };