{ "patcher" : { "fileversion" : 1, "appversion" : { "major" : 6, "minor" : 0, "revision" : 8 } , "rect" : [ 1047.0, 100.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" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-65", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 223.5, 225.0, 60.0 ], "text" : "Each of the pulldown menus is a umenu object. The items in a umenu are set with the inspector and saved with the patch." } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-63", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 675.0, 300.0, 32.5, 20.0 ], "text" : "> 1" } } , { "box" : { "id" : "obj-61", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 675.0, 497.0, 20.0, 20.0 ], "presentation_rect" : [ 698.5, 512.0, 0.0, 0.0 ] } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-62", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 675.0, 527.0, 75.0, 33.0 ], "presentation_rect" : [ 698.5, 542.0, 0.0, 0.0 ], "text" : "Naked seed plant" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-60", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 405.0, 448.0, 35.0, 20.0 ], "text" : ">= 1" } } , { "box" : { "id" : "obj-58", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 405.0, 497.0, 20.0, 20.0 ], "presentation_rect" : [ 404.0, 509.0, 0.0, 0.0 ] } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-59", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 405.0, 527.0, 60.0, 20.0 ], "presentation_rect" : [ 404.0, 539.0, 0.0, 0.0 ], "text" : "Flowers" } } , { "box" : { "id" : "obj-53", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 546.0, 497.0, 20.0, 20.0 ], "presentation_rect" : [ 484.0, 510.0, 0.0, 0.0 ] } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-54", "linecount" : 2, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 546.0, 527.0, 129.0, 33.0 ], "presentation_rect" : [ 484.0, 540.0, 0.0, 0.0 ], "text" : "Cottonwood, poplar, aspen or rose" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-52", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 546.0, 448.0, 32.5, 20.0 ], "text" : "&&" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-51", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 594.0, 420.0, 32.5, 20.0 ], "text" : "< 4" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-50", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 546.0, 420.0, 32.5, 20.0 ], "text" : "> 1" } } , { "box" : { "id" : "obj-47", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 480.0, 497.0, 20.0, 20.0 ], "presentation_rect" : [ 411.0, 511.0, 0.0, 0.0 ] } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-48", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 480.0, 527.0, 51.0, 20.0 ], "presentation_rect" : [ 411.0, 541.0, 0.0, 0.0 ], "text" : "Maple" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-49", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 480.0, 448.0, 35.0, 20.0 ], "presentation_rect" : [ 411.0, 477.0, 0.0, 0.0 ], "text" : "== 1" } } , { "box" : { "id" : "obj-45", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 270.0, 497.0, 20.0, 20.0 ], "presentation_rect" : [ 283.0, 513.0, 0.0, 0.0 ] } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-46", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 270.0, 527.0, 60.0, 20.0 ], "presentation_rect" : [ 283.0, 543.0, 0.0, 0.0 ], "text" : "Seeds" } } , { "box" : { "id" : "obj-43", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 195.0, 497.0, 20.0, 20.0 ], "presentation_rect" : [ 208.0, 512.0, 0.0, 0.0 ] } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-44", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 195.0, 527.0, 60.0, 20.0 ], "presentation_rect" : [ 208.0, 542.0, 0.0, 0.0 ], "text" : "Seedless" } } , { "box" : { "id" : "obj-40", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 120.0, 497.0, 20.0, 20.0 ], "presentation_rect" : [ 125.0, 513.0, 0.0, 0.0 ] } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-41", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 120.0, 527.0, 60.0, 20.0 ], "presentation_rect" : [ 125.0, 543.0, 0.0, 0.0 ], "text" : "Vascular" } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-39", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 392.0, 360.0, 60.0, 20.0 ], "text" : "Family?" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-37", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 540.0, 330.0, 32.5, 18.0 ], "presentation_rect" : [ 533.0, 362.0, 0.0, 0.0 ], "text" : "0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-36", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 540.0, 300.0, 35.0, 20.0 ], "text" : "== 1" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-35", "items" : [ "", ",", "maple", ",", "willow", ",", "rose" ], "maxclass" : "umenu", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "int", "", "" ], "parameter_enable" : 0, "patching_rect" : [ 540.0, 360.0, 100.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-34", "items" : [ "", ",", "flowering", ",", "naked", "seed" ], "maxclass" : "umenu", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "int", "", "" ], "parameter_enable" : 0, "patching_rect" : [ 540.0, 270.0, 100.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-32", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 540.0, 238.5, 32.5, 18.0 ], "presentation_rect" : [ 560.0, 261.0, 0.0, 0.0 ], "text" : "0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-33", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 540.0, 208.5, 32.5, 20.0 ], "presentation_rect" : [ 560.0, 231.0, 0.0, 0.0 ], "text" : "> 1" } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-31", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 392.0, 270.0, 79.0, 20.0 ], "presentation_rect" : [ 411.0, 249.0, 0.0, 0.0 ], "text" : "Flowering?" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-30", "maxclass" : "message", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "" ], "patching_rect" : [ 519.0, 150.0, 32.5, 18.0 ], "text" : "0" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-28", "linecount" : 3, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 165.0, 300.0, 47.0 ], "text" : "As an example, we use a number of these operators to create a partial taxonomy, or classification tree, for some common plants" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-26", "linecount" : 4, "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 88.0, 300.0, 60.0 ], "text" : "Max has a number of binary comparison operators which can be used by themselves or combined into more complicated logical expressions with logical operators like AND." } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-24", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 392.0, 178.5, 79.0, 20.0 ], "presentation_rect" : [ 412.0, 186.0, 0.0, 0.0 ], "text" : "Seeds?" } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-23", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 392.0, 88.0, 79.0, 20.0 ], "text" : "Vascular?" } } , { "box" : { "id" : "obj-18", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 345.0, 497.0, 20.0, 20.0 ], "presentation_rect" : [ 488.0, 459.0, 0.0, 0.0 ] } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-19", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 345.0, 527.0, 51.0, 20.0 ], "presentation_rect" : [ 488.0, 489.0, 0.0, 0.0 ], "text" : "Fern" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-17", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 345.0, 448.0, 35.0, 20.0 ], "text" : "== 1" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-16", "items" : [ "", ",", "seedless", ",", "seeded" ], "maxclass" : "umenu", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "int", "", "" ], "parameter_enable" : 0, "patching_rect" : [ 519.0, 178.5, 100.0, 20.0 ] } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-15", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 519.0, 120.0, 32.5, 20.0 ], "text" : "> 1" } } , { "box" : { "id" : "obj-14", "maxclass" : "led", "numinlets" : 1, "numoutlets" : 1, "outlettype" : [ "int" ], "parameter_enable" : 0, "patching_rect" : [ 30.0, 497.0, 20.0, 20.0 ] } } , { "box" : { "fontface" : 2, "fontname" : "Arial", "fontsize" : 12.0, "frgb" : 0.0, "id" : "obj-13", "maxclass" : "comment", "numinlets" : 1, "numoutlets" : 0, "patching_rect" : [ 30.0, 527.0, 83.0, 20.0 ], "text" : "Nonvascular" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-5", "maxclass" : "newobj", "numinlets" : 2, "numoutlets" : 1, "outlettype" : [ "int" ], "patching_rect" : [ 30.0, 448.0, 35.0, 20.0 ], "text" : "== 1" } } , { "box" : { "fontname" : "Arial", "fontsize" : 12.0, "id" : "obj-22", "items" : [ "", ",", "nonvascular", ",", "vascular" ], "maxclass" : "umenu", "numinlets" : 1, "numoutlets" : 3, "outlettype" : [ "int", "", "" ], "parameter_enable" : 0, "patching_rect" : [ 492.0, 88.0, 105.0, 20.0 ] } } , { "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, 315.0, 51.0 ], "text" : "Patch 044. Making Decisions\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" : [ 10.0, 75.0, 810.0, 495.0 ], "rounded" : 20 } } ], "lines" : [ { "patchline" : { "destination" : [ "obj-30", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-15", 0 ] } } , { "patchline" : { "destination" : [ "obj-40", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 528.5, 146.0, 492.0, 146.0, 492.0, 387.0, 129.5, 387.0 ], "source" : [ "obj-15", 0 ] } } , { "patchline" : { "destination" : [ "obj-17", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 528.5, 397.0, 354.5, 397.0 ], "source" : [ "obj-16", 0 ] } } , { "patchline" : { "destination" : [ "obj-33", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-16", 0 ] } } , { "patchline" : { "destination" : [ "obj-18", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-17", 0 ] } } , { "patchline" : { "destination" : [ "obj-43", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 354.5, 477.0, 204.5, 477.0 ], "source" : [ "obj-17", 0 ] } } , { "patchline" : { "destination" : [ "obj-15", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-22", 0 ] } } , { "patchline" : { "destination" : [ "obj-5", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 501.5, 392.0, 39.5, 392.0 ], "source" : [ "obj-22", 0 ] } } , { "patchline" : { "destination" : [ "obj-16", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-30", 0 ] } } , { "patchline" : { "destination" : [ "obj-34", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-32", 0 ] } } , { "patchline" : { "destination" : [ "obj-32", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-33", 0 ] } } , { "patchline" : { "destination" : [ "obj-45", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 549.5, 233.0, 279.5, 233.0 ], "source" : [ "obj-33", 0 ] } } , { "patchline" : { "destination" : [ "obj-36", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-34", 0 ] } } , { "patchline" : { "destination" : [ "obj-60", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 549.5, 295.0, 462.0, 295.0, 462.0, 437.0, 414.5, 437.0 ], "source" : [ "obj-34", 0 ] } } , { "patchline" : { "destination" : [ "obj-63", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 549.5, 294.0, 660.0, 294.0, 660.0, 294.0, 684.5, 294.0 ], "source" : [ "obj-34", 0 ] } } , { "patchline" : { "destination" : [ "obj-49", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 549.5, 402.0, 489.5, 402.0 ], "source" : [ "obj-35", 0 ] } } , { "patchline" : { "destination" : [ "obj-50", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 549.5, 407.0, 555.5, 407.0 ], "source" : [ "obj-35", 0 ] } } , { "patchline" : { "destination" : [ "obj-51", 0 ], "disabled" : 0, "hidden" : 0, "midpoints" : [ 549.5, 407.0, 603.5, 407.0 ], "source" : [ "obj-35", 0 ] } } , { "patchline" : { "destination" : [ "obj-37", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-36", 0 ] } } , { "patchline" : { "destination" : [ "obj-35", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-37", 0 ] } } , { "patchline" : { "destination" : [ "obj-47", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-49", 0 ] } } , { "patchline" : { "destination" : [ "obj-14", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-5", 0 ] } } , { "patchline" : { "destination" : [ "obj-52", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-50", 0 ] } } , { "patchline" : { "destination" : [ "obj-52", 1 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-51", 0 ] } } , { "patchline" : { "destination" : [ "obj-53", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-52", 0 ] } } , { "patchline" : { "destination" : [ "obj-58", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-60", 0 ] } } , { "patchline" : { "destination" : [ "obj-61", 0 ], "disabled" : 0, "hidden" : 0, "source" : [ "obj-63", 0 ] } } ], "dependency_cache" : [ ] } }