Skip to content

Commit 9584513

Browse files
committed
Cascade: multiply TOPAVG and BOTAVG outputs by 10
1 parent 54f03f6 commit 9584513

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/funcgen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ struct Funcgen : Module {
326326
max_b = envelope[i].env;
327327
}
328328
}
329-
outputs[TOPAVG_OUTPUT].setVoltage((max_a + max_b) / 2.f);
329+
outputs[TOPAVG_OUTPUT].setVoltage((max_a * 10 + max_b * 10) / 2);
330330

331331
// find the two channels with the lowest amplitude
332332
float min_a = 10.f;
@@ -340,7 +340,7 @@ struct Funcgen : Module {
340340
min_b = envelope[i].env;
341341
}
342342
}
343-
outputs[BOTAVG_OUTPUT].setVoltage((min_a + min_b) / 2.f);
343+
outputs[BOTAVG_OUTPUT].setVoltage((min_a * 10 + min_b * 10) / 2);
344344

345345
for (int i = 0; i < CHANNEL_COUNT; i++) {
346346
lights[OUTPUT_LIGHT + i].setBrightness(envelope[i].env);

0 commit comments

Comments
 (0)