MCPcopy Create free account
hub / github.com/baconpaul/airwin2rack / dataToJson

Method dataToJson

src-rack/Module.cpp:258–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256 void onSampleRateChange(const SampleRateChangeEvent &e) override { updateSampleRates(); }
257
258 json_t *dataToJson() override
259 {
260 auto res = json_object();
261 json_object_set_new(res, "airwindowSelectedFX", json_string(selectedFX.c_str()));
262
263 // Stream next poly here in case you change it without an audio thread
264 json_object_set_new(res, "polyphonyMode", json_integer(nextPoly));
265 json_object_set_new(res, "lockedType", json_boolean(lockedType));
266 json_object_set_new(res, "randomizeFX", json_boolean(randomizeFX));
267 json_object_set_new(res, "blockSize", json_integer(blockSize));
268 return res;
269 }
270
271 void dataFromJson(json_t *rootJ) override
272 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected