Load Json::Value into this object
| 161 | |
| 162 | // Load Json::Value into this object |
| 163 | void Expander::SetJsonValue(const Json::Value root) { |
| 164 | |
| 165 | // Set parent data |
| 166 | EffectBase::SetJsonValue(root); |
| 167 | |
| 168 | // Set data from Json (if key is found) |
| 169 | if (!root["threshold"].isNull()) |
| 170 | threshold.SetJsonValue(root["threshold"]); |
| 171 | |
| 172 | if (!root["ratio"].isNull()) |
| 173 | ratio.SetJsonValue(root["ratio"]); |
| 174 | |
| 175 | if (!root["attack"].isNull()) |
| 176 | attack.SetJsonValue(root["attack"]); |
| 177 | |
| 178 | if (!root["release"].isNull()) |
| 179 | release.SetJsonValue(root["release"]); |
| 180 | |
| 181 | if (!root["makeup_gain"].isNull()) |
| 182 | makeup_gain.SetJsonValue(root["makeup_gain"]); |
| 183 | |
| 184 | if (!root["bypass"].isNull()) |
| 185 | bypass.SetJsonValue(root["bypass"]); |
| 186 | } |
| 187 | |
| 188 | // Get all properties for a specific frame |
| 189 | std::string Expander::PropertiesJSON(int64_t requested_frame) const { |
nothing calls this directly
no outgoing calls
no test coverage detected