Skip to content

Commit

Permalink
initialize values
Browse files Browse the repository at this point in the history
  • Loading branch information
scanner-darkly committed Sep 14, 2024
1 parent ca3d34f commit 8ca140e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/SDOrcasHeartV2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,15 +317,15 @@ struct SDOrcasHeartV2 : Module {

int scaleSwitchMode = 0;

dsp::SchmittTrigger clockIn, resetIn, scaleSwitchTrig, scaleInputTrig;
dsp::SchmittTrigger clockIn{}, resetIn{}, scaleSwitchTrig{}, scaleInputTrig{};
dsp::PulseGenerator clockOut, resetOut;
ParamQuantity* speedParamQuantity;

float internalClock = 2.f, clockInterval, clockIntervalCounter;

int length, voices, algoX, algoY, shift, rotate, space;
double speed;
float transpose, gateLength, spread;
int length{}, voices{}, algoX{}, algoY{}, shift{}, rotate{}, space{};
double speed{};
float transpose{}, gateLength{}, spread{};

int scales[SCALECOUNT + 1][SCALELEN] = {};
int scaleCount[SCALECOUNT + 1] = {};
Expand All @@ -340,12 +340,12 @@ struct SDOrcasHeartV2 : Module {
int trackOn[TRACKCOUNT] = { 0, 0, 0, 0, 0, 0, 0, 0 };
int weightOn[TRACKCOUNT] = { 0, 0, 0, 0, 0, 0, 0, 0 };

int notes[NOTECOUNT][HISTORYCOUNT];
bool gateOn[NOTECOUNT][HISTORYCOUNT];
bool gateChanged[NOTECOUNT][HISTORYCOUNT];
int notes[NOTECOUNT][HISTORYCOUNT]{};
bool gateOn[NOTECOUNT][HISTORYCOUNT]{};
bool gateChanged[NOTECOUNT][HISTORYCOUNT]{};

float gateTimer[NOTECOUNT] = { 0, 0, 0, 0, 0, 0, 0, 0 };
bool gateTriggered[NOTECOUNT];
bool gateTriggered[NOTECOUNT]{};
int muted[NOTECOUNT] = { 0, 0, 0, 0, 0, 0, 0, 0 };
int shifts[NOTECOUNT] = { 0, 0, 0, 0, 0, 0, 0, 0 };

Expand Down

0 comments on commit 8ca140e

Please sign in to comment.