We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54f03f6 commit 9584513Copy full SHA for 9584513
1 file changed
src/funcgen.cpp
@@ -326,7 +326,7 @@ struct Funcgen : Module {
326
max_b = envelope[i].env;
327
}
328
329
- outputs[TOPAVG_OUTPUT].setVoltage((max_a + max_b) / 2.f);
+ outputs[TOPAVG_OUTPUT].setVoltage((max_a * 10 + max_b * 10) / 2);
330
331
// find the two channels with the lowest amplitude
332
float min_a = 10.f;
@@ -340,7 +340,7 @@ struct Funcgen : Module {
340
min_b = envelope[i].env;
341
342
343
- outputs[BOTAVG_OUTPUT].setVoltage((min_a + min_b) / 2.f);
+ outputs[BOTAVG_OUTPUT].setVoltage((min_a * 10 + min_b * 10) / 2);
344
345
for (int i = 0; i < CHANNEL_COUNT; i++) {
346
lights[OUTPUT_LIGHT + i].setBrightness(envelope[i].env);
0 commit comments