Legacy for <=v1 patches */
| 11 | |
| 12 | /** Legacy for <=v1 patches */ |
| 13 | void fromJson(json_t* rootJ) override { |
| 14 | Module::fromJson(rootJ); |
| 15 | json_t* widthJ = json_object_get(rootJ, "width"); |
| 16 | if (widthJ) |
| 17 | width = std::round(json_number_value(widthJ) / RACK_GRID_WIDTH); |
| 18 | } |
| 19 | |
| 20 | json_t* dataToJson() override { |
| 21 | json_t* rootJ = json_object(); |
no test coverage detected