M4L, Live 9.7 deprecated Track Routings
Hello all,
Since I started using Live 9.7 I get the following warning(see picture attached) when using the LIVE API for reading and setting the Track Output routings via javascript. The warning seems pretty clear but when I change the syntax into what the warning tells me to do, I get a syntax error.....any idea's from the developers or did anybody else encounter the same problem?
All the best,
Eric
Not sure about javascript but with Max objects I've found the correct syntax.
Notice that the routings are now stored in a dict.
i managed to figure out how to "get" the information i want from the dictionary, but how do i manage to "set" the live.object to the value i want?
for example where i would use a {set current_output_routing $1} message going to the left inlet of the live.object, replacing the message with {set output_routing_type $1} obviously doesn't work.
Similar to the output of 'get', the input parameter of 'set' must be a dict. And it must be contained in the dict of 'available_output_routing_types' which is an array of dicts. So you can use it to fill an menu with the available names and select the corresponding dict by index.
i'm not sure i understand exactly what you mean. are you saying that the dictionary produced when i "get" something from the live.object, is the same "dictionary" that Live's routing system is using? and that i do not send a "set" message to the live.object but to the dictionary?
No, you send {set output_routing_type $1} where $1 must be a dictionary. And this dict must be one of the dicts contained in the dict which you get with the message {get available_output_routing_types}.
ok thanks, i think i get it now.
using an index as you suggest would seem the most simple and practical way to retrieve the desired sub-dictionary, although it's a bummer for me as a i was using the track number as an "index" previously (with the deprecated commands). now i have to create a whole system to correlate the track number with the available_output_routings_type index.
unless it is possible to retrieve a dictionary using the contained value?
i will post this last question as a new topic since it's not M4L specific: