{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 8 } , "rect" : [ 614.0, 167.0, 838.0, 588.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" : { "bgcolor" : [ 0.800411, 0.91851, 0.910926, 0.91 ], "id" : "obj-58", "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 570.0, 442.0, 120.0, 116.0 ], "presentation_rect" : [ 586.0, 436.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-59", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 570.0, 405.0, 97.0, 20.0 ], "text" : "prepend bgcolor" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-57", "maxclass" : "newobj", "numinlets" : 4, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 570.0, 375.0, 89.0, 20.0 ], "text" : "pack 0. 0. 0. 0." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-56", "maxclass" : "flonum", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 720.0, 330.0, 50.0, 20.0 ], "presentation_rect" : [ 767.0, 328.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-55", "maxclass" : "flonum", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 670.0, 330.0, 50.0, 20.0 ], "presentation_rect" : [ 709.0, 327.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-54", "maxclass" : "flonum", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 620.0, 330.0, 50.0, 20.0 ], "presentation_rect" : [ 646.0, 330.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-53", "maxclass" : "flonum", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "float", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 570.0, 330.0, 50.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-51", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 4, "outlettype" : [ "float", "float", "float", "float" ], "patching_rect" : [ 570.0, 285.0, 103.0, 20.0 ], "text" : "unpack 0. 0. 0. 0." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-50", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 600.0, 210.0, 160.0, 33.0 ], "presentation_rect" : [ 615.0, 208.0, 0.0, 0.0 ], "text" : "This is the new RGBA colour system" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-49", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "list", "bang" ], "patching_rect" : [ 570.0, 255.0, 160.0, 20.0 ], "text" : "colorpicker @compatibility 0" } } , { "box" : { "id" : "obj-48", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 570.0, 210.0, 20.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-46", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 389.0, 210.0, 154.0, 33.0 ], "text" : "This is the old RGB colour system" } } , { "box" : { "bgcolor" : [ 0.54902, 0.819608, 1.0, 1.0 ], "id" : "obj-44", "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 360.0, 442.0, 120.0, 116.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-41", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 360.0, 405.0, 82.0, 20.0 ], "text" : "prepend brgb" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-40", "maxclass" : "newobj", "numinlets" : 3, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 360.0, 375.0, 66.0, 20.0 ], "text" : "pack 0 0 0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-39", "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 470.0, 330.0, 50.0, 20.0 ], "presentation_rect" : [ 468.0, 300.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-38", "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 415.0, 330.0, 50.0, 20.0 ], "presentation_rect" : [ 413.0, 305.0, 0.0, 0.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-37", "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "int", "bang" ], "parameter_enable" : 0, "patching_rect" : [ 360.0, 330.0, 50.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-35", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "int", "int", "int" ], "patching_rect" : [ 360.0, 285.0, 79.0, 20.0 ], "text" : "unpack 0 0 0" } } , { "box" : { "id" : "obj-32", "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "bang" ], "patching_rect" : [ 360.0, 210.0, 20.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-29", "linecount" : 7, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 360.0, 90.0, 420.0, 100.0 ], "text" : "The colorpicker object opens the colour picker dialog for your operating system (Mac or Windows). There are two different ways to specify colours. In the old system, Red, Green and Blue components are each specified with an integer value between 0 and 255. In the new system, Red, Green, Blue and Alpha components are each specified with a floating point value between 0. and 1. The Alpha component indicates the transparency / opacity of the colour. (We will learn more about @ attributes later)." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-27", "maxclass" : "newobj", "numinlets" : 1, "numoutlets" : 2, "outlettype" : [ "list", "bang" ], "patching_rect" : [ 360.0, 255.0, 160.0, 20.0 ], "text" : "colorpicker @compatibility 1" } } , { "box" : { "attr" : "fontface", "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-26", "maxclass" : "attrui", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 90.0, 470.0, 150.0, 20.0 ], "presentation_rect" : [ 79.0, 480.0, 0.0, 0.0 ] } } , { "box" : { "attr" : "textcolor", "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-25", "maxclass" : "attrui", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 45.0, 410.0, 150.0, 20.0 ], "presentation_rect" : [ 80.0, 469.0, 0.0, 0.0 ] } } , { "box" : { "attr" : "fontsize", "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-24", "maxclass" : "attrui", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 75.0, 450.0, 150.0, 20.0 ], "presentation_rect" : [ 65.0, 447.0, 0.0, 0.0 ] } } , { "box" : { "attr" : "fontname", "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-23", "maxclass" : "attrui", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 60.0, 430.0, 150.0, 20.0 ], "presentation_rect" : [ 51.0, 428.0, 0.0, 0.0 ] } } , { "box" : { "bgcolor" : [ 0.158363, 0.019813, 0.5, 1.0 ], "fontface" : 2, "fontname" : "Arial", "fontsize" : 16.0, "id" : "obj-22", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 30.0, 510.0, 306.0, 22.0 ], "text" : "This is a sample message", "textcolor" : [ 1.0, 0.5, 0.0, 1.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-19", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 345.0, 306.0, 33.0 ], "text" : "The Max attrui object lets you inspect and adjust the attributes of the object that it is connected to." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-16", "linecount" : 5, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 255.0, 306.0, 74.0 ], "text" : "Sometimes it is nice to be able to adjust aspects of the patch's user interface dynamically. Musicians or artists who perform with Max instruments, for example, might want to change the colours of the screen to match other aspects of the performance, like lighting or costumes." } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-14", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 270.0, 180.0, 66.0, 33.0 ], "text" : "Big blue led object" } } , { "box" : { "id" : "obj-12", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "offcolor" : [ 0.0, 0.370052, 0.501961, 1.0 ], "oncolor" : [ 0.0, 0.735922, 0.984314, 1.0 ], "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 210.0, 180.0, 45.0, 45.0 ] } } , { "box" : { "bgcolor" : [ 0.0, 0.0, 1.0, 1.0 ], "fontface" : 3, "fontname" : "Arial", "fontsize" : 14.0, "frgb" : 0.0, "id" : "obj-11", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 180.0, 165.0, 38.0 ], "text" : "14 point bold italic white on blue comment", "textcolor" : [ 1.0, 1.0, 1.0, 1.0 ] } } , { "box" : { "attr" : "bgcolor", "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-7", "maxclass" : "attrui", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 30.0, 390.0, 150.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-5", "linecount" : 5, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 90.0, 306.0, 74.0 ], "text" : "As we have worked with various objects we have occasionally opened the inspector window to change default values or formatting. We've changed the font size and style of comments, for example, and the colour of leds." } } , { "box" : { "bubble" : 1, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-2", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 15.0, 321.0, 51.0 ], "text" : "Patch 026. Attrui and Colorpicker\nWilliam J Turkel\nhttp://williamjturkel.net/code/#programming" } } , { "box" : { "bgcolor" : [ 1.0, 1.0, 1.0, 0.0 ], "border" : 1, "id" : "obj-3", "maxclass" : "panel", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 15.0, 75.0, 810.0, 495.0 ], "rounded" : 20 } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-22", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-23", 0 ] } } , { "patchline" : { "destination" : [ "obj-22", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-24", 0 ] } } , { "patchline" : { "destination" : [ "obj-22", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-25", 0 ] } } , { "patchline" : { "destination" : [ "obj-22", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-26", 0 ] } } , { "patchline" : { "destination" : [ "obj-35", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-27", 0 ] } } , { "patchline" : { "destination" : [ "obj-27", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-32", 0 ] } } , { "patchline" : { "destination" : [ "obj-37", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-35", 0 ] } } , { "patchline" : { "destination" : [ "obj-38", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-35", 1 ] } } , { "patchline" : { "destination" : [ "obj-39", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-35", 2 ] } } , { "patchline" : { "destination" : [ "obj-40", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-37", 0 ] } } , { "patchline" : { "destination" : [ "obj-40", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-38", 0 ] } } , { "patchline" : { "destination" : [ "obj-40", 2 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-39", 0 ] } } , { "patchline" : { "destination" : [ "obj-41", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-40", 0 ] } } , { "patchline" : { "destination" : [ "obj-44", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-41", 0 ] } } , { "patchline" : { "destination" : [ "obj-49", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-48", 0 ] } } , { "patchline" : { "destination" : [ "obj-51", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-49", 0 ] } } , { "patchline" : { "destination" : [ "obj-53", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-51", 0 ] } } , { "patchline" : { "destination" : [ "obj-54", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-51", 1 ] } } , { "patchline" : { "destination" : [ "obj-55", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-51", 2 ] } } , { "patchline" : { "destination" : [ "obj-56", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-51", 3 ] } } , { "patchline" : { "destination" : [ "obj-57", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-53", 0 ] } } , { "patchline" : { "destination" : [ "obj-57", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-54", 0 ] } } , { "patchline" : { "destination" : [ "obj-57", 2 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-55", 0 ] } } , { "patchline" : { "destination" : [ "obj-57", 3 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-56", 0 ] } } , { "patchline" : { "destination" : [ "obj-59", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-57", 0 ] } } , { "patchline" : { "destination" : [ "obj-58", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-59", 0 ] } } , { "patchline" : { "destination" : [ "obj-22", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-7", 0 ] } } ], "dependency_cache" : [ ] } }