Phase 4+5: WebAudio I/O shim + verify DAW checklist — live=export, order, fader, PDC, smoke
This commit is contained in:
@@ -205,6 +205,23 @@ public:
|
||||
}
|
||||
bool setParam(const std::string& key, double value) override {
|
||||
if (key == "amount") { amount_ = value / 100.0; rebuild(); return true; }
|
||||
if (key.compare(0, 4, "band") == 0) {
|
||||
const size_t us = key.find('_', 4);
|
||||
if (us != std::string::npos && us > 4) {
|
||||
const int idx = std::atoi(key.c_str() + 4);
|
||||
const std::string field = key.substr(us + 1);
|
||||
if (idx >= 0 && idx < (int)bands_.size()) {
|
||||
Band& b = bands_[idx];
|
||||
if (field == "freq") b.freq = value;
|
||||
else if (field == "gain") b.gain = value;
|
||||
else if (field == "q") b.q = value;
|
||||
else if (field == "active") b.active = (value != 0.0);
|
||||
else return false;
|
||||
rebuild();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user