Once cuccessfully registered with a workspace, I understand QLab would send the following command when the playback position is changed: /update/workspace/{workspace_id}/cueList/{cue_list_id}/playbackPosition {cue_id} , correct?Chris. Is this a long radar idea? Or simple "I have an itch on a Tuesday morning" type of project?
There sure are a lot of ideas floating around aren't there? Maybe we should stop using ambiguous pronouns.
Crafting a simple reply version for OSC.
This will help:
https://github.com/Figure53/F53OSC
Apple has built-in code for encoding/decoding JSON.
If you are talking over TCP you’d need to talk to the utility app which would serve as a middleman between the client and QLab, since QLab will talk back on the same TCP channel that it receives incoming messages.
If you are talking over UDP, you should be able to send QLab OSC directly on 53000 but have your utility listen on UDP 53001 and translate the replies into some new action.
I’d recommend trying the latter, as that shouldn’t be too hard since we already have the OSC code for you. You’ll just get OSC message from QLab, you can decode the JSON, then decide what to do with them.
-C
On January 21, 2015 at 9:24:03 AM, Freddy Komp (busy...@gmail.com) wrote:
It's been a while, but since in another topic you guys flagged that you were a bit busy ;)... I am now seriously contemplating getting my head around Objective-C for this...
My plan - based on QLabKit and F53OSC, building a command line utility that takes as parameters simply incoming port, and outgoing address and port, and then goes ahead to simply parse the JSON and sends on the different variables included as distinct OSC messages... Therefore, it should then be allowed to send all OSC hooks that are offered in any particular cue automatically, both when moving the playhead position and when remotely moving any fader/knob/field in that cue, correct?
It depends on what you are describing / trying to do. It sounds like you’re describing the idea that a cue would send out changes to a fader when someone drags the fader, which is not currently what happens. Right now it sends out granular “update” notifications when something about a cue changes, and it is a client’s responsibility to retrieve any updated values it might care about.
However, yes, you should be able to create a client that can act as an intermediary for any OSC messages that get replies, and translate the replies from QLab to whatever format you want to send back to, say, TouchOSC.
Or am I overlooking something? Anything from you Objective-C gurus that I should be looking out for? Or will my basic Java knowledge and a few online tutorials get me there just fine you'd think?
There’s a lot of good tutorial material out there for getting started, I think you should find helpful stuff.
-C
It depends on what you are describing / trying to do. It sounds like you’re describing the idea that a cue would send out changes to a fader when someone drags the fader, which is not currently what happens. Right now it sends out granular “update” notifications when something about a cue changes, and it is a client’s responsibility to retrieve any updated values it might care about.
Undefined symbols for architecture x86_64:
"_GLKQuaternionIdentity", referenced from:
-[QLKCue quaternion] in QLKCue.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1