From bcc460848a55a401ccc2709c484b04afaecad4b3 Mon Sep 17 00:00:00 2001 From: Jim Tupper Date: Wed, 3 Oct 2018 19:49:24 +0100 Subject: [PATCH] Changing individual segment output to be the inverse of the phase, which seems to match up more with the Stages manual --- src/Stages.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Stages.cpp b/src/Stages.cpp index d30751e..9f86ded 100644 --- a/src/Stages.cpp +++ b/src/Stages.cpp @@ -261,7 +261,7 @@ struct Stages : Module { // All outputs also go to the first segment for (int j = 0; j < BLOCK_SIZE; j++) { for (int k = 1; k < segment_generator[i].num_segments(); k += 1) { - envelopeBuffer[i + k][j] = k == out[j].segment ? out[j].value : 0.f; + envelopeBuffer[i + k][j] = k == out[j].segment ? 1- out[j].phase : 0.f; } envelopeBuffer[i][j] = out[j].value; }