Browse Source

Random sampler : Fix checkmark status checking

pull/83/head
xenakios 5 years ago
parent
commit
59efd54578
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/Marbles.cpp

+ 2
- 1
src/Marbles.cpp View File

@@ -709,7 +709,8 @@ struct MarblesWidget : ModuleWidget {
{"99%",0.99f}
};
for (int i = 0; i < (int) LENGTHOF(gateLens); i++) {
bool checked = isNear(gateLens[i].second,module->_gate_len,0.0001);
float scaled_len = rescale(module->_gate_len,0.01f,0.99f, 0.0f,1.0f);
bool checked = isNear(gateLens[i].second,scaled_len,0.0001);
GateLenMenuIndexItem *item = createMenuItem<GateLenMenuIndexItem>(gateLens[i].first,
CHECKMARK(checked));
item->module = module;


Loading…
Cancel
Save