|
|
@@ -108,11 +108,11 @@ struct RackUI : public GenericUI |
|
|
|
void addBarGraph(FAUSTFLOAT* zone) |
|
|
|
{ |
|
|
|
int index = getIndex(fValue); |
|
|
|
if ((fKey == "led_red") && (index != -1)) { |
|
|
|
if ((fKey == "light_red") && (index != -1)) { |
|
|
|
fUpdateFunOut.push_back([=] (ProcessBlock* block) { block->lights[index-1][0] = *zone; }); |
|
|
|
} else if ((fKey == "led_green") && (index != -1)) { |
|
|
|
} else if ((fKey == "light_green") && (index != -1)) { |
|
|
|
fUpdateFunOut.push_back([=] (ProcessBlock* block) { block->lights[index-1][1] = *zone; }); |
|
|
|
} else if ((fKey == "led_blue") && (index != -1)) { |
|
|
|
} else if ((fKey == "light_blue") && (index != -1)) { |
|
|
|
fUpdateFunOut.push_back([=] (ProcessBlock* block) { block->lights[index-1][2] = *zone; }); |
|
|
|
} else if ((fKey == "switch_red") && (index != -1)) { |
|
|
|
fUpdateFunOut.push_back([=] (ProcessBlock* block) { block->switchLights[index-1][0] = *zone; }); |
|
|
@@ -134,7 +134,7 @@ struct RackUI : public GenericUI |
|
|
|
|
|
|
|
void declare(FAUSTFLOAT* zone, const char* key, const char* val) |
|
|
|
{ |
|
|
|
static vector<string> keys = {"switch", "knob", "led_red", "led_green", "led_blue", "switch_red", "switch_green", "switch_blue"}; |
|
|
|
static vector<string> keys = {"switch", "knob", "light_red", "light_green", "light_blue", "switch_red", "switch_green", "switch_blue"}; |
|
|
|
if (find(keys.begin(), keys.end(), key) != keys.end()) { |
|
|
|
fKey = key; |
|
|
|
fValue = val; |
|
|
|