PDA

View Full Version : JSON string decoding



freadZdead
01-29-2016, 10:59 PM
Hi Camille,


It would be invaluable for integration with QLab to be able to decode their JSON-strings that is their default reply format: http://docs.figure53.com/qlab/osc-api-v3/#reply-format

encoded in these strings are 1-n fieldname:data value tuples/datasets, and if those could be automatically decoded and split like for example the MIDI Notes (where you look at pitch, velocity, and trigger for every note received), then the contents could be re-routed sensibly to other applications :)!


I would be so stoked (but I am sure I would not be the only one ;))! This would allow i.e. to set motorised faders to assume the positions as you select i.e. and audio cue, so would allow for bi-directional integration of control surfaces...


Cheers,

Freddy

MattPadden
04-11-2019, 11:50 AM
Hi Freddy,

Replying to an old thread here, but I had a similar challenge of needing to reroute QLab OSC messages based on the contents of their JSON strings. [Actually a combination of Figure53's Go Button and QLab, but the central principle is the same].

With help from Mic Pool, I found a solution, which is to use OSCulator simply to remap the JSON replies from Go Button so that they are written into the notes of a QLab cue. The actual JSON analysis is then done using a simple Applescript cue in QLab, allowing further triggers to be programmed as required.

Full details in this thread (https://groups.google.com/forum/#!topic/qlab/YmXHo1e_euI) on the QLab Google Group, including a worked example from Mic.

Hope it's useful.
Matt