Skip to content

Commit

Permalink
Env: fixed bug writing voltages to ports.
Browse files Browse the repository at this point in the history
  • Loading branch information
cosinekitty committed Feb 2, 2025
1 parent 613c086 commit 5879cef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/env_vcv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
};

Expand Down

0 comments on commit 5879cef

Please sign in to comment.