Skip to content

Commit

Permalink
Cascade: make cascade envelopes trigger on load
Browse files Browse the repository at this point in the history
  • Loading branch information
alefnull committed Sep 2, 2022
1 parent 159f836 commit 1fa5ea7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/funcgen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,13 @@ struct Funcgen : Module {
configOutput(ABSDA_OUTPUT, "abs(A - D)");
configOutput(ABSDB_OUTPUT, "abs(B - D)");
configOutput(ABSDC_OUTPUT, "abs(C - D)");
if (mode == CASCADE) {
cm_envelope[0].retrigger();
}
else if (mode == CHAOTIC_CASCADE) {
chaos_index = random::u32() % CHANNEL_COUNT;
cm_envelope[chaos_index].retrigger();
}
}

void process(const ProcessArgs& args) override {
Expand Down

0 comments on commit 1fa5ea7

Please sign in to comment.