ampfmmmmmetaptchLvmx@clL{ "patcher" : { "fileversion" : 1, "rect" : [ -1424.0, 33.0, 1038.0, 742.0 ], "bglocked" : 0, "defrect" : [ -1424.0, 33.0, 1038.0, 742.0 ], "openrect" : [ 0.0, 0.0, 0.0, 169.0 ], "openinpresentation" : 1, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 1000, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "print", "patching_rect" : [ 354.0, 191.0, 33.0, 18.0 ], "id" : "obj-73", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "newobj", "text" : "deferlow", "patching_rect" : [ 251.0, 176.0, 52.0, 18.0 ], "id" : "obj-72", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "deferlow", "patching_rect" : [ 329.0, 297.0, 52.0, 18.0 ], "id" : "obj-71", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 100", "patching_rect" : [ 543.0, 99.0, 55.0, 18.0 ], "id" : "obj-81", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 100", "patching_rect" : [ 460.0, 100.0, 55.0, 18.0 ], "id" : "obj-82", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 100", "patching_rect" : [ 377.0, 101.0, 55.0, 18.0 ], "id" : "obj-83", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 100", "patching_rect" : [ 306.0, 102.0, 55.0, 18.0 ], "id" : "obj-84", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 100", "patching_rect" : [ 245.0, 103.0, 55.0, 18.0 ], "id" : "obj-85", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 100", "patching_rect" : [ 511.0, 122.0, 55.0, 18.0 ], "id" : "obj-70", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 100", "patching_rect" : [ 428.0, 123.0, 55.0, 18.0 ], "id" : "obj-69", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 100", "patching_rect" : [ 345.0, 124.0, 55.0, 18.0 ], "id" : "obj-68", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 100", "patching_rect" : [ 274.0, 125.0, 55.0, 18.0 ], "id" : "obj-67", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 100", "patching_rect" : [ 209.0, 124.0, 55.0, 18.0 ], "id" : "obj-66", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "print", "patching_rect" : [ 150.0, 114.0, 33.0, 18.0 ], "id" : "obj-65", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "newobj", "text" : "route 21 22 23 24 25 26 27 28 29 30", "patching_rect" : [ 210.0, 45.0, 175.0, 18.0 ], "id" : "obj-64", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 11, "fontsize" : 10.0, "outlettype" : [ "", "", "", "", "", "", "", "", "", "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "print", "patching_rect" : [ 161.0, 52.0, 33.0, 18.0 ], "id" : "obj-63", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "newobj", "text" : "midiparse", "patching_rect" : [ 185.0, 10.0, 100.0, 18.0 ], "id" : "obj-62", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 7, "fontsize" : 10.0, "outlettype" : [ "", "", "", "int", "int", "int", "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "midiin", "patching_rect" : [ 183.0, -20.0, 40.0, 18.0 ], "id" : "obj-61", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "p stopClipsOnTrack", "patching_rect" : [ 85.0, 743.0, 106.0, 18.0 ], "id" : "obj-60", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "patcher" : { "fileversion" : 1, "rect" : [ 744.0, 162.0, 793.0, 813.0 ], "bglocked" : 0, "defrect" : [ 744.0, 162.0, 793.0, 813.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "live.object", "patching_rect" : [ 228.0, 477.0, 60.0, 18.0 ], "id" : "obj-13", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "button", "patching_rect" : [ 159.0, 135.0, 18.0, 18.0 ], "id" : "obj-2", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Stop clips for selected track", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "patching_rect" : [ 31.0, 30.0, 387.0, 34.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "fontsize" : 24.0 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Find the current track and send the stop_all_clips command", "linecount" : 2, "patching_rect" : [ 31.0, 63.0, 296.0, 32.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 11.0 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedTrackIndex", "patching_rect" : [ 161.0, 156.0, 163.0, 18.0 ], "id" : "obj-3", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "fontsize" : 10.0, "outlettype" : [ "int", "bang" ] } } , { "box" : { "maxclass" : "message", "text" : "call stop_all_clips", "patching_rect" : [ 175.0, 377.0, 96.0, 16.0 ], "id" : "obj-12", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "path live_set visible_tracks $1", "patching_rect" : [ 159.0, 191.0, 154.0, 16.0 ], "id" : "obj-8", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "patching_rect" : [ 175.0, 279.0, 32.5, 18.0 ], "id" : "obj-7", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "bang", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "patching_rect" : [ 159.0, 247.0, 51.0, 18.0 ], "id" : "obj-5", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 3, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "fontsize" : 10.0, "outlettype" : [ "", "", "" ] } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 159.0, 103.0, 18.0, 18.0 ], "id" : "obj-1", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-13", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 1 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } , "saved_object_attributes" : { "default_fontname" : "Arial", "default_fontsize" : 12.0, "fontname" : "Arial", "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, "default_fontface" : 0 } } } , { "box" : { "maxclass" : "newobj", "text" : "print", "patching_rect" : [ 373.0, 700.0, 33.0, 18.0 ], "id" : "obj-59", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "button", "patching_rect" : [ 348.0, 727.0, 20.0, 20.0 ], "id" : "obj-58", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ] } } , { "box" : { "maxclass" : "live.line", "patching_rect" : [ 908.0, 324.0, 5.0, 116.0 ], "presentation" : 1, "id" : "obj-55", "numinlets" : 1, "numoutlets" : 0, "presentation_rect" : [ 335.0, 32.0, 5.0, 49.0 ] } } , { "box" : { "maxclass" : "live.line", "patching_rect" : [ 890.0, 324.0, 5.0, 116.0 ], "presentation" : 1, "id" : "obj-54", "numinlets" : 1, "numoutlets" : 0, "presentation_rect" : [ 253.0, 31.0, 5.0, 49.0 ] } } , { "box" : { "maxclass" : "live.line", "patching_rect" : [ 873.0, 324.0, 5.0, 116.0 ], "presentation" : 1, "id" : "obj-53", "numinlets" : 1, "numoutlets" : 0, "presentation_rect" : [ 139.0, 32.0, 5.0, 49.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Track Volume Pickup On", "patching_rect" : [ 614.0, 332.0, 150.0, 18.0 ], "presentation" : 1, "id" : "obj-52", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 53.0, 135.0, 144.0, 18.0 ] } } , { "box" : { "maxclass" : "live.toggle", "varname" : "live.toggle[1]", "patching_rect" : [ 593.0, 333.0, 15.0, 15.0 ], "presentation" : 1, "id" : "obj-51", "parameter_enable" : 1, "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "presentation_rect" : [ 30.0, 136.0, 15.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_enum" : [ "off", "on" ], "parameter_exponent" : 1.0, "parameter_unitstyle" : 10, "parameter_mmax" : 1.0, "parameter_mmin" : 0.0, "parameter_type" : 2, "parameter_initial_enable" : 0, "parameter_shortname" : "live.toggle[1]", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.toggle[1]", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "message", "text" : "reset", "patching_rect" : [ 207.0, 615.0, 48.0, 16.0 ], "id" : "obj-49", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "s resetvol", "patching_rect" : [ 203.0, 652.0, 57.0, 18.0 ], "id" : "obj-50", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "message", "text" : "reset", "patching_rect" : [ 283.0, 539.0, 34.0, 16.0 ], "id" : "obj-48", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "s resetvol", "patching_rect" : [ 282.0, 578.0, 57.0, 18.0 ], "id" : "obj-47", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "newobj", "text" : "r resetvol", "patching_rect" : [ 608.0, 431.0, 56.0, 18.0 ], "id" : "obj-42", "fontname" : "Arial Bold", "numinlets" : 0, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "p setvol", "patching_rect" : [ 601.0, 460.0, 48.0, 18.0 ], "id" : "obj-41", "fontname" : "Arial Bold", "numinlets" : 4, "numoutlets" : 0, "fontsize" : 10.0, "patcher" : { "fileversion" : 1, "rect" : [ -1410.0, 63.0, 823.0, 776.0 ], "bglocked" : 0, "defrect" : [ -1410.0, 63.0, 823.0, 776.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "t b b", "patching_rect" : [ 614.0, 390.0, 34.0, 20.0 ], "id" : "obj-36", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 12.0, "outlettype" : [ "bang", "bang" ] } } , { "box" : { "maxclass" : "newobj", "text" : "t b b", "patching_rect" : [ 617.0, 316.0, 34.0, 20.0 ], "id" : "obj-35", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 12.0, "outlettype" : [ "bang", "bang" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 0 1", "patching_rect" : [ 704.0, 353.0, 58.0, 20.0 ], "id" : "obj-34", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 3, "fontsize" : 12.0, "outlettype" : [ "", "", "" ] } } , { "box" : { "maxclass" : "message", "text" : "1", "patching_rect" : [ 562.0, 437.0, 32.5, 18.0 ], "id" : "obj-32", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "0", "patching_rect" : [ 575.0, 411.0, 32.5, 18.0 ], "id" : "obj-33", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "0", "patching_rect" : [ 580.0, 376.0, 32.5, 18.0 ], "id" : "obj-31", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "1", "patching_rect" : [ 593.0, 350.0, 32.5, 18.0 ], "id" : "obj-30", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "gate", "patching_rect" : [ 227.0, 540.0, 34.0, 20.0 ], "id" : "obj-21", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "gate", "patching_rect" : [ 423.0, 482.0, 34.0, 20.0 ], "id" : "obj-14", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 725.0, 306.0, 25.0, 25.0 ], "id" : "obj-4", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "comment" : "Pickup mode = 1 Jump mode = 0" } } , { "box" : { "maxclass" : "newobj", "text" : "route reset bypass_pickup", "patching_rect" : [ 643.0, 431.0, 151.0, 20.0 ], "id" : "obj-43", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 3, "fontsize" : 12.0, "outlettype" : [ "", "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "p pickup", "patching_rect" : [ 263.0, 562.0, 55.0, 20.0 ], "id" : "obj-47", "fontname" : "Arial", "numinlets" : 4, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ], "patcher" : { "fileversion" : 1, "rect" : [ -874.0, 30.0, 840.0, 526.0 ], "bglocked" : 0, "defrect" : [ -874.0, 30.0, 840.0, 526.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "abs 0.", "patching_rect" : [ 236.0, 428.0, 43.0, 20.0 ], "id" : "obj-9", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "float" ] } } , { "box" : { "maxclass" : "newobj", "text" : "abs 0.", "patching_rect" : [ 185.0, 429.0, 43.0, 20.0 ], "id" : "obj-8", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "float" ] } } , { "box" : { "maxclass" : "message", "text" : "0.1", "patching_rect" : [ 351.0, 357.0, 32.5, 18.0 ], "id" : "obj-7", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "loadbang", "patching_rect" : [ 356.0, 327.0, 60.0, 20.0 ], "id" : "obj-6", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "bang" ] } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 429.0, 328.0, 25.0, 25.0 ], "id" : "obj-5", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "comment" : "reset the gates" } } , { "box" : { "maxclass" : "flonum", "patching_rect" : [ 302.0, 384.0, 50.0, 20.0 ], "id" : "obj-45", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 12.0, "outlettype" : [ "float", "bang" ] } } , { "box" : { "maxclass" : "newobj", "text" : "t b b", "patching_rect" : [ 409.0, 418.0, 34.0, 20.0 ], "id" : "obj-44", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 12.0, "outlettype" : [ "bang", "bang" ] } } , { "box" : { "maxclass" : "newobj", "text" : "&&", "patching_rect" : [ 211.0, 502.0, 32.5, 20.0 ], "id" : "obj-41", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "< 0.1", "patching_rect" : [ 234.0, 470.0, 38.0, 20.0 ], "id" : "obj-40", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "- 0.", "patching_rect" : [ 236.0, 388.0, 32.5, 20.0 ], "id" : "obj-37", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "float" ] } } , { "box" : { "maxclass" : "message", "text" : "0", "patching_rect" : [ 353.0, 465.0, 32.5, 18.0 ], "id" : "obj-36", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "1", "patching_rect" : [ 346.0, 431.0, 32.5, 18.0 ], "id" : "obj-35", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "gate 1", "patching_rect" : [ 211.0, 539.0, 44.0, 20.0 ], "id" : "obj-34", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "0", "patching_rect" : [ 140.0, 587.0, 32.5, 18.0 ], "id" : "obj-33", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "< 0.1", "patching_rect" : [ 188.0, 470.0, 38.0, 20.0 ], "id" : "obj-30", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "- 0.", "patching_rect" : [ 187.0, 389.0, 32.5, 20.0 ], "id" : "obj-21", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "float" ] } } , { "box" : { "maxclass" : "newobj", "text" : "gate", "patching_rect" : [ 208.0, 582.0, 34.0, 20.0 ], "id" : "obj-14", "fontname" : "Arial", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 12.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "outlet", "patching_rect" : [ 203.0, 729.0, 25.0, 25.0 ], "id" : "obj-4", "numinlets" : 1, "numoutlets" : 0, "comment" : "" } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 302.0, 325.0, 25.0, 25.0 ], "id" : "obj-3", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "comment" : "value to test for distance" } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 258.0, 321.0, 25.0, 25.0 ], "id" : "obj-2", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "comment" : "controller value" } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 190.0, 325.0, 25.0, 25.0 ], "id" : "obj-1", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "comment" : "original value" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-37", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-40", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-21", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-30", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-14", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-44", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-37", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-21", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-37", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-21", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-45", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-33", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-33", 0 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-34", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-36", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-30", 0 ], "destination" : [ "obj-41", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-41", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-41", 0 ], "destination" : [ "obj-34", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-44", 1 ], "destination" : [ "obj-36", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-44", 0 ], "destination" : [ "obj-35", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-45", 0 ], "destination" : [ "obj-40", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-45", 0 ], "destination" : [ "obj-30", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-45", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } , "saved_object_attributes" : { "default_fontname" : "Arial", "default_fontsize" : 12.0, "fontname" : "Arial", "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, "default_fontface" : 0 } } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 657.0, 220.0, 25.0, 25.0 ], "id" : "obj-46", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "comment" : "Percentage for pickup" } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 679.0, 274.0, 25.0, 25.0 ], "id" : "obj-42", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "comment" : "command" } } , { "box" : { "maxclass" : "newobj", "text" : "route value", "patching_rect" : [ 263.0, 443.0, 65.0, 18.0 ], "id" : "obj-9", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "message", "text" : "get value", "patching_rect" : [ 231.0, 395.0, 55.0, 16.0 ], "id" : "obj-11", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "t b l l", "patching_rect" : [ 263.0, 363.0, 100.0, 18.0 ], "id" : "obj-7", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 3, "fontsize" : 10.0, "outlettype" : [ "bang", "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "patching_rect" : [ 263.0, 419.0, 60.0, 18.0 ], "id" : "obj-6", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "speedlim 20", "patching_rect" : [ 604.0, 184.0, 68.0, 18.0 ], "id" : "obj-2", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "comment", "text" : "if the track is not part of the visible tracks list we consider it being the master track", "linecount" : 5, "patching_rect" : [ 371.0, 299.0, 87.0, 64.0 ], "id" : "obj-29", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "message", "text" : "path live_set master_track mixer_device volume", "patching_rect" : [ 363.0, 275.0, 240.0, 16.0 ], "id" : "obj-28", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "patching_rect" : [ 91.0, 547.0, 83.0, 16.0 ], "id" : "obj-26", "fontname" : "Arial Bold", "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "hidden" : 1, "patching_rect" : [ 91.0, 571.0, 50.0, 18.0 ], "id" : "obj-27", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "comment", "text" : "-->", "patching_rect" : [ 195.0, 515.0, 23.0, 18.0 ], "id" : "obj-24", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "and set the value to the new value", "linecount" : 2, "patching_rect" : [ 91.0, 515.0, 107.0, 29.0 ], "id" : "obj-25", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "-->", "patching_rect" : [ 190.0, 438.0, 23.0, 18.0 ], "id" : "obj-22", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "This section does value pickup", "linecount" : 5, "patching_rect" : [ 131.0, 431.0, 54.0, 64.0 ], "id" : "obj-23", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "-->", "patching_rect" : [ 195.0, 395.0, 23.0, 18.0 ], "id" : "obj-20", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "-->", "patching_rect" : [ 195.0, 283.0, 23.0, 18.0 ], "id" : "obj-19", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "now we use this index and build a path to the volume property which resides in the mixer device of the currently selected track", "linecount" : 6, "patching_rect" : [ 91.0, 283.0, 112.0, 75.0 ], "id" : "obj-17", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "-->", "patching_rect" : [ 195.0, 219.0, 23.0, 18.0 ], "id" : "obj-16", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "first we get the index of the currently selected track", "linecount" : 3, "patching_rect" : [ 91.0, 219.0, 106.0, 41.0 ], "id" : "obj-15", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "patching_rect" : [ 91.0, 355.0, 74.0, 16.0 ], "id" : "obj-52", "fontname" : "Arial Bold", "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "hidden" : 1, "patching_rect" : [ 91.0, 379.0, 50.0, 18.0 ], "id" : "obj-18", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "patching_rect" : [ 300.0, 745.0, 60.0, 18.0 ], "id" : "obj-13", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Set Track Volume", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "patching_rect" : [ 91.0, 91.0, 295.0, 34.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "fontsize" : 24.0 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Set the level of the current track\nsamgreene.com", "linecount" : 2, "patching_rect" : [ 91.0, 123.0, 296.0, 32.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 11.0 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedTrackIndex", "patching_rect" : [ 219.0, 219.0, 163.0, 18.0 ], "id" : "obj-3", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "fontsize" : 10.0, "outlettype" : [ "int", "bang" ] } } , { "box" : { "maxclass" : "message", "text" : "set value $1", "patching_rect" : [ 260.0, 713.0, 68.0, 16.0 ], "id" : "obj-12", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "clip 0. 1.", "patching_rect" : [ 260.0, 681.0, 51.0, 18.0 ], "id" : "obj-10", "fontname" : "Arial Bold", "numinlets" : 3, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "path live_set visible_tracks $1 mixer_device volume", "patching_rect" : [ 219.0, 251.0, 258.0, 16.0 ], "id" : "obj-8", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "patching_rect" : [ 219.0, 307.0, 51.0, 18.0 ], "id" : "obj-5", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 3, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "fontsize" : 10.0, "outlettype" : [ "", "", "" ] } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 582.0, 128.0, 23.0, 23.0 ], "id" : "obj-1", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "float" ], "comment" : "Set track volume - val between 0 and 1 - use second output of live.slider" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-21", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-32", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-33", 0 ], "destination" : [ "obj-21", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-31", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-30", 0 ], "destination" : [ "obj-21", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-36", 1 ], "destination" : [ "obj-32", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-36", 0 ], "destination" : [ "obj-33", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-34", 1 ], "destination" : [ "obj-36", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 1 ], "destination" : [ "obj-31", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-30", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-34", 0 ], "destination" : [ "obj-35", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-47", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-42", 0 ], "destination" : [ "obj-43", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-43", 0 ], "destination" : [ "obj-47", 3 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-47", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-46", 0 ], "destination" : [ "obj-47", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-47", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-27", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-28", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 1 ], "destination" : [ "obj-28", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-6", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 1 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 2 ], "destination" : [ "obj-13", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ 613.5, 216.0, 228.5, 216.0 ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-14", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-21", 1 ], "hidden" : 0, "midpoints" : [ ] } } ] } , "saved_object_attributes" : { "default_fontname" : "Arial", "default_fontsize" : 12.0, "fontname" : "Arial", "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, "default_fontface" : 0 } } } , { "box" : { "maxclass" : "comment", "text" : "Stop Track", "presentation_linecount" : 2, "patching_rect" : [ 587.0, 700.0, 150.0, 18.0 ], "presentation" : 1, "id" : "obj-46", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 293.0, 64.0, 42.0, 29.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "OVR (map)", "presentation_linecount" : 2, "patching_rect" : [ 617.0, 700.0, 150.0, 18.0 ], "presentation" : 1, "id" : "obj-45", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 373.0, 64.0, 46.0, 29.0 ] } } , { "box" : { "maxclass" : "live.button", "varname" : "live.button[9]", "patching_rect" : [ 114.0, 679.0, 15.0, 15.0 ], "presentation" : 1, "id" : "obj-44", "parameter_enable" : 1, "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "presentation_rect" : [ 348.0, 63.0, 15.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_enum" : [ "off", "on" ], "parameter_exponent" : 1.0, "parameter_unitstyle" : 10, "parameter_mmax" : 1.0, "parameter_mmin" : 0.0, "parameter_type" : 2, "parameter_initial_enable" : 0, "parameter_shortname" : "live.button[9]", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.button[9]", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "live.button", "varname" : "live.button[8]", "patching_rect" : [ 86.0, 679.0, 15.0, 15.0 ], "presentation" : 1, "id" : "obj-43", "parameter_enable" : 1, "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "presentation_rect" : [ 267.0, 63.0, 15.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_enum" : [ "off", "on" ], "parameter_exponent" : 1.0, "parameter_unitstyle" : 10, "parameter_mmax" : 1.0, "parameter_mmin" : 0.0, "parameter_type" : 2, "parameter_initial_enable" : 0, "parameter_shortname" : "live.button[8]", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.button[8]", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "newobj", "text" : "print disarming", "patching_rect" : [ 524.0, 552.0, 83.0, 18.0 ], "id" : "obj-40", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "newobj", "text" : "print arming", "patching_rect" : [ 80.0, 560.0, 69.0, 18.0 ], "id" : "obj-38", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "LinearAbleton\nsamgreene.com", "linecount" : 2, "presentation_linecount" : 2, "patching_rect" : [ 550.0, 818.0, 150.0, 29.0 ], "presentation" : 1, "id" : "obj-37", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 711.0, 69.0, 150.0, 29.0 ] } } , { "box" : { "maxclass" : "live.line", "patching_rect" : [ 855.0, 324.0, 5.0, 116.0 ], "presentation" : 1, "id" : "obj-1", "numinlets" : 1, "numoutlets" : 0, "presentation_rect" : [ 221.0, 109.0, 5.0, 49.0 ] } } , { "box" : { "maxclass" : "live.button", "varname" : "live.button[1]", "patching_rect" : [ 312.0, 729.0, 15.0, 15.0 ], "presentation" : 1, "id" : "obj-39", "parameter_enable" : 1, "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "presentation_rect" : [ 119.0, 63.0, 15.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_enum" : [ "off", "on" ], "parameter_exponent" : 1.0, "parameter_unitstyle" : 10, "parameter_mmax" : 1.0, "parameter_mmin" : 0.0, "parameter_type" : 2, "parameter_initial_enable" : 0, "parameter_shortname" : "live.button[1]", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.button[1]", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.DisarmSelectedTrack", "patching_rect" : [ 488.0, 575.0, 152.0, 18.0 ], "id" : "obj-36", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "live.line", "patching_rect" : [ 838.0, 324.0, 5.0, 116.0 ], "presentation" : 1, "id" : "obj-28", "numinlets" : 1, "numoutlets" : 0, "presentation_rect" : [ 7.0, 97.0, 793.0, 5.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "gate", "patching_rect" : [ 502.0, 512.0, 52.5, 18.0 ], "id" : "obj-27", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "gate", "patching_rect" : [ 80.0, 524.0, 47.5, 18.0 ], "id" : "obj-26", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.ArmSelectedTrack", "patching_rect" : [ 40.0, 581.0, 138.0, 18.0 ], "id" : "obj-24", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "Record enable selected track", "patching_rect" : [ 630.0, 657.0, 150.0, 18.0 ], "presentation" : 1, "id" : "obj-23", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 54.0, 111.0, 150.0, 18.0 ] } } , { "box" : { "maxclass" : "live.toggle", "varname" : "live.toggle", "patching_rect" : [ 714.0, 498.0, 68.0, 16.0 ], "presentation" : 1, "id" : "obj-19", "parameter_enable" : 1, "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "presentation_rect" : [ 30.0, 112.0, 15.0, 15.058824 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_enum" : [ "off", "on" ], "parameter_exponent" : 1.0, "parameter_unitstyle" : 0, "parameter_mmax" : 1.0, "parameter_mmin" : 0.0, "parameter_initial" : [ 1 ], "parameter_type" : 2, "parameter_initial_enable" : 1, "parameter_shortname" : "live.toggle", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.toggle", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "comment", "text" : "Next Track", "patching_rect" : [ 584.0, 791.0, 74.0, 18.0 ], "presentation" : 1, "id" : "obj-35", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 178.0, 36.0, 74.0, 18.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Previous Track\n", "patching_rect" : [ 595.0, 811.0, 86.0, 18.0 ], "presentation" : 1, "id" : "obj-34", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 24.0, 36.0, 86.0, 18.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Next Scene", "patching_rect" : [ 603.0, 743.0, 77.0, 18.0 ], "presentation" : 1, "id" : "obj-33", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 179.0, 63.0, 77.0, 18.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Track Volume", "patching_rect" : [ 594.0, 409.0, 150.0, 18.0 ], "presentation" : 1, "id" : "obj-32", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 554.0, 102.0, 74.0, 18.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Previous Scene", "patching_rect" : [ 597.0, 767.0, 91.0, 18.0 ], "presentation" : 1, "id" : "obj-31", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 24.0, 63.0, 91.0, 18.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Undo", "patching_rect" : [ 496.0, 363.0, 47.0, 18.0 ], "presentation" : 1, "id" : "obj-30", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 375.0, 36.0, 47.0, 18.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Redo", "patching_rect" : [ 408.0, 363.0, 45.0, 18.0 ], "presentation" : 1, "id" : "obj-29", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 293.0, 36.0, 42.0, 18.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "p setTrackVolume", "patching_rect" : [ 579.0, 487.0, 97.0, 18.0 ], "id" : "obj-25", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "patcher" : { "fileversion" : 1, "rect" : [ 219.0, 323.0, 766.0, 605.0 ], "bglocked" : 0, "defrect" : [ 219.0, 323.0, 766.0, 605.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "speedlim 100", "patching_rect" : [ 553.0, 157.0, 73.0, 18.0 ], "id" : "obj-2", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "comment", "text" : "if the track is not part of the visible tracks list we consider it being the master track", "linecount" : 5, "patching_rect" : [ 341.0, 269.0, 87.0, 64.0 ], "id" : "obj-29", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "message", "text" : "path live_set master_track mixer_device volume", "patching_rect" : [ 333.0, 245.0, 240.0, 16.0 ], "id" : "obj-28", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "patching_rect" : [ 61.0, 517.0, 83.0, 16.0 ], "id" : "obj-26", "fontname" : "Arial Bold", "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "hidden" : 1, "patching_rect" : [ 61.0, 541.0, 50.0, 18.0 ], "id" : "obj-27", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "comment", "text" : "-->", "patching_rect" : [ 165.0, 485.0, 23.0, 18.0 ], "id" : "obj-24", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "and set the value to the new value", "linecount" : 2, "patching_rect" : [ 61.0, 485.0, 107.0, 29.0 ], "id" : "obj-25", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "-->", "patching_rect" : [ 165.0, 421.0, 23.0, 18.0 ], "id" : "obj-22", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "change it", "patching_rect" : [ 109.0, 421.0, 54.0, 18.0 ], "id" : "obj-23", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "-->", "patching_rect" : [ 165.0, 365.0, 23.0, 18.0 ], "id" : "obj-20", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "-->", "patching_rect" : [ 165.0, 253.0, 23.0, 18.0 ], "id" : "obj-19", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "now we use this index and build a path to the volume property which resides in the mixer device of the currently selected track", "linecount" : 6, "patching_rect" : [ 61.0, 253.0, 112.0, 75.0 ], "id" : "obj-17", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "-->", "patching_rect" : [ 165.0, 189.0, 23.0, 18.0 ], "id" : "obj-16", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "first we get the index of the currently selected track", "linecount" : 3, "patching_rect" : [ 61.0, 189.0, 106.0, 41.0 ], "id" : "obj-15", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "patching_rect" : [ 61.0, 325.0, 74.0, 16.0 ], "id" : "obj-52", "fontname" : "Arial Bold", "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "hidden" : 1, "patching_rect" : [ 61.0, 349.0, 50.0, 18.0 ], "id" : "obj-18", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "patching_rect" : [ 255.0, 451.0, 60.0, 18.0 ], "id" : "obj-13", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Set Track Volume", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "patching_rect" : [ 61.0, 61.0, 295.0, 34.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "fontsize" : 24.0 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Set the level of the current track\nsamgreene.com", "linecount" : 2, "patching_rect" : [ 61.0, 93.0, 296.0, 32.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 11.0 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedTrackIndex", "patching_rect" : [ 189.0, 189.0, 163.0, 18.0 ], "id" : "obj-3", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "fontsize" : 10.0, "outlettype" : [ "int", "bang" ] } } , { "box" : { "maxclass" : "message", "text" : "set value $1", "patching_rect" : [ 215.0, 419.0, 68.0, 16.0 ], "id" : "obj-12", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "clip 0. 1.", "patching_rect" : [ 215.0, 387.0, 51.0, 18.0 ], "id" : "obj-10", "fontname" : "Arial Bold", "numinlets" : 3, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "path live_set visible_tracks $1 mixer_device volume", "patching_rect" : [ 189.0, 221.0, 258.0, 16.0 ], "id" : "obj-8", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "patching_rect" : [ 189.0, 277.0, 51.0, 18.0 ], "id" : "obj-5", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 3, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "fontsize" : 10.0, "outlettype" : [ "", "", "" ] } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 552.0, 98.0, 19.0, 19.0 ], "id" : "obj-1", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "comment" : "Set track volume - val between 0 and 1 - use second output of live.slider" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ 562.5, 372.0, 224.5, 372.0 ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ 562.5, 186.0, 198.5, 186.0 ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-27", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-28", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 1 ], "destination" : [ "obj-28", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 1 ], "destination" : [ "obj-13", 1 ], "hidden" : 0, "midpoints" : [ ] } } ] } , "saved_object_attributes" : { "default_fontname" : "Arial", "default_fontsize" : 12.0, "fontname" : "Arial", "globalpatchername" : "", "fontface" : 0, "fontsize" : 12.0, "default_fontface" : 0 } } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.SetTrackVolume", "patching_rect" : [ 669.0, 461.0, 129.0, 18.0 ], "id" : "obj-22", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "live.slider", "varname" : "live.slider", "shownumber" : 0, "patching_rect" : [ 547.0, 329.0, 39.0, 95.0 ], "presentation" : 1, "id" : "obj-16", "parameter_enable" : 1, "numinlets" : 1, "showname" : 0, "numoutlets" : 2, "outlettype" : [ "", "float" ], "presentation_rect" : [ 569.0, 27.0, 28.0, 62.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_exponent" : 1.0, "parameter_unitstyle" : 0, "parameter_mmax" : 127.0, "parameter_mmin" : 0.0, "parameter_type" : 0, "parameter_initial_enable" : 0, "parameter_shortname" : "live.slider", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.slider", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "live.button", "varname" : "live.button[7]", "patching_rect" : [ 382.0, 362.0, 15.0, 15.0 ], "presentation" : 1, "id" : "obj-21", "parameter_enable" : 1, "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "presentation_rect" : [ 267.0, 36.0, 15.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_enum" : [ "off", "on" ], "parameter_exponent" : 1.0, "parameter_unitstyle" : 10, "parameter_mmax" : 1.0, "parameter_mmin" : 0.0, "parameter_type" : 2, "parameter_initial_enable" : 0, "parameter_shortname" : "live.button[6]", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.button[7]", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "live.button", "varname" : "live.button[6]", "patching_rect" : [ 464.0, 362.0, 15.0, 15.0 ], "presentation" : 1, "id" : "obj-20", "parameter_enable" : 1, "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "presentation_rect" : [ 348.0, 36.0, 15.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_enum" : [ "off", "on" ], "parameter_exponent" : 1.0, "parameter_unitstyle" : 10, "parameter_mmax" : 1.0, "parameter_mmin" : 0.0, "parameter_type" : 2, "parameter_initial_enable" : 0, "parameter_shortname" : "live.button[6]", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.button[6]", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.Redo", "patching_rect" : [ 398.0, 387.0, 76.0, 18.0 ], "id" : "obj-18", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.Undo", "patching_rect" : [ 478.0, 388.0, 76.0, 18.0 ], "id" : "obj-17", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "comment", "text" : "Arm Selected Track", "patching_rect" : [ 136.0, 378.0, 103.0, 18.0 ], "presentation" : 1, "id" : "obj-15", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 459.0, 34.0, 111.0, 18.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "Fire Selected Clip", "patching_rect" : [ 119.0, 335.0, 99.0, 18.0 ], "presentation" : 1, "id" : "obj-13", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0, "presentation_rect" : [ 459.0, 64.0, 103.0, 18.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.ToggleArmSelectedTrack", "patching_rect" : [ 118.0, 407.0, 171.0, 18.0 ], "id" : "obj-14", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.SelectNextScene", "patching_rect" : [ 347.0, 754.0, 131.0, 18.0 ], "id" : "obj-12", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.SelectPreviousScene", "patching_rect" : [ 318.0, 780.0, 152.0, 18.0 ], "id" : "obj-11", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.SelectPreviousTrack", "patching_rect" : [ 277.0, 632.0, 149.0, 18.0 ], "id" : "obj-10", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.SelectNextTrack", "patching_rect" : [ 345.0, 577.0, 128.0, 18.0 ], "id" : "obj-7", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "live.button", "varname" : "live.button[5]", "patching_rect" : [ 118.0, 380.0, 15.0, 15.0 ], "presentation" : 1, "id" : "obj-6", "parameter_enable" : 1, "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "presentation_rect" : [ 430.0, 36.0, 15.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_enum" : [ "off", "on" ], "parameter_exponent" : 1.0, "parameter_unitstyle" : 10, "parameter_mmax" : 1.0, "parameter_mmin" : 0.0, "parameter_type" : 2, "parameter_initial_enable" : 0, "parameter_shortname" : "live.button[1]", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.button[5]", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "live.button", "varname" : "live.button[4]", "patching_rect" : [ 342.0, 677.0, 15.0, 15.0 ], "presentation" : 1, "id" : "obj-5", "parameter_enable" : 1, "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "presentation_rect" : [ 150.0, 63.0, 15.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_enum" : [ "off", "on" ], "parameter_exponent" : 1.0, "parameter_unitstyle" : 10, "parameter_mmax" : 1.0, "parameter_mmin" : 0.0, "parameter_type" : 2, "parameter_initial_enable" : 0, "parameter_shortname" : "live.button[1]", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.button[4]", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "live.button", "varname" : "live.button[3]", "patching_rect" : [ 328.0, 351.0, 44.0, 44.0 ], "presentation" : 1, "id" : "obj-4", "bgcolor" : [ 1.0, 0.05098, 0.0, 1.0 ], "parameter_enable" : 1, "numinlets" : 1, "numoutlets" : 1, "bordercolor" : [ 1.0, 0.0, 0.34902, 1.0 ], "outlettype" : [ "" ], "activebgcolor" : [ 1.0, 0.0, 0.0, 1.0 ], "presentation_rect" : [ 150.0, 36.0, 15.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_enum" : [ "off", "on" ], "parameter_exponent" : 1.0, "parameter_unitstyle" : 10, "parameter_mmax" : 1.0, "parameter_mmin" : 0.0, "parameter_type" : 2, "parameter_initial_enable" : 0, "parameter_shortname" : "live.button[1]", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.button[3]", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "live.button", "varname" : "live.button[2]", "patching_rect" : [ 278.0, 372.0, 15.0, 15.0 ], "presentation" : 1, "id" : "obj-2", "parameter_enable" : 1, "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "presentation_rect" : [ 119.0, 36.0, 15.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_enum" : [ "off", "on" ], "parameter_exponent" : 1.0, "parameter_unitstyle" : 10, "parameter_mmax" : 1.0, "parameter_mmin" : 0.0, "parameter_initial" : [ 0.0 ], "parameter_type" : 2, "parameter_initial_enable" : 0, "parameter_shortname" : "live.button[1]", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.button[2]", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "live.button", "varname" : "live.button", "patching_rect" : [ 82.0, 325.0, 29.0, 32.085106 ], "presentation" : 1, "id" : "obj-8", "parameter_enable" : 1, "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "presentation_rect" : [ 430.0, 63.0, 14.0, 15.489362 ], "saved_attribute_attributes" : { "valueof" : { "parameter_speedlim" : 0, "parameter_steps" : 0, "parameter_enum" : [ "off", "on" ], "parameter_exponent" : 1.0, "parameter_unitstyle" : 10, "parameter_mmax" : 1.0, "parameter_mmin" : 0.0, "parameter_type" : 2, "parameter_initial_enable" : 0, "parameter_shortname" : "live.button", "parameter_invisible" : 0, "parameter_modmax" : 127.0, "parameter_annotation_name" : "", "parameter_longname" : "live.button", "parameter_modmin" : 0.0, "parameter_linknames" : 0, "parameter_modmode" : 0, "parameter_info" : "", "parameter_order" : 0, "parameter_units" : "" } } } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.FireSelectedClip", "patching_rect" : [ 82.0, 438.0, 129.0, 18.0 ], "id" : "obj-3", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 812.0, 491.0, 128.0, 128.0 ], "presentation" : 1, "id" : "obj-56", "numinlets" : 1, "numoutlets" : 0, "presentation_rect" : [ 109.0, 26.0, 348.0, 61.0 ] } } , { "box" : { "maxclass" : "panel", "patching_rect" : [ 813.0, 628.0, 128.0, 128.0 ], "presentation" : 1, "id" : "obj-57", "bgcolor" : [ 1.0, 0.356863, 0.015686, 0.337255 ], "numinlets" : 1, "numoutlets" : 0, "presentation_rect" : [ 567.0, 27.0, 37.0, 62.0 ] } } ], "lines" : [ { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-82", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-43", 0 ], "destination" : [ "obj-60", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-59", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-58", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-58", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-51", 0 ], "destination" : [ "obj-41", 3 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-49", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-49", 0 ], "destination" : [ "obj-50", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-48", 0 ], "destination" : [ "obj-47", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-48", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-42", 0 ], "destination" : [ "obj-41", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 1 ], "destination" : [ "obj-41", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-26", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-26", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-38", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-27", 0 ], "destination" : [ "obj-40", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-27", 0 ], "destination" : [ "obj-36", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-20", 0 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-21", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-27", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-26", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-27", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-24", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-39", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-64", 9 ], "destination" : [ "obj-81", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-64", 8 ], "destination" : [ "obj-82", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-64", 7 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-64", 6 ], "destination" : [ "obj-84", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-64", 5 ], "destination" : [ "obj-85", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-64", 4 ], "destination" : [ "obj-70", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-64", 3 ], "destination" : [ "obj-69", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-64", 2 ], "destination" : [ "obj-68", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-64", 1 ], "destination" : [ "obj-67", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-64", 0 ], "destination" : [ "obj-66", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-64", 0 ], "destination" : [ "obj-65", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-62", 0 ], "destination" : [ "obj-63", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-61", 0 ], "destination" : [ "obj-62", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-81", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-70", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-66", 0 ], "destination" : [ "obj-39", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-67", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-27", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-83", 0 ], "destination" : [ "obj-21", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-62", 0 ], "destination" : [ "obj-64", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-84", 0 ], "destination" : [ "obj-71", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-71", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-85", 0 ], "destination" : [ "obj-72", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-72", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-68", 0 ], "destination" : [ "obj-43", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-84", 0 ], "destination" : [ "obj-73", 0 ], "hidden" : 0, "midpoints" : [ ] } } ], "parameters" : { "obj-4" : [ "live.button[3]", "live.button[1]", 0 ], "obj-20" : [ "live.button[6]", "live.button[6]", 0 ], "obj-44" : [ "live.button[9]", "live.button[9]", 0 ], "obj-5" : [ "live.button[4]", "live.button[1]", 0 ], "obj-21" : [ "live.button[7]", "live.button[6]", 0 ], "obj-8" : [ "live.button", "live.button", 0 ], "obj-39" : [ "live.button[1]", "live.button[1]", 0 ], "obj-16" : [ "live.slider", "live.slider", 0 ], "obj-6" : [ "live.button[5]", "live.button[1]", 0 ], "obj-19" : [ "live.toggle", "live.toggle", 0 ], "obj-51" : [ "live.toggle[1]", "live.toggle[1]", 0 ], "obj-2" : [ "live.button[2]", "live.button[1]", 0 ], "obj-43" : [ "live.button[8]", "live.button[8]", 0 ] } , "latency" : 0 } } { "patcher" : { "fileversion" : 1, "rect" : [ 204.0, 196.0, 555.0, 407.0 ], "bglocked" : 0, "defrect" : [ 204.0, 196.0, 555.0, 407.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "-->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-18", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 128.0, 328.0, 21.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "call the method fire on it to fire the contained clip", "linecount" : 3, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-19", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 328.0, 110.0, 41.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "-->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-16", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 144.0, 248.0, 21.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "locate the clipslot in the currently selected track and the currently selected scene", "linecount" : 3, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-17", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 248.0, 134.0, 41.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "if the Master Track is selected we fire the currently selected scene", "linecount" : 3, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-15", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 416.0, 208.0, 134.0, 41.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "-->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-12", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 144.0, 192.0, 21.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "then we need the index of the currently selected track", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-14", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 192.0, 134.0, 29.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "-->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-10", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 144.0, 120.0, 21.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "first we need the index of the currently selected scene", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-26", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 120.0, 135.0, 29.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Fire Selected Clip", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "numoutlets" : 0, "fontsize" : 24.0, "patching_rect" : [ 16.0, 16.0, 311.0, 34.0 ], "numinlets" : 1, "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Fire the clip that is determinde by the currently selected (highlighted) scene and track.", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numoutlets" : 0, "fontsize" : 11.0, "patching_rect" : [ 16.0, 48.0, 315.0, 32.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.FireSelectedScene", "id" : "obj-13", "fontname" : "Arial Bold", "numoutlets" : 0, "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 392.0, 248.0, 140.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedTrackIndex", "id" : "obj-9", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 168.0, 192.0, 243.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b i", "id" : "obj-8", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "int" ], "fontsize" : 10.0, "patching_rect" : [ 168.0, 152.0, 33.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "pack 0 0", "id" : "obj-4", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 168.0, 224.0, 51.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "call fire", "id" : "obj-11", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 152.0, 328.0, 47.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-7", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 192.0, 296.0, 36.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-6", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 168.0, 352.0, 60.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-5", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 168.0, 272.0, 67.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "path live_set visible_tracks $1 clip_slots $2", "id" : "obj-2", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 168.0, 248.0, 217.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "inlet", "id" : "obj-1", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 168.0, 88.0, 18.0, 18.0 ], "numinlets" : 0, "comment" : "" } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedSceneIndex", "id" : "obj-3", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "int" ], "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 168.0, 120.0, 165.0, 18.0 ], "numinlets" : 1 } } ], "lines" : [ { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 1 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-6", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 1 ], "destination" : [ "obj-4", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 1 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 244.0, 184.0, 637.0, 445.0 ], "bglocked" : 0, "defrect" : [ 244.0, 184.0, 637.0, 445.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "--->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-22", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 128.0, 344.0, 27.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "find the id of the selected scene in the list of scenes and output its position (== its index) in the list ", "linecount" : 5, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-21", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 344.0, 122.0, 64.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "--->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-25", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 112.0, 232.0, 27.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "after the live.object points to the current Live Set we ask it for a list of scenes", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-24", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 232.0, 108.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "--->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-23", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 128.0, 152.0, 27.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "let the live.path point to the current Live Set and feed the live.object below with its ID", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-53", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 152.0, 117.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< first we set the live.path to the main view of the current Live Set and feed the live.object below with its ID", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-26", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 424.0, 152.0, 149.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< after the live.object points to the current Live Set's main view we ask it for the id of the currently selected scene - we will get something like \"id 1\"", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-16", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 424.0, 264.0, 192.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "id" : "obj-17", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 424.0, 312.0, 83.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-20", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 424.0, 336.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "id" : "obj-52", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 424.0, 200.0, 74.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-51", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 424.0, 224.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "button", "prototypename" : "M4L.patching", "id" : "obj-15", "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 312.0, 128.0, 18.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Get Selected Scene Index", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "numoutlets" : 0, "fontsize" : 24.0, "patching_rect" : [ 16.0, 16.0, 311.0, 34.0 ], "numinlets" : 1, "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Get the index of the currently selected/highlighted scene.", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numoutlets" : 0, "fontsize" : 11.0, "patching_rect" : [ 16.0, 48.0, 293.0, 19.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-3", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 312.0, 312.0, 36.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-19", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 192.0, 200.0, 37.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-18", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 336.0, 200.0, 37.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "route selected_scene", "id" : "obj-14", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 312.0, 288.0, 112.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "route scenes", "id" : "obj-13", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 168.0, 288.0, 72.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "get selected_scene", "id" : "obj-9", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 256.0, 232.0, 103.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "path live_set view", "id" : "obj-10", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 312.0, 152.0, 96.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-11", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 312.0, 264.0, 61.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-12", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 312.0, 176.0, 66.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.RemoteMatchIdToIndex", "id" : "obj-8", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 168.0, 344.0, 180.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "get scenes", "id" : "obj-7", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 144.0, 232.0, 63.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "path live_set", "id" : "obj-6", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 168.0, 152.0, 71.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-5", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 168.0, 264.0, 61.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-4", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 168.0, 176.0, 66.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "outlet", "id" : "obj-2", "numoutlets" : 0, "patching_rect" : [ 168.0, 376.0, 18.0, 18.0 ], "numinlets" : 1, "comment" : "" } } , { "box" : { "maxclass" : "inlet", "id" : "obj-1", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 312.0, 96.0, 18.0, 18.0 ], "numinlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 1 ], "destination" : [ "obj-8", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-19", 1 ], "destination" : [ "obj-5", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 1 ], "destination" : [ "obj-11", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ 321.5, 335.0, 248.0, 335.0, 248.0, 143.0, 177.5, 143.0 ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 1 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 1 ], "destination" : [ "obj-19", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-51", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 1, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 680.0, 351.0, 248.0, 276.0 ], "bglocked" : 0, "defrect" : [ 680.0, 351.0, 248.0, 276.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "needs an index in the format \"id 1\" in the right input and a list of indices in the format \"id 1 id 2 id 3\" in the left input and returns the position of the index in the list or, if not found, a bang at the right outlet.", "linecount" : 5, "patching_rect" : [ 16.0, 32.0, 219.0, 64.0 ], "id" : "obj-12", "fontname" : "Arial", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "comment", "text" : "A helper patch to convert an id to an index.", "patching_rect" : [ 16.0, 16.0, 216.0, 18.0 ], "id" : "obj-11", "fontname" : "Arial Bold", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "numinlets" : 1, "numoutlets" : 0, "fontsize" : 10.0 } } , { "box" : { "maxclass" : "outlet", "patching_rect" : [ 96.0, 232.0, 18.0, 18.0 ], "id" : "obj-9", "numinlets" : 1, "numoutlets" : 0, "comment" : "" } } , { "box" : { "maxclass" : "newobj", "text" : "sel 0", "patching_rect" : [ 96.0, 200.0, 35.0, 18.0 ], "id" : "obj-8", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "bang", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "- 1", "patching_rect" : [ 56.0, 200.0, 34.0, 18.0 ], "id" : "obj-4", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "zl sub", "patching_rect" : [ 56.0, 176.0, 59.0, 18.0 ], "id" : "obj-7", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "route id", "patching_rect" : [ 96.0, 144.0, 47.0, 18.0 ], "id" : "obj-6", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "zl delace", "patching_rect" : [ 16.0, 144.0, 59.0, 18.0 ], "id" : "obj-5", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 2, "fontsize" : 10.0, "outlettype" : [ "", "" ] } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 16.0, 112.0, 18.0, 18.0 ], "id" : "obj-3", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "comment" : "" } } , { "box" : { "maxclass" : "inlet", "patching_rect" : [ 96.0, 112.0, 18.0, 18.0 ], "id" : "obj-2", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "comment" : "" } } , { "box" : { "maxclass" : "outlet", "patching_rect" : [ 56.0, 232.0, 18.0, 18.0 ], "id" : "obj-1", "numinlets" : 1, "numoutlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-7", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 1 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 569.0, 163.0, 661.0, 490.0 ], "bglocked" : 0, "defrect" : [ 569.0, 163.0, 661.0, 490.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "--->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-21", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 144.0, 376.0, 27.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "find the id of the selected track in the list of tracks and output its position (== its index) in the list ", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-27", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 376.0, 138.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< first we set the live.path to the main view of the current set and feed the live.object below with its ID", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-26", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 496.0, 160.0, 142.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "--->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-25", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 112.0, 240.0, 27.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "after the live.object points to the current Live Set we ask it for a list of currently visible tracks (NOT including return tracks)", "linecount" : 7, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-24", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 240.0, 108.0, 87.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "--->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-23", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 128.0, 160.0, 27.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< bang if the selected track is not part of the visible tracks list", "linecount" : 3, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-22", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 472.0, 376.0, 144.0, 41.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< after the live.object points to the current Live Set's main view we ask it for the id of the currently selected track - we will get something like \"id 1\"", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-16", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 472.0, 272.0, 178.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "id" : "obj-17", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 472.0, 320.0, 83.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-20", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 472.0, 344.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "let the live.path point to the current Live Set and feed the live.object below with its ID", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-53", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 160.0, 112.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "id" : "obj-52", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 496.0, 208.0, 74.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-51", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 496.0, 232.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Get Selected Track Index", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "numoutlets" : 0, "fontsize" : 24.0, "patching_rect" : [ 16.0, 16.0, 295.0, 34.0 ], "numinlets" : 1, "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Get the index of the currently selected (highlighted) track in the Live set.", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numoutlets" : 0, "fontsize" : 11.0, "patching_rect" : [ 16.0, 48.0, 320.0, 32.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "outlet", "id" : "obj-15", "numoutlets" : 0, "patching_rect" : [ 448.0, 416.0, 18.0, 18.0 ], "numinlets" : 1, "comment" : "bang if the selected track is not part of the visible tracks list" } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-3", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 432.0, 328.0, 35.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-19", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 224.0, 208.0, 37.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-18", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 416.0, 208.0, 37.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "zl slice 1", "id" : "obj-14", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 392.0, 304.0, 59.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "route visible_tracks", "id" : "obj-13", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 200.0, 304.0, 104.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "get selected_track", "id" : "obj-9", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 320.0, 240.0, 100.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "path live_set view", "id" : "obj-10", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 392.0, 160.0, 96.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-11", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 392.0, 272.0, 61.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-12", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 392.0, 184.0, 67.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.RemoteMatchIdToIndex", "id" : "obj-8", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 200.0, 376.0, 267.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "get visible_tracks", "id" : "obj-7", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 144.0, 240.0, 95.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "path live_set", "id" : "obj-6", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 200.0, 160.0, 71.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-5", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 200.0, 272.0, 61.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-4", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 200.0, 184.0, 66.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "outlet", "id" : "obj-2", "numoutlets" : 0, "patching_rect" : [ 200.0, 416.0, 18.0, 18.0 ], "numinlets" : 1, "comment" : "" } } , { "box" : { "maxclass" : "inlet", "id" : "obj-1", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 392.0, 112.0, 18.0, 18.0 ], "numinlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 1 ], "destination" : [ "obj-8", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 1 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-19", 1 ], "destination" : [ "obj-5", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-51", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 1 ], "destination" : [ "obj-11", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ 441.5, 355.0, 312.0, 355.0, 312.0, 148.0, 209.5, 148.0 ] } } , { "patchline" : { "source" : [ "obj-14", 1 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 1 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 1 ], "destination" : [ "obj-19", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 193.0, 128.0, 455.0, 464.0 ], "bglocked" : 0, "defrect" : [ 193.0, 128.0, 455.0, 464.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "< the id we get from the call above is used to point this live.object to the currently selected scene - after that we call the method fire_as_selected to fire the scene", "linecount" : 5, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-1", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 240.0, 360.0, 165.0, 64.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "id" : "obj-17", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 240.0, 256.0, 83.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-20", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 240.0, 280.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< first we set the live.path to the main view of the current Live Set and feed the live.object below with its ID", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-26", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 240.0, 136.0, 169.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "id" : "obj-52", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 240.0, 184.0, 74.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-51", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 240.0, 208.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "button", "prototypename" : "M4L.patching", "id" : "obj-14", "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 120.0, 112.0, 18.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "route selected_scene", "id" : "obj-13", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 120.0, 304.0, 112.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-18", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 144.0, 192.0, 37.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "get selected_scene", "id" : "obj-9", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 64.0, 232.0, 103.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "path live_set view", "id" : "obj-10", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 120.0, 136.0, 96.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-8", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 120.0, 264.0, 61.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-12", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 120.0, 160.0, 67.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< now we ask for the value of the property selected_scene", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-4", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 240.0, 232.0, 147.0, 29.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< properties are output in the format \"selected_scene id 1\" so we check for the keyword \"selected_scene\"", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-2", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 240.0, 304.0, 146.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Fire Selected Scene", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "numoutlets" : 0, "fontsize" : 24.0, "patching_rect" : [ 16.0, 16.0, 246.0, 34.0 ], "numinlets" : 1, "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Fire the currently selected Scene.", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numoutlets" : 0, "fontsize" : 11.0, "patching_rect" : [ 16.0, 48.0, 277.0, 19.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "call fire_as_selected", "id" : "obj-11", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 32.0, 360.0, 109.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-7", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 120.0, 328.0, 36.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-6", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 96.0, 392.0, 60.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "inlet", "id" : "obj-23", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 120.0, 80.0, 18.0, 18.0 ], "numinlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-51", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-23", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-6", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 1 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 1 ], "destination" : [ "obj-8", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 199.0, 106.0, 517.0, 426.0 ], "bglocked" : 0, "defrect" : [ 199.0, 106.0, 517.0, 426.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "print nexttrack", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 111.0, 381.0, 80.0, 18.0 ], "numoutlets" : 0, "id" : "obj-8", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "comment", "text" : "< selects the track with the given index - only visible tracks and NOT return tracks are respected", "linecount" : 4, "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 352.0, 360.0, 140.0, 52.0 ], "numoutlets" : 0, "id" : "obj-6", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "< if the currently selected track is the last track in our track list we want to jump to the Master Track", "linecount" : 3, "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 296.0, 208.0, 195.0, 41.0 ], "numoutlets" : 0, "id" : "obj-11", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "< Get the number of visible tracks (NOT including the return tracks)", "linecount" : 2, "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 288.0, 136.0, 192.0, 29.0 ], "numoutlets" : 0, "id" : "obj-9", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "select the master track", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 32.0, 320.0, 142.0, 18.0 ], "numoutlets" : 0, "id" : "obj-7", "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "t i b", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 184.0, 272.0, 32.5, 18.0 ], "numoutlets" : 2, "id" : "obj-5", "fontname" : "Arial Bold", "outlettype" : [ "int", "bang" ] } } , { "box" : { "maxclass" : "newobj", "text" : "t i i i", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 120.0, 184.0, 147.0, 18.0 ], "numoutlets" : 3, "id" : "obj-4", "fontname" : "Arial Bold", "outlettype" : [ "int", "int", "int" ] } } , { "box" : { "maxclass" : "button", "prototypename" : "M4L.patching", "numinlets" : 1, "patching_rect" : [ 120.0, 112.0, 18.0, 18.0 ], "numoutlets" : 1, "id" : "obj-12", "outlettype" : [ "bang" ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Select Next Track", "fontsize" : 24.0, "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "numinlets" : 1, "patching_rect" : [ 16.0, 16.0, 259.0, 34.0 ], "numoutlets" : 0, "id" : "obj-48", "fontname" : "Arial Bold Italic", "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Bang selects the next track in the current Live Set.", "fontsize" : 11.0, "numinlets" : 1, "patching_rect" : [ 16.0, 48.0, 277.0, 19.0 ], "numoutlets" : 0, "id" : "obj-50", "fontname" : "Arial Italic" } } , { "box" : { "maxclass" : "newobj", "text" : "sel", "fontsize" : 10.0, "numinlets" : 2, "patching_rect" : [ 120.0, 240.0, 83.0, 18.0 ], "numoutlets" : 2, "id" : "obj-2", "fontname" : "Arial Bold", "outlettype" : [ "bang", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.SelectMasterTrack", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 32.0, 304.0, 140.0, 18.0 ], "numoutlets" : 0, "id" : "obj-1", "fontname" : "Arial Bold", "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedTrackIndex", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 120.0, 208.0, 162.0, 18.0 ], "numoutlets" : 2, "id" : "obj-3", "fontname" : "Arial Bold", "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "outlettype" : [ "int", "bang" ] } } , { "box" : { "maxclass" : "message", "text" : "0", "fontsize" : 10.0, "numinlets" : 2, "patching_rect" : [ 224.0, 304.0, 31.0, 16.0 ], "numoutlets" : 1, "id" : "obj-14", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "- 1", "fontsize" : 10.0, "numinlets" : 2, "patching_rect" : [ 120.0, 160.0, 32.0, 18.0 ], "numoutlets" : 1, "id" : "obj-15", "fontname" : "Arial Bold", "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "clip", "fontsize" : 10.0, "numinlets" : 3, "patching_rect" : [ 184.0, 336.0, 83.0, 18.0 ], "numoutlets" : 1, "id" : "obj-17", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "+ 1", "fontsize" : 10.0, "numinlets" : 2, "patching_rect" : [ 184.0, 304.0, 32.0, 18.0 ], "numoutlets" : 1, "id" : "obj-18", "fontname" : "Arial Bold", "outlettype" : [ "int" ] } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.SetSelectedTrackIndex", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 184.0, 360.0, 161.0, 18.0 ], "numoutlets" : 0, "id" : "obj-19", "fontname" : "Arial Bold", "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetVisibleTrackCount", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 120.0, 136.0, 155.0, 18.0 ], "numoutlets" : 1, "id" : "obj-20", "fontname" : "Arial Bold", "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "inlet", "numinlets" : 0, "patching_rect" : [ 120.0, 80.0, 18.0, 18.0 ], "numoutlets" : 1, "id" : "obj-25", "outlettype" : [ "" ], "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-20", 0 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-19", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-25", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 2 ], "destination" : [ "obj-17", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 1 ], "destination" : [ "obj-2", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 1 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 1 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-17", 1 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 933.0, 80.0, 488.0, 364.0 ], "bglocked" : 0, "defrect" : [ 933.0, 80.0, 488.0, 364.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "-->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-15", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 120.0, 272.0, 23.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "the list has the format \"id 1 id 2 id 3\" - so we get rid of the \"id\" tokens and count the members", "linecount" : 5, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-14", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 272.0, 107.0, 64.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< after the live.object points to the current Live Set we ask it for the list of visible tracks", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-10", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 264.0, 216.0, 208.0, 29.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "id" : "obj-12", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 264.0, 248.0, 83.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-13", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 264.0, 272.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< first we set the live.path to the current Live Set and feed the live.object below with its ID", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-53", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 264.0, 136.0, 214.0, 29.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "id" : "obj-52", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 264.0, 168.0, 74.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-51", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 264.0, 192.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Get Visible Track Count", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "numoutlets" : 0, "fontsize" : 24.0, "patching_rect" : [ 8.0, 16.0, 292.0, 34.0 ], "numinlets" : 1, "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Get the number of the visible tracks in the current Live set.", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numoutlets" : 0, "fontsize" : 11.0, "patching_rect" : [ 8.0, 48.0, 294.0, 19.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-11", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 184.0, 160.0, 33.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "outlet", "id" : "obj-9", "numoutlets" : 0, "patching_rect" : [ 144.0, 328.0, 18.0, 18.0 ], "numinlets" : 1, "comment" : "" } } , { "box" : { "maxclass" : "newobj", "text" : "zl len", "id" : "obj-8", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 144.0, 296.0, 37.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "zl delace", "id" : "obj-7", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 144.0, 272.0, 53.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "route visible_tracks", "id" : "obj-6", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 144.0, 248.0, 104.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "get visible_tracks", "id" : "obj-5", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 104.0, 192.0, 95.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "path live_set", "id" : "obj-4", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 160.0, 112.0, 71.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-3", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 160.0, 136.0, 67.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-2", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 144.0, 216.0, 73.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "inlet", "id" : "obj-1", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 160.0, 80.0, 18.0, 18.0 ], "numinlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 1 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ 169.5, 112.0, 169.5, 112.0 ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 1 ], "destination" : [ "obj-2", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-51", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 1, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 143.0, 70.0, 550.0, 588.0 ], "bglocked" : 0, "defrect" : [ 143.0, 70.0, 550.0, 588.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "< this live.object points to the current Live Set's main view - now we set the property \"selected_track\" to the given id", "linecount" : 3, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-17", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 328.0, 480.0, 187.0, 41.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "id" : "obj-18", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 328.0, 520.0, 83.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-20", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 328.0, 544.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "--->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-25", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 112.0, 320.0, 27.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "after the live.object points to the current Live Set we ask it for a list of currently visible tracks (NOT including return tracks)", "linecount" : 7, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-24", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 320.0, 108.0, 87.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "--->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-23", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 144.0, 240.0, 27.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "we need a list of visible tracks so we let the live.path point to the current Live Set and feed the live.object below with its ID", "linecount" : 5, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-53", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 240.0, 138.0, 64.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< first we set the live.path to the main view of the current Live Set and feed the live.object below with its ID", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-26", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 352.0, 160.0, 169.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "id" : "obj-52", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 352.0, 208.0, 74.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-51", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 352.0, 232.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Set Selected Track Index", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "numoutlets" : 0, "fontsize" : 24.0, "patching_rect" : [ 16.0, 16.0, 295.0, 34.0 ], "numinlets" : 1, "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Set the selected track to a given index. The index will be mapped against the list of visible tracks.", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numoutlets" : 0, "fontsize" : 11.0, "patching_rect" : [ 16.0, 48.0, 320.0, 32.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "int", "id" : "obj-16", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "int" ], "fontsize" : 10.0, "patching_rect" : [ 320.0, 272.0, 35.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "t b b l", "id" : "obj-15", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "bang", "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 272.0, 208.0, 46.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-14", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 216.0, 288.0, 37.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b i", "id" : "obj-10", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "int" ], "fontsize" : 10.0, "patching_rect" : [ 320.0, 128.0, 35.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "path live_set view", "id" : "obj-11", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 248.0, 160.0, 96.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-12", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 256.0, 480.0, 61.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-13", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 248.0, 184.0, 66.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "prepend set selected_track id", "id" : "obj-9", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 144.0, 448.0, 152.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "zl mth", "id" : "obj-8", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 232.0, 416.0, 40.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "zl delace", "id" : "obj-7", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 192.0, 392.0, 59.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "route visible_tracks", "id" : "obj-6", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 192.0, 368.0, 104.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "get visible_tracks", "id" : "obj-5", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 136.0, 320.0, 95.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "path live_set", "id" : "obj-4", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 192.0, 240.0, 71.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-3", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 192.0, 344.0, 61.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-2", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 192.0, 264.0, 67.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "inlet", "id" : "obj-1", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 320.0, 96.0, 18.0, 18.0 ], "numinlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-51", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 1 ], "destination" : [ "obj-3", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 1 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 1 ], "destination" : [ "obj-16", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 2 ], "destination" : [ "obj-12", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-13", 1 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-8", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 1 ], "destination" : [ "obj-16", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 455.0, 72.0, 528.0, 416.0 ], "bglocked" : 0, "defrect" : [ 455.0, 72.0, 528.0, 416.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "--->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-23", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 120.0, 208.0, 27.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "we need the id of the Master Track - so we set a live.path object to point at it - it will output it", "linecount" : 5, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-53", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 208.0, 108.0, 64.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< this live.object points to the current Live Set's main view - now we set the property \"selected_track\" to the given id", "linecount" : 3, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-17", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 312.0, 296.0, 187.0, 41.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "id" : "obj-18", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 312.0, 336.0, 83.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-20", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 312.0, 360.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< first we set the live.path to the main view of the current Live Set and feed the live.object below with its ID", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-26", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 312.0, 152.0, 158.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "id" : "obj-52", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 312.0, 200.0, 74.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-51", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 312.0, 224.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Select Master Track", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "numoutlets" : 0, "fontsize" : 24.0, "patching_rect" : [ 16.0, 16.0, 240.0, 34.0 ], "numinlets" : 1, "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Select the Master Track of the current Live set.", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numoutlets" : 0, "fontsize" : 11.0, "patching_rect" : [ 16.0, 48.0, 239.0, 19.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-10", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 240.0, 296.0, 60.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-9", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 264.0, 176.0, 36.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "path live_set view", "id" : "obj-8", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 248.0, 128.0, 96.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-7", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 248.0, 152.0, 50.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "prepend set selected_track", "id" : "obj-6", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 144.0, 264.0, 139.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "path live_set master_track", "id" : "obj-4", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 152.0, 208.0, 136.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-2", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 152.0, 232.0, 51.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "inlet", "id" : "obj-1", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 248.0, 96.0, 18.0, 18.0 ], "numinlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 1 ], "destination" : [ "obj-10", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-51", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 1 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 779.0, 80.0, 452.0, 412.0 ], "bglocked" : 0, "defrect" : [ 779.0, 80.0, 452.0, 412.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "< if the track index is not part of our visible track list we assume that we are to the right of our track list and so we select the last track of the visible track list which has an index of TrackCount - 1", "linecount" : 5, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-11", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 232.0, 224.0, 218.0, 64.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "button", "prototypename" : "M4L.patching", "id" : "obj-8", "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 40.0, 120.0, 18.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Select Previous Track", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "numoutlets" : 0, "fontsize" : 24.0, "patching_rect" : [ 16.0, 16.0, 259.0, 34.0 ], "numinlets" : 1, "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Bang selects the previous track in the current Live Set.", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numoutlets" : 0, "fontsize" : 11.0, "patching_rect" : [ 16.0, 48.0, 277.0, 19.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t i b", "id" : "obj-4", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "fontsize" : 10.0, "patching_rect" : [ 40.0, 256.0, 33.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t i i i", "id" : "obj-2", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "int", "int", "int" ], "fontsize" : 10.0, "patching_rect" : [ 40.0, 192.0, 181.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "int", "id" : "obj-1", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "int" ], "fontsize" : 10.0, "patching_rect" : [ 184.0, 264.0, 37.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "0", "id" : "obj-13", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 81.0, 288.0, 31.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "- 1", "id" : "obj-12", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "int" ], "fontsize" : 10.0, "patching_rect" : [ 40.0, 168.0, 32.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "clip", "id" : "obj-10", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 40.0, 320.0, 100.0, 18.0 ], "numinlets" : 3 } } , { "box" : { "maxclass" : "newobj", "text" : "- 1", "id" : "obj-5", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "int" ], "fontsize" : 10.0, "patching_rect" : [ 40.0, 288.0, 32.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.SetSelectedTrackIndex", "id" : "obj-7", "fontname" : "Arial Bold", "numoutlets" : 0, "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 104.0, 368.0, 161.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetVisibleTrackCount", "id" : "obj-6", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 40.0, 144.0, 155.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedTrackIndex", "id" : "obj-3", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 40.0, 224.0, 163.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "inlet", "id" : "obj-23", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 40.0, 88.0, 18.0, 18.0 ], "numinlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 2 ], "destination" : [ "obj-1", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 1 ], "destination" : [ "obj-10", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 1 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-10", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-23", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 1 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 121.0, 243.0, 450.0, 383.0 ], "bglocked" : 0, "defrect" : [ 121.0, 243.0, 450.0, 383.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "< after decreasing the scene index we set the new selected scene", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-8", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 232.0, 296.0, 167.0, 29.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< we need the overall count of scenes to constrain our new scene index", "linecount" : 3, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-4", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 232.0, 216.0, 168.0, 41.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< first we need the index of the currently selected scene", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-26", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 232.0, 144.0, 142.0, 29.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t i b b", "id" : "obj-2", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "int", "bang", "bang" ], "fontsize" : 10.0, "patching_rect" : [ 16.0, 176.0, 99.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "button", "prototypename" : "M4L.patching", "id" : "obj-1", "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 16.0, 120.0, 18.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Select Previous Scene", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "numoutlets" : 0, "fontsize" : 24.0, "patching_rect" : [ 16.0, 16.0, 272.0, 34.0 ], "numinlets" : 1, "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Select the scene previous to the currently selected/highlighted one.", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numoutlets" : 0, "fontsize" : 11.0, "patching_rect" : [ 16.0, 48.0, 337.0, 19.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "0", "id" : "obj-13", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 56.0, 216.0, 31.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "- 1", "id" : "obj-12", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "int" ], "fontsize" : 10.0, "patching_rect" : [ 96.0, 240.0, 32.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "clip", "id" : "obj-10", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 16.0, 264.0, 99.0, 18.0 ], "numinlets" : 3 } } , { "box" : { "maxclass" : "newobj", "text" : "- 1", "id" : "obj-5", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "int" ], "fontsize" : 10.0, "patching_rect" : [ 16.0, 216.0, 32.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.SetSelectedSceneIndex", "id" : "obj-7", "fontname" : "Arial Bold", "numoutlets" : 0, "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 16.0, 296.0, 164.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSceneCount", "id" : "obj-6", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 96.0, 216.0, 126.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedSceneIndex", "id" : "obj-3", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "int" ], "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 16.0, 144.0, 165.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "inlet", "id" : "obj-23", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 16.0, 88.0, 18.0, 18.0 ], "numinlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 2 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-23", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 1 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-10", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-10", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 297.0, 214.0, 482.0, 429.0 ], "bglocked" : 0, "defrect" : [ 297.0, 214.0, 482.0, 429.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "-->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-15", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 120.0, 288.0, 23.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "the list has the format \"id 1 id 2 id 3\" - so we get rid of the \"id\" tokens and count the members", "linecount" : 5, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-14", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 288.0, 107.0, 64.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< after the live.object points to the current Live Set we ask it for the list of scenes", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-10", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 248.0, 232.0, 208.0, 29.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "id" : "obj-12", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 248.0, 264.0, 83.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-13", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 248.0, 288.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< first we set the live.path to the current Live Set and feed the live.object below with its ID", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-53", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 248.0, 136.0, 210.0, 29.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "id" : "obj-52", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 248.0, 168.0, 74.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-51", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 248.0, 192.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Get Scene Count", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "numoutlets" : 0, "fontsize" : 24.0, "patching_rect" : [ 16.0, 16.0, 272.0, 34.0 ], "numinlets" : 1, "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Get the total number of scenes in the current Live Set.", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numoutlets" : 0, "fontsize" : 11.0, "patching_rect" : [ 16.0, 48.0, 323.0, 19.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-11", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 184.0, 160.0, 33.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "outlet", "id" : "obj-9", "numoutlets" : 0, "patching_rect" : [ 144.0, 344.0, 18.0, 18.0 ], "numinlets" : 1, "comment" : "" } } , { "box" : { "maxclass" : "newobj", "text" : "zl len", "id" : "obj-8", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 144.0, 312.0, 37.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "zl delace", "id" : "obj-7", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 144.0, 288.0, 53.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "route scenes", "id" : "obj-6", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 144.0, 264.0, 72.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "get scenes", "id" : "obj-5", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 136.0, 200.0, 63.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "path live_set", "id" : "obj-4", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 160.0, 112.0, 71.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-3", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 160.0, 136.0, 66.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-2", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 144.0, 232.0, 73.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "inlet", "id" : "obj-1", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 160.0, 80.0, 18.0, 18.0 ], "numinlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-51", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 1 ], "destination" : [ "obj-2", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 1 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 685.0, 87.0, 505.0, 603.0 ], "bglocked" : 0, "defrect" : [ 685.0, 87.0, 505.0, 603.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "--->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-23", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 144.0, 240.0, 27.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "we need a list of scenes so we let the live.path point to the current Live Set and feed the live.object below with its ID", "linecount" : 5, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-53", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 240.0, 135.0, 64.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "--->", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-25", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 112.0, 328.0, 27.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "after the live.object points to the current Live Set we ask it for a list of scenes", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-24", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 16.0, 328.0, 108.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< this live.object points to the current Live Set's main view - now we set the property \"selected_scene\" to the given id", "linecount" : 3, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-17", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 296.0, 504.0, 191.0, 41.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "id" : "obj-18", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 296.0, 544.0, 83.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-20", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 296.0, 568.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< first we set the live.path to the main view of the current Live Set and feed the live.object below with its ID", "linecount" : 4, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-26", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 320.0, 184.0, 150.0, 52.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "id" : "obj-52", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 320.0, 232.0, 74.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "id" : "obj-51", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 320.0, 256.0, 50.0, 18.0 ], "numinlets" : 1, "hidden" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Set Selected Scene Index", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "numoutlets" : 0, "fontsize" : 24.0, "patching_rect" : [ 16.0, 16.0, 310.0, 34.0 ], "numinlets" : 1, "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Set the selected scene to a given index.", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numoutlets" : 0, "fontsize" : 11.0, "patching_rect" : [ 16.0, 48.0, 208.0, 19.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "int", "id" : "obj-16", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "int" ], "fontsize" : 10.0, "patching_rect" : [ 280.0, 304.0, 35.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "t b b l", "id" : "obj-15", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "bang", "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 232.0, 208.0, 46.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "id" : "obj-14", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "" ], "fontsize" : 10.0, "patching_rect" : [ 200.0, 296.0, 37.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t b i", "id" : "obj-10", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "bang", "int" ], "fontsize" : 10.0, "patching_rect" : [ 208.0, 128.0, 107.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "path live_set view", "id" : "obj-11", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 208.0, 160.0, 96.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-12", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 216.0, 504.0, 61.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-13", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 208.0, 184.0, 67.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "prepend set selected_scene id", "id" : "obj-9", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 104.0, 472.0, 157.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "zl mth", "id" : "obj-8", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 216.0, 432.0, 40.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "zl delace", "id" : "obj-7", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 176.0, 408.0, 59.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "route scenes", "id" : "obj-6", "fontname" : "Arial Bold", "numoutlets" : 2, "outlettype" : [ "", "" ], "fontsize" : 10.0, "patching_rect" : [ 176.0, 384.0, 72.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "get scenes", "id" : "obj-5", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 152.0, 328.0, 63.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "path live_set", "id" : "obj-4", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 176.0, 240.0, 71.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "id" : "obj-3", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 176.0, 360.0, 61.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "id" : "obj-2", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "", "", "" ], "fontsize" : 10.0, "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "patching_rect" : [ 176.0, 264.0, 67.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "inlet", "id" : "obj-1", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 208.0, 88.0, 18.0, 18.0 ], "numinlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-51", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 1 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-9", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-8", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 1 ], "destination" : [ "obj-3", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 1 ], "destination" : [ "obj-16", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-15", 2 ], "destination" : [ "obj-12", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-13", 1 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 1 ], "destination" : [ "obj-16", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-4", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-9", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 665.0, 85.0, 433.0, 367.0 ], "bglocked" : 0, "defrect" : [ 665.0, 85.0, 433.0, 367.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "< after increasing the scene index we set the new selected scene", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-8", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 232.0, 296.0, 162.0, 29.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< we need the overall count of scenes to constrain our new scene index", "linecount" : 3, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-4", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 232.0, 216.0, 168.0, 41.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "< first we need the index of the currently selected scene", "linecount" : 2, "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-26", "fontname" : "Arial", "numoutlets" : 0, "fontsize" : 10.0, "patching_rect" : [ 232.0, 144.0, 142.0, 29.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "t i b b", "id" : "obj-2", "fontname" : "Arial Bold", "numoutlets" : 3, "outlettype" : [ "int", "bang", "bang" ], "fontsize" : 10.0, "patching_rect" : [ 16.0, 176.0, 99.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "button", "prototypename" : "M4L.patching", "id" : "obj-1", "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 16.0, 120.0, 18.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Select Next Scene", "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "numoutlets" : 0, "fontsize" : 24.0, "patching_rect" : [ 16.0, 16.0, 272.0, 34.0 ], "numinlets" : 1, "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Select the scene next to the currently selected/highlighted one.", "frgb" : [ 0.101961, 0.121569, 0.172549, 1.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "numoutlets" : 0, "fontsize" : 11.0, "patching_rect" : [ 16.0, 48.0, 323.0, 19.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "0", "id" : "obj-13", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 56.0, 216.0, 31.0, 16.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "- 1", "id" : "obj-12", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "int" ], "fontsize" : 10.0, "patching_rect" : [ 96.0, 240.0, 32.0, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "clip", "id" : "obj-10", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "patching_rect" : [ 16.0, 264.0, 99.0, 18.0 ], "numinlets" : 3 } } , { "box" : { "maxclass" : "newobj", "text" : "+ 1", "id" : "obj-5", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "int" ], "fontsize" : 10.0, "patching_rect" : [ 16.0, 216.0, 32.5, 18.0 ], "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.SetSelectedSceneIndex", "id" : "obj-7", "fontname" : "Arial Bold", "numoutlets" : 0, "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 16.0, 296.0, 164.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSceneCount", "id" : "obj-6", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "" ], "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 96.0, 216.0, 126.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedSceneIndex", "id" : "obj-3", "fontname" : "Arial Bold", "numoutlets" : 1, "outlettype" : [ "int" ], "fontsize" : 10.0, "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "patching_rect" : [ 16.0, 144.0, 165.0, 18.0 ], "numinlets" : 1 } } , { "box" : { "maxclass" : "inlet", "id" : "obj-23", "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 16.0, 88.0, 18.0, 18.0 ], "numinlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-10", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-10", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 1 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-23", 0 ], "destination" : [ "obj-1", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 2 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 143.0, 85.0, 814.0, 879.0 ], "bglocked" : 0, "defrect" : [ 143.0, 85.0, 814.0, 879.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "comment", "text" : "samgreene.com", "numoutlets" : 0, "patching_rect" : [ 76.0, 128.0, 150.0, 18.0 ], "id" : "obj-30", "fontname" : "Arial Bold", "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "route arm", "numoutlets" : 2, "patching_rect" : [ 218.0, 424.0, 57.0, 18.0 ], "id" : "obj-42", "fontname" : "Arial Bold", "outlettype" : [ "", "" ], "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "set arm 0", "numoutlets" : 1, "patching_rect" : [ 251.0, 506.0, 54.0, 16.0 ], "id" : "obj-40", "fontname" : "Arial Bold", "outlettype" : [ "" ], "fontsize" : 10.0, "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "sel 0 1", "numoutlets" : 3, "patching_rect" : [ 219.0, 454.0, 46.0, 18.0 ], "id" : "obj-35", "fontname" : "Arial Bold", "outlettype" : [ "bang", "bang", "" ], "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "numoutlets" : 1, "patching_rect" : [ 87.0, 562.0, 83.0, 16.0 ], "id" : "obj-26", "fontname" : "Arial Bold", "outlettype" : [ "" ], "fontsize" : 10.0, "numinlets" : 2, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "hidden" : 1, "numoutlets" : 1, "patching_rect" : [ 87.0, 586.0, 50.0, 18.0 ], "id" : "obj-27", "fontname" : "Arial Bold", "outlettype" : [ "" ], "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "and set the value to the new value", "linecount" : 2, "numoutlets" : 0, "patching_rect" : [ 84.0, 508.0, 107.0, 29.0 ], "id" : "obj-25", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "Route to On or Off based on current value", "linecount" : 3, "numoutlets" : 0, "patching_rect" : [ 85.0, 443.0, 104.0, 41.0 ], "id" : "obj-23", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "now get the value of the track's arm property", "linecount" : 3, "numoutlets" : 0, "patching_rect" : [ 80.0, 389.0, 112.0, 41.0 ], "id" : "obj-21", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "now we use this index and build a path to the track", "linecount" : 3, "numoutlets" : 0, "patching_rect" : [ 73.0, 271.0, 112.0, 41.0 ], "id" : "obj-17", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "text" : "first we get the index of the currently selected track", "linecount" : 3, "numoutlets" : 0, "patching_rect" : [ 76.0, 204.0, 106.0, 41.0 ], "id" : "obj-15", "fontname" : "Arial", "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "numoutlets" : 1, "patching_rect" : [ 76.0, 340.0, 74.0, 16.0 ], "id" : "obj-52", "fontname" : "Arial Bold", "outlettype" : [ "" ], "fontsize" : 10.0, "numinlets" : 2, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "hidden" : 1, "numoutlets" : 1, "patching_rect" : [ 76.0, 364.0, 50.0, 18.0 ], "id" : "obj-18", "fontname" : "Arial Bold", "outlettype" : [ "" ], "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "numoutlets" : 1, "patching_rect" : [ 262.0, 555.0, 60.0, 18.0 ], "id" : "obj-13", "fontname" : "Arial Bold", "outlettype" : [ "" ], "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "fontsize" : 10.0, "numinlets" : 2 } } , { "box" : { "maxclass" : "button", "numoutlets" : 1, "patching_rect" : [ 204.0, 180.0, 18.0, 18.0 ], "id" : "obj-2", "outlettype" : [ "bang" ], "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Toggle Arm of Current Track", "numoutlets" : 0, "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "patching_rect" : [ 76.0, 75.0, 398.0, 34.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ], "fontsize" : 24.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Toggle the Record Arm Button", "numoutlets" : 0, "patching_rect" : [ 76.0, 108.0, 296.0, 19.0 ], "id" : "obj-50", "fontname" : "Arial Italic", "fontsize" : 11.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedTrackIndex", "numoutlets" : 2, "patching_rect" : [ 204.0, 204.0, 163.0, 18.0 ], "id" : "obj-3", "fontname" : "Arial Bold", "outlettype" : [ "int", "bang" ], "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "message", "text" : "set arm 1", "numoutlets" : 1, "patching_rect" : [ 212.0, 526.0, 54.0, 16.0 ], "id" : "obj-12", "fontname" : "Arial Bold", "outlettype" : [ "" ], "fontsize" : 10.0, "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "get arm", "numoutlets" : 1, "patching_rect" : [ 188.0, 356.0, 47.0, 16.0 ], "id" : "obj-11", "fontname" : "Arial Bold", "outlettype" : [ "" ], "fontsize" : 10.0, "numinlets" : 2 } } , { "box" : { "maxclass" : "message", "text" : "path live_set visible_tracks $1", "numoutlets" : 1, "patching_rect" : [ 204.0, 236.0, 154.0, 16.0 ], "id" : "obj-8", "fontname" : "Arial Bold", "outlettype" : [ "" ], "fontsize" : 10.0, "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "t b l l", "numoutlets" : 3, "patching_rect" : [ 220.0, 324.0, 100.0, 18.0 ], "id" : "obj-7", "fontname" : "Arial Bold", "outlettype" : [ "bang", "", "" ], "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "numoutlets" : 1, "patching_rect" : [ 220.0, 380.0, 60.0, 18.0 ], "id" : "obj-6", "fontname" : "Arial Bold", "outlettype" : [ "" ], "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "fontsize" : 10.0, "numinlets" : 2 } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "numoutlets" : 3, "patching_rect" : [ 204.0, 292.0, 51.0, 18.0 ], "id" : "obj-5", "fontname" : "Arial Bold", "outlettype" : [ "", "", "" ], "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "fontsize" : 10.0, "numinlets" : 1 } } , { "box" : { "maxclass" : "inlet", "numoutlets" : 1, "patching_rect" : [ 204.0, 148.0, 18.0, 18.0 ], "id" : "obj-1", "outlettype" : [ "" ], "numinlets" : 0, "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-42", 0 ], "destination" : [ "obj-35", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-42", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 1 ], "destination" : [ "obj-40", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 2 ], "destination" : [ "obj-13", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 1 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-6", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-11", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-11", 0 ], "destination" : [ "obj-6", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-27", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 143.0, 85.0, 814.0, 879.0 ], "bglocked" : 0, "defrect" : [ 143.0, 85.0, 814.0, 879.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "button", "prototypename" : "M4L.patching", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 169.0, 151.0, 18.0, 18.0 ], "id" : "obj-12" } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Press Undo", "numinlets" : 1, "fontsize" : 24.0, "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "numoutlets" : 0, "patching_rect" : [ 36.0, 47.0, 295.0, 34.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Undo the last command\nsamgreene.com", "linecount" : 2, "numinlets" : 1, "fontsize" : 11.0, "numoutlets" : 0, "patching_rect" : [ 36.0, 79.0, 327.0, 32.0 ], "id" : "obj-50", "fontname" : "Arial Italic" } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 2, "outlettype" : [ "bang", "" ], "patching_rect" : [ 185.0, 223.0, 33.0, 18.0 ], "id" : "obj-20", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "message", "text" : "call undo", "numinlets" : 2, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 97.0, 279.0, 54.0, 16.0 ], "id" : "obj-19", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "message", "text" : "path live_set", "numinlets" : 2, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 169.0, 175.0, 71.0, 16.0 ], "id" : "obj-15", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 3, "outlettype" : [ "", "", "" ], "patching_rect" : [ 169.0, 199.0, 51.0, 18.0 ], "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "id" : "obj-16", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "numinlets" : 2, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 145.0, 320.0, 59.0, 18.0 ], "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "id" : "obj-14", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 169.0, 119.0, 18.0, 18.0 ], "id" : "obj-17", "comment" : "" } } , { "box" : { "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 145.0, 351.0, 18.0, 18.0 ], "id" : "obj-18", "comment" : "" } } , { "box" : { "maxclass" : "comment", "text" : "Device vertical limit", "numinlets" : 1, "hidden" : 1, "fontsize" : 10.0, "numoutlets" : 0, "patching_rect" : [ 30.0, 206.0, 118.0, 18.0 ], "id" : "obj-9", "fontname" : "Arial" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-16", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 1 ], "destination" : [ "obj-20", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-20", 0 ], "destination" : [ "obj-19", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-20", 1 ], "destination" : [ "obj-14", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 143.0, 85.0, 814.0, 879.0 ], "bglocked" : 0, "defrect" : [ 143.0, 85.0, 814.0, 879.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "button", "prototypename" : "M4L.patching", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 169.0, 151.0, 18.0, 18.0 ], "id" : "obj-12" } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Press Redo", "numinlets" : 1, "fontsize" : 24.0, "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "numoutlets" : 0, "patching_rect" : [ 36.0, 47.0, 295.0, 34.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Redo the last command\nsamgreene.com", "linecount" : 2, "numinlets" : 1, "fontsize" : 11.0, "numoutlets" : 0, "patching_rect" : [ 36.0, 79.0, 327.0, 32.0 ], "id" : "obj-50", "fontname" : "Arial Italic" } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 2, "outlettype" : [ "bang", "" ], "patching_rect" : [ 185.0, 223.0, 33.0, 18.0 ], "id" : "obj-20", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "message", "text" : "call redo", "numinlets" : 2, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 97.0, 279.0, 52.0, 16.0 ], "id" : "obj-19", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "message", "text" : "path live_set", "numinlets" : 2, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 169.0, 175.0, 71.0, 16.0 ], "id" : "obj-15", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 3, "outlettype" : [ "", "", "" ], "patching_rect" : [ 169.0, 199.0, 51.0, 18.0 ], "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "id" : "obj-16", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "numinlets" : 2, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 145.0, 320.0, 59.0, 18.0 ], "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "id" : "obj-14", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 169.0, 119.0, 18.0, 18.0 ], "id" : "obj-17", "comment" : "" } } , { "box" : { "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 145.0, 351.0, 18.0, 18.0 ], "id" : "obj-18", "comment" : "" } } , { "box" : { "maxclass" : "comment", "text" : "Device vertical limit", "numinlets" : 1, "hidden" : 1, "fontsize" : 10.0, "numoutlets" : 0, "patching_rect" : [ 30.0, 206.0, 118.0, 18.0 ], "id" : "obj-9", "fontname" : "Arial" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-16", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-16", 1 ], "destination" : [ "obj-20", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-20", 0 ], "destination" : [ "obj-19", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-20", 1 ], "destination" : [ "obj-14", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 176.0, 296.0, 696.0, 641.0 ], "bglocked" : 0, "defrect" : [ 176.0, 296.0, 696.0, 641.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "speedlim 100", "numinlets" : 2, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 568.0, 172.0, 73.0, 18.0 ], "id" : "obj-2", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "comment", "text" : "if the track is not part of the visible tracks list we consider it being the master track", "linecount" : 5, "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 0, "patching_rect" : [ 356.0, 284.0, 87.0, 64.0 ], "id" : "obj-29", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "path live_set master_track mixer_device volume", "numinlets" : 2, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 348.0, 260.0, 240.0, 16.0 ], "id" : "obj-28", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "numinlets" : 2, "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 76.0, 532.0, 83.0, 16.0 ], "id" : "obj-26", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "numinlets" : 1, "hidden" : 1, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 76.0, 556.0, 50.0, 18.0 ], "id" : "obj-27", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "comment", "text" : "-->", "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 0, "patching_rect" : [ 180.0, 500.0, 23.0, 18.0 ], "id" : "obj-24", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "and set the value to the new value", "linecount" : 2, "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 0, "patching_rect" : [ 76.0, 500.0, 107.0, 29.0 ], "id" : "obj-25", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "-->", "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 0, "patching_rect" : [ 180.0, 436.0, 23.0, 18.0 ], "id" : "obj-22", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "change it", "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 0, "patching_rect" : [ 124.0, 436.0, 54.0, 18.0 ], "id" : "obj-23", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "-->", "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 0, "patching_rect" : [ 180.0, 380.0, 23.0, 18.0 ], "id" : "obj-20", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "-->", "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 0, "patching_rect" : [ 180.0, 268.0, 23.0, 18.0 ], "id" : "obj-19", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "now we use this index and build a path to the volume property which resides in the mixer device of the currently selected track", "linecount" : 6, "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 0, "patching_rect" : [ 76.0, 268.0, 112.0, 75.0 ], "id" : "obj-17", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "-->", "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 0, "patching_rect" : [ 180.0, 204.0, 23.0, 18.0 ], "id" : "obj-16", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "first we get the index of the currently selected track", "linecount" : 3, "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 0, "patching_rect" : [ 76.0, 204.0, 106.0, 41.0 ], "id" : "obj-15", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "numinlets" : 2, "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 76.0, 340.0, 74.0, 16.0 ], "id" : "obj-52", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "numinlets" : 1, "hidden" : 1, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 76.0, 364.0, 50.0, 18.0 ], "id" : "obj-18", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "numinlets" : 2, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 270.0, 466.0, 60.0, 18.0 ], "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "id" : "obj-13", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Set Track Volume", "numinlets" : 1, "fontsize" : 24.0, "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "numoutlets" : 0, "patching_rect" : [ 76.0, 76.0, 295.0, 34.0 ], "id" : "obj-48", "fontname" : "Arial Bold Italic", "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Set the level of the current track\nsamgreene.com", "linecount" : 2, "numinlets" : 1, "fontsize" : 11.0, "numoutlets" : 0, "patching_rect" : [ 76.0, 108.0, 296.0, 32.0 ], "id" : "obj-50", "fontname" : "Arial Italic" } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedTrackIndex", "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "patching_rect" : [ 204.0, 204.0, 163.0, 18.0 ], "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "id" : "obj-3", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "message", "text" : "set value $1", "numinlets" : 2, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 230.0, 434.0, 68.0, 16.0 ], "id" : "obj-12", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "newobj", "text" : "clip 0. 1.", "numinlets" : 3, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 230.0, 402.0, 51.0, 18.0 ], "id" : "obj-10", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "message", "text" : "path live_set visible_tracks $1 mixer_device volume", "numinlets" : 2, "fontsize" : 10.0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 204.0, 236.0, 258.0, 16.0 ], "id" : "obj-8", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "numinlets" : 1, "fontsize" : 10.0, "numoutlets" : 3, "outlettype" : [ "", "", "" ], "patching_rect" : [ 204.0, 292.0, 51.0, 18.0 ], "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "id" : "obj-5", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 567.0, 113.0, 19.0, 19.0 ], "id" : "obj-1", "comment" : "Set track volume - val between 0 and 1 - use second output of live.slider" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ 577.5, 387.0, 239.5, 387.0 ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ 577.5, 201.0, 213.5, 201.0 ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-27", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-28", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 1 ], "destination" : [ "obj-28", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 1 ], "destination" : [ "obj-13", 1 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 211.0, 88.0, 814.0, 879.0 ], "bglocked" : 0, "defrect" : [ 211.0, 88.0, 814.0, 879.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "print arm", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 358.0, 281.0, 54.0, 18.0 ], "numoutlets" : 0, "id" : "obj-4", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "comment", "text" : "samgreene.com", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 76.0, 128.0, 150.0, 18.0 ], "numoutlets" : 0, "id" : "obj-30", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "message", "text" : "set arm 1", "fontsize" : 10.0, "numinlets" : 2, "patching_rect" : [ 208.0, 417.0, 54.0, 16.0 ], "numoutlets" : 1, "id" : "obj-40", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "numinlets" : 2, "patching_rect" : [ 97.0, 470.0, 83.0, 16.0 ], "numoutlets" : 1, "id" : "obj-26", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "fontsize" : 10.0, "hidden" : 1, "numinlets" : 1, "patching_rect" : [ 97.0, 494.0, 50.0, 18.0 ], "numoutlets" : 1, "id" : "obj-27", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "comment", "text" : "Set track to arm", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 83.0, 414.0, 112.0, 18.0 ], "numoutlets" : 0, "id" : "obj-21", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "now we use this index and build a path to the track", "linecount" : 3, "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 73.0, 271.0, 112.0, 41.0 ], "numoutlets" : 0, "id" : "obj-17", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "first we get the index of the currently selected track", "linecount" : 3, "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 76.0, 204.0, 106.0, 41.0 ], "numoutlets" : 0, "id" : "obj-15", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "numinlets" : 2, "patching_rect" : [ 76.0, 340.0, 74.0, 16.0 ], "numoutlets" : 1, "id" : "obj-52", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "fontsize" : 10.0, "hidden" : 1, "numinlets" : 1, "patching_rect" : [ 76.0, 364.0, 50.0, 18.0 ], "numoutlets" : 1, "id" : "obj-18", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "fontsize" : 10.0, "numinlets" : 2, "patching_rect" : [ 247.0, 467.0, 60.0, 18.0 ], "numoutlets" : 1, "id" : "obj-13", "fontname" : "Arial Bold", "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "button", "numinlets" : 1, "patching_rect" : [ 204.0, 180.0, 18.0, 18.0 ], "numoutlets" : 1, "id" : "obj-2", "outlettype" : [ "bang" ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Arm Track", "fontsize" : 24.0, "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "numinlets" : 1, "patching_rect" : [ 76.0, 75.0, 295.0, 34.0 ], "numoutlets" : 0, "id" : "obj-48", "fontname" : "Arial Bold Italic", "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Arm selected Track ", "fontsize" : 11.0, "numinlets" : 1, "patching_rect" : [ 76.0, 108.0, 296.0, 19.0 ], "numoutlets" : 0, "id" : "obj-50", "fontname" : "Arial Italic" } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedTrackIndex", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 204.0, 204.0, 163.0, 18.0 ], "numoutlets" : 2, "id" : "obj-3", "fontname" : "Arial Bold", "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "outlettype" : [ "int", "bang" ] } } , { "box" : { "maxclass" : "message", "text" : "path live_set visible_tracks $1", "fontsize" : 10.0, "numinlets" : 2, "patching_rect" : [ 204.0, 236.0, 154.0, 16.0 ], "numoutlets" : 1, "id" : "obj-8", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 220.0, 324.0, 32.5, 18.0 ], "numoutlets" : 2, "id" : "obj-7", "fontname" : "Arial Bold", "outlettype" : [ "bang", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 204.0, 292.0, 51.0, 18.0 ], "numoutlets" : 3, "id" : "obj-5", "fontname" : "Arial Bold", "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "outlettype" : [ "", "", "" ] } } , { "box" : { "maxclass" : "inlet", "numinlets" : 0, "patching_rect" : [ 204.0, 148.0, 18.0, 18.0 ], "numoutlets" : 1, "id" : "obj-1", "outlettype" : [ "" ], "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-27", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-40", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 1 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-13", 1 ], "hidden" : 0, "midpoints" : [ ] } } ] } } { "patcher" : { "fileversion" : 1, "rect" : [ 211.0, 88.0, 814.0, 879.0 ], "bglocked" : 0, "defrect" : [ 211.0, 88.0, 814.0, 879.0 ], "openrect" : [ 0.0, 0.0, 0.0, 0.0 ], "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "boxes" : [ { "box" : { "maxclass" : "newobj", "text" : "print disarm $1", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 346.0, 302.0, 82.0, 18.0 ], "numoutlets" : 0, "id" : "obj-4", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "comment", "text" : "samgreene.com", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 76.0, 128.0, 150.0, 18.0 ], "numoutlets" : 0, "id" : "obj-30", "fontname" : "Arial Bold" } } , { "box" : { "maxclass" : "message", "text" : "set arm 0", "fontsize" : 10.0, "numinlets" : 2, "patching_rect" : [ 207.0, 418.0, 54.0, 16.0 ], "numoutlets" : 1, "id" : "obj-40", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "message", "text" : "help live.object", "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "numinlets" : 2, "patching_rect" : [ 87.0, 562.0, 83.0, 16.0 ], "numoutlets" : 1, "id" : "obj-26", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "fontsize" : 10.0, "hidden" : 1, "numinlets" : 1, "patching_rect" : [ 87.0, 586.0, 50.0, 18.0 ], "numoutlets" : 1, "id" : "obj-27", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "comment", "text" : "Set arm to 0", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 77.0, 410.0, 107.0, 18.0 ], "numoutlets" : 0, "id" : "obj-25", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "now we use this index and build a path to the track", "linecount" : 3, "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 73.0, 271.0, 112.0, 41.0 ], "numoutlets" : 0, "id" : "obj-17", "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "first we get the index of the currently selected track", "linecount" : 3, "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 76.0, 204.0, 106.0, 41.0 ], "numoutlets" : 0, "id" : "obj-15", "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "help live.path", "fontsize" : 10.0, "bgcolor" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "numinlets" : 2, "patching_rect" : [ 76.0, 340.0, 74.0, 16.0 ], "numoutlets" : 1, "id" : "obj-52", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "pcontrol", "fontsize" : 10.0, "hidden" : 1, "numinlets" : 1, "patching_rect" : [ 76.0, 364.0, 50.0, 18.0 ], "numoutlets" : 1, "id" : "obj-18", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "fontsize" : 10.0, "numinlets" : 2, "patching_rect" : [ 247.0, 467.0, 60.0, 18.0 ], "numoutlets" : 1, "id" : "obj-13", "fontname" : "Arial Bold", "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "button", "numinlets" : 1, "patching_rect" : [ 204.0, 180.0, 18.0, 18.0 ], "numoutlets" : 1, "id" : "obj-2", "outlettype" : [ "bang" ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.subpatcher-title", "text" : "Disarm Track", "fontsize" : 24.0, "frgb" : [ 0.3, 0.34, 0.4, 1.0 ], "numinlets" : 1, "patching_rect" : [ 76.0, 75.0, 295.0, 34.0 ], "numoutlets" : 0, "id" : "obj-48", "fontname" : "Arial Bold Italic", "textcolor" : [ 0.3, 0.34, 0.4, 1.0 ] } } , { "box" : { "maxclass" : "comment", "prototypename" : "ML.patcher-story", "text" : "Disarm the Arm Button", "fontsize" : 11.0, "numinlets" : 1, "patching_rect" : [ 76.0, 108.0, 296.0, 19.0 ], "numoutlets" : 0, "id" : "obj-50", "fontname" : "Arial Italic" } } , { "box" : { "maxclass" : "newobj", "text" : "M4L.api.GetSelectedTrackIndex", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 204.0, 204.0, 163.0, 18.0 ], "numoutlets" : 2, "id" : "obj-3", "fontname" : "Arial Bold", "color" : [ 0.545098, 0.85098, 0.592157, 1.0 ], "outlettype" : [ "int", "bang" ] } } , { "box" : { "maxclass" : "message", "text" : "path live_set visible_tracks $1", "fontsize" : 10.0, "numinlets" : 2, "patching_rect" : [ 204.0, 236.0, 154.0, 16.0 ], "numoutlets" : 1, "id" : "obj-8", "fontname" : "Arial Bold", "outlettype" : [ "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "t b l", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 220.0, 324.0, 32.5, 18.0 ], "numoutlets" : 2, "id" : "obj-7", "fontname" : "Arial Bold", "outlettype" : [ "bang", "" ] } } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "fontsize" : 10.0, "numinlets" : 1, "patching_rect" : [ 204.0, 292.0, 51.0, 18.0 ], "numoutlets" : 3, "id" : "obj-5", "fontname" : "Arial Bold", "color" : [ 0.984314, 0.819608, 0.05098, 1.0 ], "outlettype" : [ "", "", "" ] } } , { "box" : { "maxclass" : "inlet", "numinlets" : 0, "patching_rect" : [ 204.0, 148.0, 18.0, 18.0 ], "numoutlets" : 1, "id" : "obj-1", "outlettype" : [ "" ], "comment" : "" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-4", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-40", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-3", 0 ], "destination" : [ "obj-8", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-1", 0 ], "destination" : [ "obj-2", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-52", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-27", 0 ], "hidden" : 1, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-2", 0 ], "destination" : [ "obj-3", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 0 ], "destination" : [ "obj-40", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 1 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-7", 1 ], "destination" : [ "obj-13", 1 ], "hidden" : 0, "midpoints" : [ ] } } ] } } dlst direltype JSONfnamLinearAbleton.amxdsz32 of32 vers flag mdat ^'dirextype JSONfnam(M4L.api.FireSelectedClip.maxpatsz32 '2of32 vers flag mdat 0 9diretype JSONfnam0M4L.api.GetSelectedSceneIndex.maxpatsz32 8'of32 vers flag mdat 0 9dire|type JSONfnam,M4L.api.RemoteMatchIdToIndex.maxpatsz32 of32 vers flag mdat 0 8diretype JSONfnam0M4L.api.GetSelectedTrackIndex.maxpatsz32 :of32 vers flag mdat 0 9dire|type JSONfnam,M4L.api.FireSelectedScene.maxpatsz32 'of32 :vers flag mdat 0 9dirextype JSONfnam(M4L.api.SelectNextTrack.maxpatsz32 $of32 avers flag mdat Udire|type JSONfnam,M4L.api.GetVisibleTrackCount.maxpatsz32 #of32 vers flag mdat 0 9diretype JSONfnam0M4L.api.SetSelectedTrackIndex.maxpatsz32 4of32 Zvers flag mdat 0 9dire|type JSONfnam,M4L.api.SelectMasterTrack.maxpatsz32 of32 vers flag mdat 0 9dire|type JSONfnam,M4L.api.SelectPreviousTrack.maxpatsz32 of32 vers flag mdat 0 9dire|type JSONfnam,M4L.api.SelectPreviousScene.maxpatsz32 of32 vers flag mdat 0 9dirextype JSONfnam(M4L.api.GetSceneCount.maxpatsz32 #~of32 ;vers flag mdat 0 9diretype JSONfnam0M4L.api.SetSelectedSceneIndex.maxpatsz32 3of32 ^vers flag mdat 0 9dirextype JSONfnam(M4L.api.SelectNextScene.maxpatsz32 {of32 vers flag mdat 0 9diretype JSONfnam0M4L.api.ToggleArmSelectedTrack.maxpatsz32 +of32  vers flag mdat T:direltype JSONfnamM4L.api.Undo.maxpatsz32 #of32 کvers flag mdat R#direltype JSONfnamM4L.api.Redo.maxpatsz32 #of32 vers flag mdat R#dirextype JSONfnam(M4L.api.SetTrackVolume.maxpatsz32 )of32 vers flag mdat R3