Browse Source

More needed reset in UI.

faust
Stephane Letz Andrew Belt 4 years ago
parent
commit
d7a1e08ace
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/FaustEngine.cpp

+ 4
- 0
src/FaustEngine.cpp View File

@@ -96,6 +96,7 @@ struct RackUI : public GenericUI
block->switchLights[index-1][0] = *zone; block->switchLights[index-1][0] = *zone;
}); });
} }
fKey = fValue = "";
} }
void addCheckButton(const char* label, FAUSTFLOAT* zone) void addCheckButton(const char* label, FAUSTFLOAT* zone)
@@ -121,6 +122,7 @@ struct RackUI : public GenericUI
fCheckBoxes[zone].fLastButton = button; fCheckBoxes[zone].fLastButton = button;
}); });
} }
fKey = fValue = "";
} }
void addVerticalSlider(const char* label, FAUSTFLOAT* zone, FAUSTFLOAT init, FAUSTFLOAT min, FAUSTFLOAT max, FAUSTFLOAT step) void addVerticalSlider(const char* label, FAUSTFLOAT* zone, FAUSTFLOAT init, FAUSTFLOAT min, FAUSTFLOAT max, FAUSTFLOAT step)
@@ -149,6 +151,7 @@ struct RackUI : public GenericUI
fConverters.push_back(converter); fConverters.push_back(converter);
} }
fScale = "lin"; fScale = "lin";
fKey = fValue = "";
} }
void addBarGraph(FAUSTFLOAT* zone) void addBarGraph(FAUSTFLOAT* zone)
@@ -167,6 +170,7 @@ struct RackUI : public GenericUI
} else if ((fKey == "switchlight_blue") && (index != -1)) { } else if ((fKey == "switchlight_blue") && (index != -1)) {
fUpdateFunOut.push_back([=] (ProcessBlock* block) { block->switchLights[index-1][2] = *zone; }); fUpdateFunOut.push_back([=] (ProcessBlock* block) { block->switchLights[index-1][2] = *zone; });
} }
fKey = fValue = "";
} }
void addHorizontalBargraph(const char* label, FAUSTFLOAT* zone, FAUSTFLOAT min, FAUSTFLOAT max) void addHorizontalBargraph(const char* label, FAUSTFLOAT* zone, FAUSTFLOAT min, FAUSTFLOAT max)


Loading…
Cancel
Save