{ "patcher" : { "fileversion" : 1, "rect" : [ 115.0, 54.0, 1113.0, 821.0 ], "bglocked" : 0, "defrect" : [ 115.0, 54.0, 1113.0, 821.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, "metadata" : [ ], "boxes" : [ { "box" : { "maxclass" : "message", "text" : ";\rmax launch_browser http://rhoadley.org/courses/tech_resources/max-msp/examples/SOUNDS/", "linecount" : 2, "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-1", "patching_rect" : [ 448.0, 605.0, 391.0, 25.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Sounds used in the templates >>>>", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-2", "patching_rect" : [ 448.0, 590.0, 216.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Most up-to-date versions of templates:", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-3", "patching_rect" : [ 448.0, 661.0, 216.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : ";\rmax launch_browser http://rhoadley.org/courses/tech_resources/max-msp/examples/PERFORMANCE_TEMPLATES/", "linecount" : 2, "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-4", "patching_rect" : [ 448.0, 675.0, 481.0, 25.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "id" : "obj-5", "patching_rect" : [ 821.0, 673.0, 15.0, 15.0 ] } } , { "box" : { "maxclass" : "message", "text" : "open", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-6", "patching_rect" : [ 844.0, 673.0, 29.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "sfrecord~ 2", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "signal" ], "id" : "obj-7", "patching_rect" : [ 844.0, 708.0, 63.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "adoutput~", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "outlettype" : [ "signal", "signal" ], "id" : "obj-8", "patching_rect" : [ 844.0, 617.0, 53.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "record a demo...", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-9", "patching_rect" : [ 814.0, 587.0, 99.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "1. Click on open to open a file for recording. Save the file in one of your own directories to which you know you have access. 2. Use the toggle to turn recording on and, when finished, off.", "linecount" : 9, "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-10", "patching_rect" : [ 941.0, 618.0, 109.0, 100.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "border" : 1, "id" : "obj-11", "patching_rect" : [ 814.0, 606.0, 263.0, 133.0 ], "rounded" : 0, "bgcolor" : [ 0.74902, 0.74902, 0.74902, 1.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "loadbang", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "bang" ], "id" : "obj-12", "patching_rect" : [ 5.0, 26.0, 48.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "set mybuff1", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-13", "patching_rect" : [ 65.0, 513.0, 65.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "replace anton.aif", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-14", "patching_rect" : [ 20.0, 311.0, 85.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Basic Groove", "linecount" : 2, "numinlets" : 1, "numoutlets" : 0, "fontsize" : 18.0, "id" : "obj-15", "patching_rect" : [ 271.0, 428.0, 112.0, 48.0 ], "fontname" : "American Typewriter" } } , { "box" : { "maxclass" : "comment", "text" : "v 0.02", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-16", "patching_rect" : [ 271.0, 474.0, 100.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "rhoadley.net", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-17", "patching_rect" : [ 271.0, 489.0, 100.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "id" : "obj-18", "patching_rect" : [ 23.0, 442.0, 15.0, 15.0 ] } } , { "box" : { "maxclass" : "message", "text" : "0.5", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-19", "patching_rect" : [ 178.0, 485.0, 23.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "1.", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-20", "patching_rect" : [ 178.0, 466.0, 23.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "flonum", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "triscale" : 0.9, "outlettype" : [ "float", "bang" ], "id" : "obj-21", "patching_rect" : [ 178.0, 504.0, 35.0, 17.0 ], "fontname" : "Arial", "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "id" : "obj-22", "patching_rect" : [ 255.0, 552.0, 15.0, 15.0 ] } } , { "box" : { "maxclass" : "message", "text" : "loopinterp $1", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-23", "patching_rect" : [ 255.0, 571.0, 68.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "set mybuff2", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-24", "patching_rect" : [ 65.0, 532.0, 65.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "startloop", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-25", "patching_rect" : [ 65.0, 592.0, 49.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "stop", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-26", "patching_rect" : [ 65.0, 566.0, 27.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "stop", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-27", "patching_rect" : [ 106.0, 628.0, 27.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "startwindow", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-28", "patching_rect" : [ 37.0, 628.0, 65.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "id" : "obj-29", "patching_rect" : [ 206.0, 546.0, 15.0, 15.0 ] } } , { "box" : { "maxclass" : "message", "text" : "loop $1", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-30", "patching_rect" : [ 206.0, 571.0, 41.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "flonum", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "triscale" : 0.9, "outlettype" : [ "float", "bang" ], "id" : "obj-31", "patching_rect" : [ 238.0, 601.0, 35.0, 17.0 ], "fontname" : "Arial", "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "flonum", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "triscale" : 0.9, "outlettype" : [ "float", "bang" ], "id" : "obj-32", "patching_rect" : [ 199.0, 601.0, 35.0, 17.0 ], "fontname" : "Arial", "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "dac~", "numinlets" : 2, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-33", "patching_rect" : [ 160.0, 661.0, 29.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "id" : "obj-34", "patching_rect" : [ 160.0, 489.0, 15.0, 15.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "sig~", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "signal" ], "id" : "obj-35", "patching_rect" : [ 160.0, 530.0, 27.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "groove~ mybuff1", "numinlets" : 3, "numoutlets" : 2, "fontsize" : 9.0, "outlettype" : [ "signal", "signal" ], "id" : "obj-36", "patching_rect" : [ 160.0, 620.0, 88.0, 17.0 ], "fontname" : "Arial", "color" : [ 1.0, 0.890196, 0.090196, 1.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "control playback rate", "linecount" : 3, "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-37", "patching_rect" : [ 203.0, 466.0, 47.0, 38.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "turn loop on/off", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-38", "patching_rect" : [ 224.0, 536.0, 81.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "change working buffer", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-39", "patching_rect" : [ 38.0, 498.0, 112.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "The object itself - note that mybuff1 is the buffer initially being read, but that this can be changed with a 'set' message (see left).", "linecount" : 5, "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-40", "patching_rect" : [ 253.0, 621.0, 131.0, 58.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "1. Read or replace something in one or both of the buffers. Replace resizes the buffer to the size of the soundfile read. Check that something's there by double-clicking on buffer~ or groove~. 2. click startwindow. 3. click startloop. 4. click the checkbox attached to the 'loop $1' message. 5. click the checkbox attached to sig~ 6. alternatively, click the bang on the left.", "linecount" : 5, "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-41", "patching_rect" : [ 15.0, 357.0, 378.0, 58.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "<<<< on/off", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-42", "patching_rect" : [ 41.0, 442.0, 100.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "also see GrooveDuck", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-43", "patching_rect" : [ 270.0, 514.0, 100.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "replace helicopter.aif", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-44", "patching_rect" : [ 294.0, 261.0, 106.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "replace jongly.aif", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-45", "patching_rect" : [ 201.0, 261.0, 89.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "replace", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-46", "patching_rect" : [ 154.0, 261.0, 43.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "read helicopter.aif", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-47", "patching_rect" : [ 58.0, 261.0, 93.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "read", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-48", "patching_rect" : [ 20.0, 261.0, 30.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "buffer~ mybuff2 2000", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "outlettype" : [ "float", "bang" ], "id" : "obj-49", "patching_rect" : [ 20.0, 330.0, 112.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "buffer~ mybuff1 2000", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "outlettype" : [ "float", "bang" ], "id" : "obj-50", "patching_rect" : [ 20.0, 290.0, 112.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "triscale" : 0.9, "outlettype" : [ "int", "bang" ], "id" : "obj-51", "patching_rect" : [ 465.0, 209.0, 35.0, 17.0 ], "fontname" : "Arial", "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "triscale" : 0.9, "outlettype" : [ "int", "bang" ], "id" : "obj-52", "patching_rect" : [ 427.0, 209.0, 35.0, 17.0 ], "fontname" : "Arial", "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "route 74 71", "numinlets" : 1, "numoutlets" : 3, "fontsize" : 9.0, "outlettype" : [ "", "", "" ], "id" : "obj-53", "patching_rect" : [ 427.0, 162.0, 64.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "triscale" : 0.9, "outlettype" : [ "int", "bang" ], "id" : "obj-54", "patching_rect" : [ 465.0, 134.0, 35.0, 17.0 ], "fontname" : "Arial", "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "triscale" : 0.9, "outlettype" : [ "int", "bang" ], "id" : "obj-55", "patching_rect" : [ 427.0, 134.0, 35.0, 17.0 ], "fontname" : "Arial", "bgcolor" : [ 0.866667, 0.866667, 0.866667, 1.0 ], "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "unpack", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "outlettype" : [ "int", "int" ], "id" : "obj-56", "patching_rect" : [ 427.0, 109.0, 40.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "Performance Template 3: Midi/Human Interface Control", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 18.0, "id" : "obj-57", "patching_rect" : [ 448.0, 529.0, 499.0, 27.0 ], "fontname" : "American Typewriter" } } , { "box" : { "maxclass" : "comment", "text" : "see also:", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-58", "patching_rect" : [ 838.0, 430.0, 53.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "change focus by sending the device's name - can also be instantiated as an argument", "linecount" : 3, "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-59", "patching_rect" : [ 783.0, 322.0, 131.0, 38.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "Keyboard", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-60", "patching_rect" : [ 731.0, 342.0, 51.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "Trackpad", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-61", "patching_rect" : [ 732.0, 322.0, 50.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "clear ignore and delta lists", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-62", "patching_rect" : [ 783.0, 298.0, 133.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "don't output zero data from element 6", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-63", "patching_rect" : [ 783.0, 278.0, 179.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "don't output data from element 10", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-64", "patching_rect" : [ 783.0, 258.0, 162.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "delta 5", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-65", "patching_rect" : [ 742.0, 277.0, 40.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "ignore 10", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-66", "patching_rect" : [ 730.0, 257.0, 52.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "don't poll the output queue", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-67", "patching_rect" : [ 783.0, 238.0, 125.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "poll 0", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-68", "patching_rect" : [ 742.0, 237.0, 40.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "clear", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-69", "patching_rect" : [ 750.0, 297.0, 32.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "output queue every 10 ms", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-70", "patching_rect" : [ 783.0, 218.0, 125.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "output event queue", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-71", "patching_rect" : [ 783.0, 198.0, 114.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "generate a menu of available devices", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-72", "patching_rect" : [ 783.0, 179.0, 178.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "output device info to max window", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-73", "patching_rect" : [ 783.0, 159.0, 160.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "id" : "obj-74", "patching_rect" : [ 767.0, 197.0, 15.0, 15.0 ] } } , { "box" : { "maxclass" : "number", "numinlets" : 1, "bordercolor" : [ 1.0, 1.0, 1.0, 0.0 ], "triangle" : 0, "fontface" : 1, "numoutlets" : 2, "fontsize" : 9.0, "triscale" : 0.9, "outlettype" : [ "int", "bang" ], "id" : "obj-75", "patching_rect" : [ 714.0, 475.0, 35.0, 17.0 ], "hbgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "fontname" : "Arial", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "number", "numinlets" : 1, "bordercolor" : [ 1.0, 1.0, 1.0, 0.0 ], "triangle" : 0, "fontface" : 1, "numoutlets" : 2, "fontsize" : 9.0, "triscale" : 0.9, "outlettype" : [ "int", "bang" ], "id" : "obj-76", "patching_rect" : [ 759.0, 475.0, 35.0, 17.0 ], "hbgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "fontname" : "Arial", "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ] } } , { "box" : { "maxclass" : "newobj", "text" : "unpack 0 0", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "outlettype" : [ "int", "int" ], "id" : "obj-77", "patching_rect" : [ 714.0, 450.0, 55.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "hi", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 14.0, "id" : "obj-78", "patching_rect" : [ 935.0, 454.0, 23.0, 23.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "print hi", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-79", "patching_rect" : [ 726.0, 412.0, 42.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "poll 10", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-80", "patching_rect" : [ 742.0, 217.0, 40.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "umenu", "numinlets" : 1, "labelclick" : 1, "numoutlets" : 3, "items" : [ "Trackpad", ",", "Keyboard" ], "fontsize" : 9.0, "outlettype" : [ "int", "", "" ], "id" : "obj-81", "types" : [ ], "patching_rect" : [ 750.0, 387.0, 173.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "menu", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-82", "patching_rect" : [ 750.0, 178.0, 32.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "hi", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 9.0, "outlettype" : [ "list", "" ], "id" : "obj-83", "patching_rect" : [ 714.0, 387.0, 29.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "message", "text" : "info", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "" ], "id" : "obj-84", "patching_rect" : [ 757.0, 158.0, 25.0, 15.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "human interface object", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-85", "patching_rect" : [ 850.0, 476.0, 112.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "panel", "numinlets" : 1, "bordercolor" : [ 1.0, 1.0, 1.0, 1.0 ], "numoutlets" : 0, "border" : 1, "id" : "obj-86", "patching_rect" : [ 755.0, 473.0, 44.0, 18.0 ], "rounded" : 0, "bgcolor" : [ 0.713726, 0.74902, 0.286275, 1.0 ] } } , { "box" : { "maxclass" : "panel", "numinlets" : 1, "bordercolor" : [ 1.0, 1.0, 1.0, 1.0 ], "numoutlets" : 0, "border" : 1, "id" : "obj-87", "patching_rect" : [ 710.0, 473.0, 44.0, 18.0 ], "rounded" : 0, "bgcolor" : [ 0.772549, 0.356863, 0.356863, 1.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "device menu", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-88", "patching_rect" : [ 797.0, 403.0, 100.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "midiparse", "numinlets" : 1, "numoutlets" : 7, "fontsize" : 9.0, "outlettype" : [ "", "", "", "int", "int", "int", "int" ], "id" : "obj-89", "patching_rect" : [ 401.0, 88.0, 92.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "newobj", "text" : "midiin", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 9.0, "outlettype" : [ "int" ], "id" : "obj-90", "patching_rect" : [ 401.0, 66.0, 37.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "featuring use of MIDI Controllers and USB Controllers", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-91", "patching_rect" : [ 448.0, 567.0, 252.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "to test your USB device, plug it in, restart Max/MSP, press 'menu', select your device, click on 'poll 10' and check whether you have data appearing in the coloured boxes below. USB can be rather flaky, so if you don't get a response, try quitting and restarting Max, or even restarting the computer. Always plug the device in before starting Max.", "linecount" : 7, "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-92", "patching_rect" : [ 646.0, 57.0, 248.0, 79.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "the object is here >>>>>>", "linecount" : 2, "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-93", "patching_rect" : [ 649.0, 384.0, 64.0, 27.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "1. double-click here to set your midi input device >>>>>>", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-94", "patching_rect" : [ 134.0, 68.0, 264.0, 17.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "2. midiparse separates the various midi messages. In this case, we're only using MIDI controls: the third outlet.", "linecount" : 2, "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-95", "patching_rect" : [ 99.0, 84.0, 299.0, 27.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "3. your device's control data should appear in these boxes. The box on the left should display the control number, the box on the right that control's value.", "linecount" : 2, "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-96", "patching_rect" : [ 59.0, 130.0, 365.0, 27.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "comment", "text" : "4. Use the route object, direct from midiparse to obtain the value of any particular control. Route accepts pairs of numbers, the first of which determines which outlet the second is used.", "linecount" : 3, "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-97", "patching_rect" : [ 28.0, 157.0, 382.0, 38.0 ], "fontname" : "Arial" } } , { "box" : { "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "border" : 1, "id" : "obj-98", "patching_rect" : [ 16.0, 238.0, 403.0, 118.0 ], "rounded" : 0, "bgcolor" : [ 0.74902, 0.74902, 0.74902, 1.0 ] } } , { "box" : { "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "border" : 1, "id" : "obj-99", "patching_rect" : [ 15.0, 419.0, 405.0, 268.0 ], "rounded" : 0, "bgcolor" : [ 0.74902, 0.74902, 0.74902, 1.0 ] } } , { "box" : { "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "border" : 1, "id" : "obj-100", "patching_rect" : [ 636.0, 49.0, 391.0, 455.0 ], "rounded" : 0, "bgcolor" : [ 0.74902, 0.74902, 0.74902, 1.0 ] } } , { "box" : { "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "border" : 1, "id" : "obj-101", "patching_rect" : [ 16.0, 55.0, 498.0, 180.0 ], "rounded" : 0, "bgcolor" : [ 0.74902, 0.74902, 0.74902, 1.0 ] } } , { "box" : { "maxclass" : "comment", "text" : "v0.4 RH 2006-9", "numinlets" : 1, "numoutlets" : 0, "fontsize" : 9.0, "id" : "obj-102", "patching_rect" : [ 448.0, 552.0, 100.0, 17.0 ], "fontname" : "Arial" } } ], "lines" : [ { "patchline" : { "source" : [ "obj-8", 1 ], "destination" : [ "obj-7", 1 ], "hidden" : 0, "midpoints" : [ 887.5, 690.0, 897.5, 690.0 ] } } , { "patchline" : { "source" : [ "obj-8", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-6", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-7", 0 ], "hidden" : 0, "midpoints" : [ 830.0, 698.0, 853.5, 698.0 ] } } , { "patchline" : { "source" : [ "obj-77", 1 ], "destination" : [ "obj-76", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-83", 1 ], "destination" : [ "obj-81", 0 ], "hidden" : 0, "midpoints" : [ 733.5, 405.0, 746.0, 405.0, 746.0, 385.0, 759.5, 385.0 ] } } , { "patchline" : { "source" : [ "obj-83", 0 ], "destination" : [ "obj-79", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-77", 0 ], "destination" : [ "obj-75", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-83", 0 ], "destination" : [ "obj-77", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-60", 0 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ 740.5, 359.0, 723.5, 359.0 ] } } , { "patchline" : { "source" : [ "obj-61", 0 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ 741.5, 339.0, 723.5, 339.0 ] } } , { "patchline" : { "source" : [ "obj-65", 0 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ 751.5, 294.0, 723.5, 294.0 ] } } , { "patchline" : { "source" : [ "obj-74", 0 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ 776.0, 214.0, 723.5, 214.0 ] } } , { "patchline" : { "source" : [ "obj-84", 0 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ 766.5, 175.0, 723.5, 175.0 ] } } , { "patchline" : { "source" : [ "obj-82", 0 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ 759.5, 195.0, 723.5, 195.0 ] } } , { "patchline" : { "source" : [ "obj-80", 0 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ 751.5, 234.0, 723.5, 234.0 ] } } , { "patchline" : { "source" : [ "obj-68", 0 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ 751.5, 254.0, 723.5, 254.0 ] } } , { "patchline" : { "source" : [ "obj-66", 0 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ 739.5, 274.0, 723.5, 274.0 ] } } , { "patchline" : { "source" : [ "obj-81", 1 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ 836.5, 405.0, 926.0, 405.0, 926.0, 382.0, 723.5, 382.0 ] } } , { "patchline" : { "source" : [ "obj-69", 0 ], "destination" : [ "obj-83", 0 ], "hidden" : 0, "midpoints" : [ 759.5, 314.0, 723.5, 314.0 ] } } , { "patchline" : { "source" : [ "obj-53", 1 ], "destination" : [ "obj-51", 0 ], "hidden" : 0, "midpoints" : [ 459.0, 194.0, 474.5, 194.0 ] } } , { "patchline" : { "source" : [ "obj-56", 1 ], "destination" : [ "obj-54", 0 ], "hidden" : 0, "midpoints" : [ 457.5, 131.0, 474.5, 131.0 ] } } , { "patchline" : { "source" : [ "obj-53", 0 ], "destination" : [ "obj-52", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-89", 2 ], "destination" : [ "obj-53", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-56", 0 ], "destination" : [ "obj-55", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-89", 2 ], "destination" : [ "obj-56", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-90", 0 ], "destination" : [ "obj-89", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-22", 0 ], "destination" : [ "obj-23", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-31", 0 ], "destination" : [ "obj-36", 2 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-29", 0 ], "destination" : [ "obj-30", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-29", 0 ], "hidden" : 0, "midpoints" : [ 32.0, 530.0, 215.0, 530.0 ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-45", 0 ], "hidden" : 0, "midpoints" : [ 14.5, 236.0, 210.5, 236.0 ] } } , { "patchline" : { "source" : [ "obj-32", 0 ], "destination" : [ "obj-36", 1 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-27", 0 ], "destination" : [ "obj-33", 0 ], "hidden" : 0, "midpoints" : [ 115.5, 656.0, 169.5, 656.0 ] } } , { "patchline" : { "source" : [ "obj-28", 0 ], "destination" : [ "obj-33", 0 ], "hidden" : 0, "midpoints" : [ 46.5, 656.0, 169.5, 656.0 ] } } , { "patchline" : { "source" : [ "obj-36", 0 ], "destination" : [ "obj-33", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-23", 0 ], "destination" : [ "obj-36", 0 ], "hidden" : 0, "midpoints" : [ 264.5, 593.0, 169.5, 593.0 ] } } , { "patchline" : { "source" : [ "obj-24", 0 ], "destination" : [ "obj-36", 0 ], "hidden" : 0, "midpoints" : [ 74.5, 557.0, 169.5, 557.0 ] } } , { "patchline" : { "source" : [ "obj-30", 0 ], "destination" : [ "obj-36", 0 ], "hidden" : 0, "midpoints" : [ 215.5, 597.0, 169.5, 597.0 ] } } , { "patchline" : { "source" : [ "obj-26", 0 ], "destination" : [ "obj-36", 0 ], "hidden" : 0, "midpoints" : [ 74.5, 588.0, 169.5, 588.0 ] } } , { "patchline" : { "source" : [ "obj-25", 0 ], "destination" : [ "obj-36", 0 ], "hidden" : 0, "midpoints" : [ 74.5, 613.0, 169.5, 613.0 ] } } , { "patchline" : { "source" : [ "obj-35", 0 ], "destination" : [ "obj-36", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-36", 0 ], "hidden" : 0, "midpoints" : [ 74.5, 556.0, 169.5, 556.0 ] } } , { "patchline" : { "source" : [ "obj-34", 0 ], "destination" : [ "obj-35", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-21", 0 ], "destination" : [ "obj-35", 0 ], "hidden" : 0, "midpoints" : [ 187.5, 526.0, 169.5, 526.0 ] } } , { "patchline" : { "source" : [ "obj-20", 0 ], "destination" : [ "obj-35", 0 ], "hidden" : 0, "midpoints" : [ 187.5, 528.0, 169.5, 528.0 ] } } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-35", 0 ], "hidden" : 0, "midpoints" : [ 187.5, 526.0, 169.5, 526.0 ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "midpoints" : [ 32.0, 470.0, 169.0, 470.0 ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-25", 0 ], "hidden" : 0, "midpoints" : [ 32.0, 588.0, 74.5, 588.0 ] } } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-28", 0 ], "hidden" : 0, "midpoints" : [ 32.0, 603.0, 46.5, 603.0 ] } } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-49", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-12", 0 ], "destination" : [ "obj-14", 0 ], "hidden" : 0, "midpoints" : [ 14.5, 309.0, 29.5, 309.0 ] } } , { "patchline" : { "source" : [ "obj-48", 0 ], "destination" : [ "obj-50", 0 ], "hidden" : 0, "midpoints" : [ ] } } , { "patchline" : { "source" : [ "obj-47", 0 ], "destination" : [ "obj-50", 0 ], "hidden" : 0, "midpoints" : [ 67.5, 281.0, 29.5, 281.0 ] } } , { "patchline" : { "source" : [ "obj-46", 0 ], "destination" : [ "obj-50", 0 ], "hidden" : 0, "midpoints" : [ 163.5, 281.0, 29.5, 281.0 ] } } , { "patchline" : { "source" : [ "obj-45", 0 ], "destination" : [ "obj-50", 0 ], "hidden" : 0, "midpoints" : [ 210.5, 281.0, 29.5, 281.0 ] } } , { "patchline" : { "source" : [ "obj-44", 0 ], "destination" : [ "obj-50", 0 ], "hidden" : 0, "midpoints" : [ 303.5, 281.0, 29.5, 281.0 ] } } ] } }