MCPcopy Create free account
hub / github.com/VCVRack/AudibleInstruments / json_array_foreach

Method json_array_foreach

src/Frames.cpp:241–248  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239 json_t* keyframeJ;
240 size_t i;
241 json_array_foreach(keyframesJ, i, keyframeJ) {
242 uint16_t timestamp = json_integer_value(json_array_get(keyframeJ, 0));
243 uint16_t values[4];
244 for (int k = 0; k < 4; k++) {
245 values[k] = json_integer_value(json_array_get(keyframeJ, k + 1));
246 }
247 keyframer.AddKeyframe(timestamp, values);
248 }
249 }
250
251 json_t* channelsJ = json_object_get(rootJ, "channels");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected