{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 5 } , "rect" : [ 0.0, 44.0, 1034.0, 806.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 12.0, "default_fontface" : 0, "default_fontname" : "Arial", "gridonopen" : 0, "gridsize" : [ 15.0, 15.0 ], "gridsnaponopen" : 0, "statusbarvisible" : 2, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "boxes" : [ { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-53", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 164.516235, 298.302185, 32.5, 18.0 ], "text" : "+~ 1" } } , { "box" : { "id" : "obj-54", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 248.516235, 234.802185, 20.0, 20.0 ] } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-50", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 227.516235, 262.802185, 37.0, 18.0 ], "text" : "gate~" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-48", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 101.516235, 61.302185, 32.5, 18.0 ], "text" : "*~" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-46", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "signal" ], "patching_rect" : [ 39.516235, 61.302185, 32.5, 18.0 ], "text" : "*~" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-47", "maxclass" : "newobj", "numinlets" : 6, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 509.383057, 465.792084, 94.0, 18.0 ], "text" : "scale 0 127 -70. 0." } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-14", "maxclass" : "number~", "mode" : 2, "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "signal", "float" ], "patching_rect" : [ 517.883057, 435.492096, 56.0, 18.0 ], "sig" : 0.0 } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-27", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 465.883057, 156.992096, 150.0, 18.0 ], "presentation" : 1, "presentation_rect" : [ 64.557091, 20.626415, 104.0, 18.0 ], "text" : "Volume Envelope" } } , { "box" : { "bgcolor" : [ 0.666667, 0.698039, 0.717647, 0.0 ], "bordercolor" : [ 0.666667, 0.698039, 0.717647, 0.0 ], "fontname" : "Arial Bold", "fontsize" : 10.0, "hbgcolor" : [ 0.666667, 0.698039, 0.717647, 0.0 ], "id" : "obj-28", "ignoreclick" : 1, "maxclass" : "flonum", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 565.883057, 255.992096, 39.0, 18.0 ], "textcolor" : [ 0.301961, 0.337255, 0.403922, 1.0 ], "triangle" : 0, "tricolor" : [ 0.921569, 0.94902, 0.05098, 1.0 ], "triscale" : 0.75 } } , { "box" : { "id" : "obj-29", "maxclass" : "live.button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "parameter_enable" : 1, "patching_rect" : [ 465.883057, 265.292084, 15.0, 15.0 ], "presentation" : 1, "presentation_rect" : [ 32.557091, 48.626408, 15.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_longname" : "live.button[1]", "parameter_enum" : [ "off", "on" ], "parameter_mmax" : 1.0, "parameter_type" : 2, "parameter_shortname" : "live.button" } } , "varname" : "live.button[1]" } } , { "box" : { "id" : "obj-30", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 650.883057, 265.292084, 18.0, 18.0 ] } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-31", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "", "", "" ], "patching_rect" : [ 385.883057, 305.292084, 80.0, 18.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_longname" : "Envelope[1]", "parameter_linknames" : 1, "parameter_order" : -1, "parameter_initial" : [ 2000.0, 0.0, 1.0, 0.0, 0.0, 0, 1000.0, 1.0, 0, 2000.0, 0.0, 0 ], "parameter_type" : 3, "parameter_initial_enable" : 1, "parameter_invisible" : 1, "parameter_shortname" : "Envelope" } } , "saved_object_attributes" : { "initial" : [ 2000.0, 0.0, 1.0, 0.0, 0.0, 0, 1000.0, 1.0, 0, 2000.0, 0.0, 0 ], "parameter_enable" : 1 } , "text" : "pattr Envelope", "varname" : "Envelope[1]" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-32", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "signal", "bang" ], "patching_rect" : [ 539.383057, 417.492096, 34.0, 18.0 ], "text" : "line~" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-33", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 548.383057, 289.992096, 74.0, 16.0 ], "text" : "setdomain $1" } } , { "box" : { "addpoints" : [ 0.0, 0.0, 0, 1000.0, 1.0, 0, 2000.0, 0.0, 0 ], "annotation" : "Click in empty space to add a new point. Shift-click on a point to remove it.", "bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ], "bordercolor" : [ 0.094118, 0.113725, 0.137255, 1.0 ], "clicksustain" : 0, "domain" : 2000.0, "hint" : "", "id" : "obj-35", "linecolor" : [ 1.0, 0.603922, 0.0, 1.0 ], "maxclass" : "function", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "float", "", "", "bang" ], "outputmode" : 1, "parameter_enable" : 0, "patching_rect" : [ 465.383057, 336.492096, 114.0, 54.0 ], "pointcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "presentation" : 1, "presentation_rect" : [ 72.557091, 38.626415, 170.0, 90.999985 ], "prototypename" : "M4L.black", "sustaincolor" : [ 1.0, 0.0, 0.0, 1.0 ], "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ], "varname" : "Function[1]" } } , { "box" : { "activebgoncolor" : [ 1.0, 0.5, 0.0, 1.0 ], "annotation" : "Enable/disable the reading of the envelope. The Live transport must be on in order for the envelope to run.", "automation" : "off", "automationon" : "on", "id" : "obj-36", "maxclass" : "live.text", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "" ], "parameter_enable" : 1, "patching_rect" : [ 465.883057, 186.992096, 31.0, 15.0 ], "presentation" : 1, "presentation_rect" : [ 211.557098, 20.626415, 31.0, 15.0 ], "prototypename" : "onoff", "saved_attribute_attributes" : { "valueof" : { "parameter_longname" : "Run[1]", "parameter_linknames" : 1, "parameter_speedlim" : 0.0, "parameter_enum" : [ "off", "on" ], "parameter_order" : 1, "parameter_mmax" : 1.0, "parameter_initial" : [ 0.0 ], "parameter_type" : 2, "parameter_initial_enable" : 1, "parameter_shortname" : "Run" } } , "text" : "Off", "texton" : "On", "varname" : "Run[1]" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-37", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 5, "outlettype" : [ "bang", "", "float", "", "int" ], "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 5 } , "rect" : [ 288.0, 44.0, 645.0, 643.0 ], "bglocked" : 0, "openinpresentation" : 0, "default_fontsize" : 10.0, "default_fontface" : 0, "default_fontname" : "Arial Bold", "gridonopen" : 0, "gridsize" : [ 8.0, 8.0 ], "gridsnaponopen" : 0, "statusbarvisible" : 2, "toolbarvisible" : 1, "boxanimatetime" : 200, "imprint" : 0, "enablehscroll" : 1, "enablevscroll" : 1, "devicewidth" : 0.0, "description" : "", "digest" : "", "tags" : "", "boxes" : [ { "box" : { "fontname" : "Arial Italic", "fontsize" : 11.0, "id" : "obj-12", "linecount" : 7, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 24.0, 32.0, 591.0, 95.0 ], "text" : "The metronome is synced to Live's transport by using the interval and quantize attributes, which are expressed in note values. The counter object counts the bangs output by the metro object, in a cycle defined by the Rate num value (i.e. the desired number of notes). Each time the cycle is reset to 0, we output a bang, which is used to trigger the envelope in the main patcher. The time value defined by Rate base X Rate num is translated into milliseconds, and is used to set the duration of the envelope. This way, both the metronome and envelope run in sync. We use a line object to display the current position in the envelope, thanks to a multislider. Finally, we need to know when Live's transport is turned on and off, in order to reset the counter, and pass the metro/transport state to the mapping abstraction." } } , { "box" : { "fontname" : "Arial Bold Italic", "fontsize" : 18.0, "frgb" : [ 0.301961, 0.337255, 0.403922, 1.0 ], "id" : "obj-47", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 24.0, 8.0, 103.0, 27.0 ], "text" : "SyncMetro", "textcolor" : [ 0.301961, 0.337255, 0.403922, 1.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 10.0, "id" : "obj-46", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 531.0, 320.0, 31.0, 18.0 ], "text" : "Stop" } } , { "box" : { "fontname" : "Arial", "fontsize" : 10.0, "id" : "obj-45", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 432.0, 264.0, 34.0, 18.0 ], "text" : "State" } } , { "box" : { "fontname" : "Arial", "fontsize" : 10.0, "id" : "obj-63", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 424.0, 536.0, 24.0, 18.0 ], "text" : "1/0" } } , { "box" : { "id" : "obj-64", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 448.0, 536.0, 18.0, 18.0 ] } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-65", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 448.0, 512.0, 32.5, 18.0 ], "text" : "*" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-66", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 448.0, 488.0, 34.5, 18.0 ], "text" : "pak" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-44", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "", "int", "int" ], "patching_rect" : [ 464.0, 240.0, 57.0, 18.0 ], "text" : "change -1" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-16", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 440.0, 587.0, 40.0, 18.0 ], "text" : "On/off" } } , { "box" : { "comment" : "", "id" : "obj-32", "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 448.0, 568.0, 18.0, 18.0 ], "prototypename" : "M4L.Arial10" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-31", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 339.0, 587.0, 50.0, 18.0 ], "text" : "Position" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-26", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 240.0, 587.0, 52.0, 18.0 ], "text" : "Duration" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-25", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 122.0, 587.0, 33.0, 18.0 ], "text" : "Stop" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-24", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 51.0, 587.0, 44.0, 18.0 ], "text" : "Trigger" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-22", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 276.0, 141.0, 59.0, 18.0 ], "text" : "Rate num " } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-19", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 161.0, 141.0, 58.0, 18.0 ], "text" : "Rate base" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-17", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 40.0, 141.0, 68.0, 18.0 ], "text" : "Metro on/off" } } , { "box" : { "blinkcolor" : [ 0.921569, 0.94902, 0.05098, 1.0 ], "id" : "obj-15", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 512.0, 319.0, 18.0, 18.0 ] } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-14", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "bang", "bang" ], "patching_rect" : [ 480.0, 296.0, 51.0, 18.0 ], "text" : "togedge" } } , { "box" : { "id" : "obj-13", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 464.0, 264.0, 18.0, 18.0 ] } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-11", "linecount" : 2, "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 384.0, 176.0, 136.0, 29.0 ], "text" : "metro 10 ticks @quantize 10 ticks @active 1" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-10", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 9, "outlettype" : [ "int", "int", "float", "float", "float", "", "int", "float", "" ], "patching_rect" : [ 384.0, 216.0, 126.0, 18.0 ], "text" : "transport" } } , { "box" : { "comment" : "", "id" : "obj-8", "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 352.0, 568.0, 18.0, 18.0 ], "prototypename" : "M4L.Arial10" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-23", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 352.0, 489.0, 32.5, 18.0 ], "text" : "f" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-21", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 2, "outlettype" : [ "", "" ], "patching_rect" : [ 352.0, 536.0, 53.0, 18.0 ], "text" : "line 0. 50" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-7", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 352.0, 512.0, 41.0, 16.0 ], "text" : "0, 1 $1" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-9", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 128.0, 521.0, 32.5, 16.0 ], "text" : "stop" } } , { "box" : { "comment" : "", "id" : "obj-4", "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 128.0, 568.0, 18.0, 18.0 ], "prototypename" : "M4L.Arial10" } } , { "box" : { "comment" : "", "id" : "obj-6", "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 256.0, 568.0, 18.0, 18.0 ], "prototypename" : "M4L.Arial10" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-5", "maxclass" : "flonum", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 256.0, 432.0, 48.0, 18.0 ], "prototypename" : "Live", "triscale" : 0.75 } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-3", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 256.0, 360.0, 124.0, 18.0 ], "text" : "translate notevalues ms" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-2", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "float" ], "patching_rect" : [ 256.0, 408.0, 32.5, 18.0 ], "text" : "* 1." } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-1", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 256.0, 384.0, 59.0, 18.0 ], "text" : "pak 500. 4" } } , { "box" : { "comment" : "", "id" : "obj-43", "maxclass" : "outlet", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 64.0, 568.0, 18.0, 18.0 ], "prototypename" : "M4L.Arial10" } } , { "box" : { "comment" : "", "id" : "obj-42", "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 64.0, 160.0, 18.0, 18.0 ], "prototypename" : "M4L.Arial10" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-41", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "bang", "" ], "patching_rect" : [ 128.0, 312.0, 47.0, 18.0 ], "text" : "select 0" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-40", "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 296.0, 295.0, 40.0, 18.0 ], "prototypename" : "Live", "triscale" : 0.75 } } , { "box" : { "comment" : "", "id" : "obj-39", "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 176.0, 160.0, 18.0, 18.0 ], "prototypename" : "M4L.Arial10" } } , { "box" : { "comment" : "", "id" : "obj-38", "maxclass" : "inlet", "numinlets" : 0, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 296.0, 160.0, 18.0, 18.0 ], "prototypename" : "M4L.Arial10" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-37", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 192.0, 312.0, 32.5, 18.0 ], "text" : "- 1" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-36", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "bang", "" ], "patching_rect" : [ 192.0, 216.0, 83.0, 18.0 ], "text" : "trigger b l" } } , { "box" : { "blinkcolor" : [ 0.921569, 0.94902, 0.05098, 1.0 ], "id" : "obj-35", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 64.0, 472.0, 18.0, 18.0 ] } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-34", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 2, "outlettype" : [ "bang", "" ], "patching_rect" : [ 64.0, 448.0, 47.0, 18.0 ], "text" : "select 0" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-33", "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 64.0, 360.0, 40.0, 18.0 ], "prototypename" : "Live", "triscale" : 0.75 } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-30", "maxclass" : "newobj", "numinlets" : 5, "numoutlets" : 4, "outlettype" : [ "int", "", "", "int" ], "patching_rect" : [ 64.0, 336.0, 147.0, 18.0 ], "text" : "counter 0 0 0" } } , { "box" : { "blinkcolor" : [ 0.921569, 0.94902, 0.05098, 1.0 ], "id" : "obj-29", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 64.0, 312.0, 18.0, 18.0 ] } } , { "box" : { "id" : "obj-28", "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 64.0, 192.0, 18.0, 18.0 ] } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-27", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 216.0, 256.0, 120.0, 16.0 ], "text" : "interval $1, quantize $1" } } , { "box" : { "arrowframe" : 0, "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-20", "items" : [ "128n", ",", "64n", ",", "32nt", ",", "64nd", ",", "32n", ",", "16nt", ",", "32nd", ",", "16n", ",", "8nt", ",", "16nd", ",", "8n", ",", "4nt", ",", "8nd", ",", "4n", ",", "2nt", ",", "4nd", ",", "2n", ",", "1nt", ",", "2nd", ",", "1n", ",", "1nd" ], "maxclass" : "umenu", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "int", "", "" ], "parameter_enable" : 0, "patching_rect" : [ 176.0, 192.0, 51.0, 18.0 ] } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-18", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 64.0, 280.0, 171.0, 18.0 ], "text" : "metro @interval 4n @quantize 4n" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-2", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-1", 0 ] } } , { "patchline" : { "destination" : [ "obj-44", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-10", 6 ] } } , { "patchline" : { "destination" : [ "obj-10", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-11", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-13", 0 ] } } , { "patchline" : { "color" : [ 0.494118, 0.556863, 0.607843, 1.0 ], "destination" : [ "obj-66", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-13", 0 ] } } , { "patchline" : { "destination" : [ "obj-15", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-14", 1 ] } } , { "patchline" : { "color" : [ 0.494118, 0.556863, 0.607843, 1.0 ], "destination" : [ "obj-30", 2 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-15", 0 ] } } , { "patchline" : { "color" : [ 0.494118, 0.556863, 0.607843, 1.0 ], "destination" : [ "obj-9", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-15", 0 ] } } , { "patchline" : { "destination" : [ "obj-29", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-18", 0 ] } } , { "patchline" : { "destination" : [ "obj-5", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-2", 0 ] } } , { "patchline" : { "destination" : [ "obj-36", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-20", 1 ] } } , { "patchline" : { "destination" : [ "obj-8", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-21", 0 ] } } , { "patchline" : { "destination" : [ "obj-7", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-23", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-27", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-28", 0 ] } } , { "patchline" : { "destination" : [ "obj-41", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-28", 0 ] } } , { "patchline" : { "color" : [ 0.494118, 0.556863, 0.607843, 1.0 ], "destination" : [ "obj-66", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-28", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-29", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-3", 0 ] } } , { "patchline" : { "destination" : [ "obj-33", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-30", 0 ] } } , { "patchline" : { "destination" : [ "obj-34", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-33", 0 ] } } , { "patchline" : { "destination" : [ "obj-35", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-34", 0 ] } } , { "patchline" : { "destination" : [ "obj-23", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-35", 0 ] } } , { "patchline" : { "destination" : [ "obj-43", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-35", 0 ] } } , { "patchline" : { "destination" : [ "obj-27", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-36", 1 ] } } , { "patchline" : { "destination" : [ "obj-3", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-36", 1 ] } } , { "patchline" : { "destination" : [ "obj-30", 2 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-36", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 4 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-37", 0 ] } } , { "patchline" : { "destination" : [ "obj-40", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-38", 0 ] } } , { "patchline" : { "destination" : [ "obj-20", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-39", 0 ] } } , { "patchline" : { "destination" : [ "obj-1", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-40", 0 ] } } , { "patchline" : { "destination" : [ "obj-37", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-40", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 2 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-41", 0 ] } } , { "patchline" : { "destination" : [ "obj-9", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-41", 0 ] } } , { "patchline" : { "destination" : [ "obj-28", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-42", 0 ] } } , { "patchline" : { "destination" : [ "obj-13", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-44", 0 ] } } , { "patchline" : { "destination" : [ "obj-23", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-5", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-5", 0 ] } } , { "patchline" : { "destination" : [ "obj-32", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-64", 0 ] } } , { "patchline" : { "destination" : [ "obj-64", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-65", 0 ] } } , { "patchline" : { "destination" : [ "obj-65", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-66", 0 ] } } , { "patchline" : { "destination" : [ "obj-21", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-7", 0 ] } } , { "patchline" : { "destination" : [ "obj-21", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-9", 0 ] } } , { "patchline" : { "destination" : [ "obj-4", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-9", 0 ] } } ], "dependency_cache" : [ ] } , "patching_rect" : [ 465.883057, 232.992096, 204.0, 18.0 ], "saved_object_attributes" : { "default_fontsize" : 10.0, "description" : "", "globalpatchername" : "", "fontface" : 0, "fontsize" : 10.0, "default_fontface" : 0, "digest" : "", "tags" : "", "default_fontname" : "Arial Bold", "fontname" : "Arial Bold" } , "text" : "patcher SyncMetro" } } , { "box" : { "annotation" : "Duration base multiplier: The length of the envelope is defined by the Base value multiplied by this value.", "appearance" : 1, "id" : "obj-38", "maxclass" : "live.numbox", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "", "float" ], "parameter_enable" : 1, "patching_rect" : [ 650.883057, 208.992096, 36.0, 15.0 ], "presentation" : 1, "presentation_rect" : [ 16.557091, 102.626434, 32.0, 15.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_longname" : "DurNum[1]", "parameter_linknames" : 1, "parameter_speedlim" : 0.0, "parameter_unitstyle" : 0, "parameter_mmax" : 255.0, "parameter_mmin" : 1.0, "parameter_initial" : [ 4.0 ], "parameter_type" : 1, "parameter_initial_enable" : 1, "parameter_shortname" : "DurNum" } } , "varname" : "DurNum[1]" } } , { "box" : { "annotation" : "The base duration of the envelope expressed as a note value.", "id" : "obj-39", "maxclass" : "live.menu", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "", "", "float" ], "parameter_enable" : 1, "patching_rect" : [ 558.883057, 208.992096, 40.0, 15.0 ], "presentation" : 1, "presentation_rect" : [ 16.557091, 87.126419, 47.0, 15.0 ], "prototypename" : "M4L.live.menu.notevalues.Live", "saved_attribute_attributes" : { "valueof" : { "parameter_longname" : "DurBase[1]", "parameter_linknames" : 1, "parameter_speedlim" : 0.0, "parameter_enum" : [ "1/128", "1/64", "1/32T", "1/64D", "1/32", "1/16T", "1/32D", "1/16", "1/8T", "1/16D", "1/8", "1/4T", "1/8D", "1/4", "1/2T", "1/4D", "1/2", "1/1T", "1/2D", "1/1", "1/1D" ], "parameter_initial" : [ 13.0 ], "parameter_type" : 2, "parameter_initial_enable" : 1, "parameter_shortname" : "DurBase" } } , "varname" : "DurBase[1]" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-40", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 399.383057, 265.292084, 24.0, 16.0 ], "text" : "init" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-41", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 637.883057, 348.992096, 150.0, 18.0 ], "presentation" : 1, "presentation_rect" : [ 16.557091, 26.126408, 47.0, 18.0 ], "text" : "Trigger" } } , { "box" : { "fontname" : "Arial Bold", "fontsize" : 10.0, "id" : "obj-42", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 637.883057, 404.992096, 150.0, 18.0 ], "presentation" : 1, "presentation_rect" : [ 13.057091, 66.126419, 54.0, 18.0 ], "text" : "Env Time" } } , { "box" : { "id" : "obj-6", "maxclass" : "live.gain~", "numinlets" : 2, "numoutlets" : 5, "outlettype" : [ "signal", "signal", "", "float", "list" ], "parameter_enable" : 1, "patching_rect" : [ 58.516235, 134.602173, 41.0, 136.0 ], "presentation" : 1, "presentation_rect" : [ 264.557404, 9.039639, 38.0, 135.0 ], "saved_attribute_attributes" : { "valueof" : { "parameter_longname" : "live.gain~", "parameter_unitstyle" : 4, "parameter_mmax" : 6.0, "parameter_mmin" : -70.0, "parameter_initial" : [ 0 ], "parameter_type" : 0, "parameter_initial_enable" : 1, "parameter_shortname" : "Gain" } } , "varname" : "live.gain~" } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-47", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-14", 1 ] } } , { "patchline" : { "destination" : [ "obj-33", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-28", 0 ] } } , { "patchline" : { "destination" : [ "obj-35", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-29", 0 ] } } , { "patchline" : { "destination" : [ "obj-35", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-31", 1 ] } } , { "patchline" : { "destination" : [ "obj-50", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-32", 0 ] } } , { "patchline" : { "destination" : [ "obj-35", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-33", 0 ] } } , { "patchline" : { "destination" : [ "obj-32", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-35", 1 ] } } , { "patchline" : { "destination" : [ "obj-37", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-36", 0 ] } } , { "patchline" : { "destination" : [ "obj-54", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-36", 0 ] } } , { "patchline" : { "destination" : [ "obj-28", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-37", 2 ] } } , { "patchline" : { "destination" : [ "obj-29", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-37", 0 ] } } , { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-37", 4 ] } } , { "patchline" : { "destination" : [ "obj-32", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 521.633057, 324.492096, 548.883057, 324.492096 ], "source" : [ "obj-37", 1 ] } } , { "patchline" : { "destination" : [ "obj-37", 2 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-38", 0 ] } } , { "patchline" : { "destination" : [ "obj-37", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-39", 0 ] } } , { "patchline" : { "destination" : [ "obj-31", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-40", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-46", 0 ] } } , { "patchline" : { "destination" : [ "obj-6", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-48", 0 ] } } , { "patchline" : { "destination" : [ "obj-53", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-50", 0 ] } } , { "patchline" : { "destination" : [ "obj-46", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-53", 0 ] } } , { "patchline" : { "destination" : [ "obj-48", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-53", 0 ] } } , { "patchline" : { "destination" : [ "obj-50", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-54", 0 ] } } ], "parameters" : { "obj-39" : [ "DurBase[1]", "DurBase", 0 ], "obj-36" : [ "Run[1]", "Run", 1 ], "obj-29" : [ "live.button[1]", "live.button", 0 ], "obj-6" : [ "live.gain~", "Gain", 0 ], "obj-31" : [ "Envelope[1]", "Envelope", -1 ], "obj-38" : [ "DurNum[1]", "DurNum", 0 ] } , "dependency_cache" : [ ] } }