-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Presenting the ordered methods needed to retrieve an ordered list of elements from a server #55
Comments
Hi Sam ! Thanks for raising the issue! If I understand well your concern, I don't think this was ever really discussed here. In Jamoma and libossia we're managing this with an extra PRIORITY attribute, that allows us to sort things whenever that's necessary, but that's not part of the specs here (and I'm not sure it should be). Does that help ? |
I think priority helps.. I was looking for some way to query the relationship between the methods and their values, to almost be able to automate retrieving elements from a database for a Table UI Widget possibly. To use the eos example above: In both Jamoma and libossia do you request all elements and then use the priority for sorting? How do you keep elements from client and server in sync with regards to Update, Moving and Deletion? |
the data you're requesting (OSC methods in an OSC address space) is structured, but inherently unordered. generally speaking, clients are encouraged to perform whatever sorting they think is appropriate- as pascal just pointed out, applications and users may differ widely in opinion as to the best order for a given set of methods. technically, the order doesn't matter to the OSC spec, and alphabetical listings are common in UIs.
...if you prefer a more methodical approach, it's also possible to work your way through the methods one level at a time, requesting explicit attributes and enumerating the child nodes, but i don't know how common that is or if it's something you're interested in (it doesn't seem faster or more efficient or preferable in any way, but technically, it's possible). the big difference between OSCQuery and the Eos hardware devices is that the former uses an HTTP server to deliver information about OSC alongside OSC, while the latter has built a custom protocol on top of OSC and as such is a lot more verbose.
yes, this proposal can be used to programmatically populate table/outline views with UI items. there are already several apps that do this, but the simplest/smallest is probably the browser in this repos: https://github.com/Vidvox/VVOSCQueryProtocol
i'm not exactly sure what you're asking here, but if it helps i don't think this question would exist at all with OSCQuery, because this protocol would give you a JSON object that fully describes everything in "/eos/cues". if you have that object then you know how many OSC methods there are in /eos/cues, you've already retrieved all the information about them, and you're ready to start sorting/displaying UI items and using them to send OSC messages to the described methods. |
Is there a way to present the steps of a dialogue to retrieve an ordered list of elements from a server and has there been any conversation as to a standard way of doing that.
For instance ETC's Eos Family Consoles (https://www.etcconnect.com/Products/Consoles/Eos-Family/) implements the following methods to retrieve cue information from their consoles:
Step 1:
Client requests how many of an item there is:
/eos/get/cue/<cue list number>/count
Step 2:
Eos will return with the cue count with:
/eos/out/get/cue/<cue list number>/count = <uint32: count>
Step 3:
Client requests detailed information for each item from index 0 to count as follows:
/eos/get/cue/<cue list number>/index/<index number>
Step 4:
Eos returns the detailed information for the item requested.
/eos/out/get/cue/<cue list number>/<cue number>/<cue part number>/list/<list index>/<list count> = <uint32: list index> <string: UID> ...
In this example there are 4 different methods that should be sent in the correct order with the last two being repeated with the index increasing from 0 to count. I wonder how this could be shown in OSCQuery?
The text was updated successfully, but these errors were encountered: