is it possible to get current_output_routing to show in a menu?

May 14, 2011 at 9:24am

is it possible to get current_output_routing to show in a menu?

Hi,

I am doing the followig:

midiin
|
current_output_routing (msg box)
|
live.menu
|
midiout

Here is the patch


{
"boxes" : [ {
"box" : {
"maxclass" : "live.menu",
"varname" : "live.menu",
"outlettype" : [ "", "", "float" ],
"id" : "obj-3",
"pictures" : [ ],
"numinlets" : 1,
"patching_rect" : [ 192.0, 114.0, 100.0, 15.0 ],
"parameter_enable" : 1,
"numoutlets" : 3,
"saved_attribute_attributes" : {
"valueof" : {
"parameter_order" : 0,
"parameter_units" : "",
"parameter_speedlim" : 0,
"parameter_steps" : 0,
"parameter_enum" : [ "one", "two", "three" ],
"parameter_exponent" : 1.0,
"parameter_unitstyle" : 10,
"parameter_mmax" : 127.0,
"parameter_mmin" : 0.0,
"parameter_type" : 2,
"parameter_initial_enable" : 0,
"parameter_shortname" : "live.menu",
"parameter_invisible" : 0,
"parameter_modmax" : 127.0,
"parameter_annotation_name" : "",
"parameter_longname" : "live.menu",
"parameter_modmin" : 0.0,
"parameter_linknames" : 0,
"parameter_modmode" : 0,
"parameter_info" : ""
}

}

}

}
, {
"box" : {
"maxclass" : "message",
"text" : "set current_output_routing",
"outlettype" : [ "" ],
"id" : "obj-4",
"fontname" : "Arial Bold",
"numinlets" : 2,
"patching_rect" : [ 126.0, 49.0, 139.0, 16.0 ],
"numoutlets" : 1,
"fontsize" : 10.0
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "Device vertical limit",
"id" : "obj-9",
"fontname" : "Arial",
"numinlets" : 1,
"patching_rect" : [ 0.0, 170.0, 118.0, 18.0 ],
"hidden" : 1,
"numoutlets" : 0,
"fontsize" : 10.0
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "MIDI to Live",
"id" : "obj-7",
"fontname" : "Arial Bold Italic",
"textcolor" : [ 0.3, 0.34, 0.4, 1.0 ],
"numinlets" : 1,
"patching_rect" : [ 36.0, 131.0, 73.0, 19.0 ],
"numoutlets" : 0,
"fontsize" : 11.0,
"frgb" : [ 0.3, 0.34, 0.4, 1.0 ]
}

}
, {
"box" : {
"maxclass" : "comment",
"text" : "MIDI from Live",
"id" : "obj-6",
"fontname" : "Arial Bold Italic",
"textcolor" : [ 0.3, 0.34, 0.4, 1.0 ],
"numinlets" : 1,
"patching_rect" : [ 30.0, 11.0, 88.0, 19.0 ],
"numoutlets" : 0,
"fontsize" : 11.0,
"frgb" : [ 0.3, 0.34, 0.4, 1.0 ]
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "midiout",
"id" : "obj-2",
"fontname" : "Arial Bold",
"numinlets" : 1,
"patching_rect" : [ 48.0, 112.0, 47.0, 18.0 ],
"numoutlets" : 0,
"fontsize" : 10.0
}

}
, {
"box" : {
"maxclass" : "newobj",
"text" : "midiin",
"outlettype" : [ "int" ],
"id" : "obj-1",
"fontname" : "Arial Bold",
"numinlets" : 1,
"patching_rect" : [ 48.0, 32.0, 40.0, 18.0 ],
"numoutlets" : 1,
"fontsize" : 10.0
}

}
],
"lines" : [ {
"patchline" : {
"source" : [ "obj-3", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-4", 0 ],
"destination" : [ "obj-3", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-2", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
, {
"patchline" : {
"source" : [ "obj-1", 0 ],
"destination" : [ "obj-4", 0 ],
"hidden" : 0,
"midpoints" : [ ]
}

}
]
}

Any help would be much appreciated

Cheers

#57116
May 14, 2011 at 10:50am

There are some basic misunderstandings..

Remember that current_output_routing is a property of tracks.
So the message can be sent only to track objects.

Also, midiout in M4L devices cannot be changed at all.
It always refers to the track where the device is on.

Regarding your original question:
With property output_routings you can get a list of all symbols in the track menu, but you can’t build a new menu from it since the list is not grouped into menu items.

#204588

You must be logged in to reply to this topic.