Skip to content

Commit

Permalink
Full initialize in Presetovnik
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomek Sosnowski committed Apr 6, 2018
1 parent 0ac6c52 commit cf6dd8a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SLUG = Koralfx-Modules

# Must follow the format in the Versioning section of https://vcvrack.com/manual/PluginDevelopmentTutorial.html
VERSION = 0.6.5
VERSION = 0.6.6

# FLAGS will be passed to both the C and C++ compiler
FLAGS +=
Expand Down
5 changes: 5 additions & 0 deletions src/Presetovnik/Presetovnik.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
#include "../Koralfx-Modules.hpp"

Presetovnik::Presetovnik() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {
onReset();
}


void Presetovnik::onReset() {
//Default values
for (int i = 0; i < 10 ; i += 1) {
for (int k = 0; k < 8 ; k += 1) {
presetKnobMemory[i][k] = 0.5f;
presetUniMemory[i][k] = true;
}
}
presetChange = true;
}

///////////////////////////////////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions src/Presetovnik/Presetovnik.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ struct Presetovnik : Module {
Presetovnik();
//~Presetovnik();
void step() override;
void onReset() override;
//void onSampleRateChange() override;
//void reset() override;
json_t *toJson() override;
Expand Down

0 comments on commit cf6dd8a

Please sign in to comment.