Automating creation of sequential objects


    Nov 14 2009 | 3:11 pm
    I am wondering if anyone knows how I could go about automating the creation of sequential message objects from 1 to 10,000?
    And Automate sequential "[preload 2 2.aiff 2} through preload 2 10,001 2].
    I make Aesthetic Interface or functional Max drawings with the patch cords and objects of Max/MSP
    Thank you for your time and help if you have any suggestions please let me know.
    - Eric Souther www.unseensignals.com

    • Nov 14 2009 | 7:39 pm
      why not use thispatcher and scripting?
    • Nov 15 2009 | 10:39 am
      Here's an example, it is using the [thispatcher] approach shown in the help file but with the iterations done in javascript. You didn't mention how you wanted the objects placed so this code throws them somewhere randomly in the current patch.
      lh
      function bang() {
          for (i=0; i
      
    • Nov 17 2009 | 1:45 pm
      Thank you for your help I'm more of a video Guy when it comes to Max and I'm just getting into Java scripting. It's going to cut my time in half.
    • Nov 17 2009 | 10:13 pm
      Yeah javascript can be really usefull. If you have any other questions feel free to ask away! I like the work on your website, good luck with the next project.
      lh
    • Jan 22 2010 | 7:48 pm
      Luke I'm fascinated with this process and I was changing around the Java you gave me and inserting code I thought was logical and comparing it with the help files but still no luck. I can't seam to get all the patch cords to make the connections i'm wanting. It would be nice for the patch too hook itself up automatically.
      This is what I was trying to accomplish...
      I still need this: sequential "[preload 2 2.aiff 2} through preload 2 10,001 2) - all connected to one sfplay object, and 1 button going to the inlet of all the preload objects.
      And I also need 10 route objects that go up to 1,000 each and 10,000 button objects to be connected from the outlets of each router object. Each 10,000 button(bang) objects connected to 10,000 message objects that are also sequential from 2 through 10,001 that are also all connected to one sfplay object.
      I know thats a lot but if you could point me in the right direction that would be amazing. I am making prints (http://unseensignals.com/Unseensignals/Still_Images.html) from quite a few of these drawings and I would be more than happy to send you one for your help... Thanks a lot luke for any help you might be able to give me.
    • Jan 22 2010 | 7:54 pm
      Here is the first basic program at a very much smaller scale...
      { "patcher" : { "fileversion" : 1, "rect" : [ 1974.0, 22.0, 1346.0, 1130.0 ], "bglocked" : 0, "defrect" : [ 1974.0, 22.0, 1346.0, 1130.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, "boxes" : [ { "box" : { "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "patching_rect" : [ 23.035156, 22.218128, 41.961498, 41.961498 ], "outlettype" : [ "int" ], "id" : "obj-366" }
      } , { "box" : { "maxclass" : "newobj", "text" : "metro 6000", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 23.035156, 69.395332, 71.0, 20.0 ], "outlettype" : [ "bang" ], "id" : "obj-368", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "newobj", "text" : "random 100", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 24.035156, 94.87278, 75.0, 20.0 ], "outlettype" : [ "int" ], "id" : "obj-369", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "number", "numinlets" : 1, "numoutlets" : 2, "patching_rect" : [ 23.035156, 121.663353, 50.0, 20.0 ], "outlettype" : [ "int", "bang" ], "id" : "obj-359", "fontname" : "Arial", "fontsize" : 11.595187 }
      } , { "box" : { "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "patching_rect" : [ 101.338257, 21.528126, 41.961498, 41.961498 ], "outlettype" : [ "int" ], "id" : "obj-324" }
      } , { "box" : { "maxclass" : "ezdac~", "varname" : "autohelp_dac", "numinlets" : 2, "numoutlets" : 0, "patching_rect" : [ 200.139053, 1260.493896, 45.0, 45.0 ], "id" : "obj-12", "local" : 1 }
      } , { "box" : { "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "patching_rect" : [ 246.339035, 1261.823975, 20.0, 20.0 ], "outlettype" : [ "bang" ], "id" : "obj-224" }
      } , { "box" : { "maxclass" : "toggle", "numinlets" : 1, "numoutlets" : 1, "patching_rect" : [ 1016.593689, 553.423096, 20.0, 20.0 ], "outlettype" : [ "int" ], "id" : "obj-10" }
      } , { "box" : { "maxclass" : "button", "numinlets" : 1, "numoutlets" : 1, "patching_rect" : [ 1016.593689, 586.020813, 39.0, 39.0 ], "outlettype" : [ "bang" ], "id" : "obj-13" }
      } , { "box" : { "maxclass" : "newobj", "text" : "loadbang", "numinlets" : 1, "numoutlets" : 1, "patching_rect" : [ 1016.593689, 525.992188, 60.0, 20.0 ], "outlettype" : [ "bang" ], "id" : "obj-5", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "set", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 122.006203, 1186.622192, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-14", "fontname" : "Arial", "fontsize" : 11.595187 }
      } , { "box" : { "maxclass" : "message", "text" : "102", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 940.443848, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-356", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "101", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 919.443848, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-355", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "100", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 897.443848, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-354", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "99", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 876.774902, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-353", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "98", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 566.938843, 856.443848, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-352", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "97", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 835.443848, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-351", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "96", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 815.443848, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-350", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "95", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 794.443848, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-349", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "94", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 773.443848, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-348", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "93", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 752.44397, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-347", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "92", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 731.44397, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-346", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "91", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 711.44397, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-338", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "90", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 690.44397, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-339", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "89", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 668.44397, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-340", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "88", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 646.44397, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-341", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "87", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 625.44397, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-342", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "86", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 604.44397, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-343", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "85", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 583.44397, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-344", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "84", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 567.847961, 562.112915, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-345", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "83", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 336.259155, 1057.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-321", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "82", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 406.928162, 1057.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-320", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "81", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 372.928162, 1057.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-319", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "80", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 314.928162, 1057.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-318", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "79", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 345.259155, 1057.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-317", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "78", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 367.928162, 1057.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-316", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "77", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 395.928162, 1057.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-315", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "76", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 355.318176, 1059.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-314", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "75", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 340.318176, 1059.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-313", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "74", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 355.928162, 1057.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-312", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "73", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 340.928162, 1057.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-301", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "72", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 325.928162, 1057.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-238", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "71", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 310.928162, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-237", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "70", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 295.928162, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-236", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "69", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 280.928162, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-235", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "68", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 265.928162, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-234", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "67", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 250.928177, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-233", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "66", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 235.928177, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-232", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "65", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 222.259171, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-231", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "64", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 205.928177, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-230", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "63", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 192.259171, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-229", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "62", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 175.928177, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-228", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "61", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 160.928177, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-227", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "59", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 132.259171, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-223", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "58", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 115.928169, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-222", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "57", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 100.928169, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-221", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "56", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 85.928169, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-220", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "55", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 70.928169, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-219", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "54", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 55.928173, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-218", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "53", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 40.928173, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-217", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "52", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 25.928173, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-216", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "51", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 10.928176, 1056.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-215", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "50", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 350.379028, 1057.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-214", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "49", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 301.379028, 1057.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-213", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "48", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 360.379028, 1057.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-212", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "47", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 373.379028, 1057.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-211", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "46", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 396.379028, 1057.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-210", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "45", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 388.379028, 1057.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-209", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "44", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 359.379028, 1056.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-208", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "43", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 345.379028, 1057.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-207", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "42", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 408.379028, 1057.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-206", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "41", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 326.379028, 1057.525146, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-205", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "40", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 358.58905, 1057.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-204", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "39", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 370.379028, 1057.291992, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-203", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "37", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 552.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-201", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "36", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 537.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-200", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "35", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 522.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-199", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "34", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 507.288055, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-198", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "33", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 492.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-197", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "32", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 477.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-196", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "31", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 462.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-195", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "30", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 447.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-194", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "29", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 432.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-193", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "28", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 417.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-192", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "27", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 402.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-191", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "25", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 372.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-189", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "24", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 357.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-188", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "23", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 342.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-187", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "22", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 327.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-186", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "21", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 312.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-185", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "20", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 297.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-184", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "18", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 267.288086, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-182", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "17", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 252.288101, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-181", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "16", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 237.288116, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-180", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "15", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 222.288116, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-179", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "14", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 207.288116, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-178", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "13", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 192.288116, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-177", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "12", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 177.288116, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-7", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "11", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 162.288116, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-4", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "10", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 147.288116, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-311", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "9", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 132.288116, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-310", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "8", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 117.288094, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-309", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "7", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 99.868088, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-308", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "6", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 84.868088, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-307", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "5", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 69.868095, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-306", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "4", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 54.868099, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-305", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "3", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 39.868099, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-304", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "2", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 24.868097, 961.707031, 32.5, 18.0 ], "outlettype" : [ "" ], "id" : "obj-303", "fontname" : "Arial", "fontsize" : 12.0 }
      } , { "box" : { "maxclass" : "message", "text" : "preload 100 100.aiff 2", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 732.823853, 1164.330933, 123.0, 18.0 ], "outlettype" : [ "" ], "id" : "obj-241", "fontname" : "Arial", "fontsize" : 11.595187 }
      } , { "box" : { "maxclass" : "message", "text" : "preload 99 99.aiff 2", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 733.575195, 1144.082275, 110.0, 18.0 ], "outlettype" : [ "" ], "id" : "obj-242", "fontname" : "Arial", "fontsize" : 11.595187 }
      } , { "box" : { "maxclass" : "message", "text" : "preload 98 98.aiff 2", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 732.823853, 1122.496216, 110.0, 18.0 ], "outlettype" : [ "" ], "id" : "obj-243", "fontname" : "Arial", "fontsize" : 11.595187 }
      } , { "box" : { "maxclass" : "message", "text" : "preload 97 97.aiff 2", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 732.07251, 1102.496216, 110.0, 18.0 ], "outlettype" : [ "" ], "id" : "obj-244", "fontname" : "Arial", "fontsize" : 11.595187 }
      } , { "box" : { "maxclass" : "message", "text" : "preload 96 96.aiff 2", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 732.823853, 1082.117188, 110.0, 18.0 ], "outlettype" : [ "" ], "id" : "obj-245", "fontname" : "Arial", "fontsize" : 11.595187 }
      } , { "box" : { "maxclass" : "message", "text" : "preload 95 95.aiff 2", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 732.823853, 1061.738037, 110.0, 18.0 ], "outlettype" : [ "" ], "id" : "obj-246", "fontname" : "Arial", "fontsize" : 11.595187 }
      } , { "box" : { "maxclass" : "message", "text" : "preload 94 94.aiff 2", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 732.823853, 1039.943604, 110.0, 18.0 ], "outlettype" : [ "" ], "id" : "obj-247", "fontname" : "Arial", "fontsize" : 11.595187 }
      } , { "box" : { "maxclass" : "message", "text" : "preload 93 93.aiff 2", "numinlets" : 2, "numoutlets" : 1, "patching_rect" : [ 732.823853, 1019.738037, 110.0, 18.0 ], "outlettype" : [ "" ], "id" : "obj-248", "fontname" : "Arial", "fontsize" : 11.595187 }
      } , { "box" : { "maxclass" : "message",
    • Jan 23 2010 | 2:53 am
      You need to post your patch using "Copy Compressed" from the edit menu, this will make it much shorter, at the moment the end of the text is missing.
      Here's a javascript which I think does most of what you want. I've limited the numbers though just so the example doesn't get too messy. Just send it a bang and it should work. The objects are just created in rows but you could arrange them however you want with a little bit of work/maths.
      If you've got any questions about how it all works or how to add to it then ask away. Most of it is fairly easy to follow if you read through the javascript reference. Creating the "preload 2 ..." messages involves a bit of a workaround, there may be an easier way to do that but I'll look in to it. The prints are great, nice to see the massive "preload" patch I helped with in there!
      lh
      // crazy.js
      
      var p = this.patcher;
      
      function bang() {
          sfplay = p.newdefault(0,74,"sfplay~");
          for (i=0; i
      
    • Feb 02 2010 | 3:38 am
      Thank you Luke I've really started to understand the java script at least for using it with max I got another object made and connected and it's doing what I was wanting. All though I made the 10,000 everything patch and it takes 6 hours to open it and it's to large to export as PNG... Automatically Crashes. However I started pieces 1,000 sections together and will work from there. Thought I would share this image with you as far as the progress...
      Thanks again Luke take care
    • Feb 02 2010 | 9:22 am
      Looks amazing, keep me posted on how it turns out. Things get really slow when you create multiple objects like this, I think my computer would choke even doing 1000. You might want to slice the patch up into sections, create these individually and then piece them back together in an image editor like photoshop. If you're using max mainly for the drawing then definitely have a look at processing if you haven't already.
      lh
    • Mar 23 2010 | 1:44 pm
      Luke Here is some of my new work...
      I was hoping I could send you a print of one of the pieces if you would like. esouther34@gmail.com
      Take care
    • Jul 27 2010 | 3:04 pm
      Luke hope things are going good for you this summer I have another Javascript question... I'm wanting to make a 100 x 100 video matrix out of bangs.. And I think Javascript would make things run a lot smoother. The Jit.iter object gives the values and coordinates of each pixel which would be 10,000 pixels or in this case 10,000 buttons... I'm wanting all the 0's the black pixels to bang and the white to do nothing... Can you in Javascript give each button a scripting name and connect it to each coordinate in the matrix and then have it bang when the certain value 0 is happening? Hope this makes since.
    • Jul 27 2010 | 3:33 pm
      Sample of it working with a 5 x 5 Video Matrix...
    • Jul 28 2010 | 12:20 am
      I was intrigued by the problem and compulsive as I am, I had to try to solve it. I am sure you are going to get a better solution from Luke since he is the expert, but this might get you started... seems to work for me :) This was also my first time using jitter elements in javascript, so if there is a way to speed up things and make 'em more efficient, let me know.
      Save the js as "movieToBang.js".
      /*************************************************/ /*************************************************/ inlets = 1; outlets = 1;
      autowatch = 1;
      dimX = jsarguments[1]; dimY = jsarguments[2];
      // Jitter objects to use (also declared globally) var myqtmovie = new JitterObject("jit.qt.movie", dimX, dimY); var mymatrix = new JitterMatrix(4, "char", dimX, dimY); var outmatrix = new JitterMatrix(1, "char", dimX, dimY); var myluma = new JitterObject("jit.rgb2luma");
      var value = 30; var offsetX = 0; var offsetY = 0;
      myqtmovie.unique = 1;
      function loadbang() {
      //init some stuff init(); }
      function reset() {
      deleteBang();
      offsetX = 0; offsetY = 0; }
      function init() {
      var name;
      deleteBang();
      for (var x = 0; x < dimX; x++) { for (var y = 0; y < dimY; y++) {
      name = "bang_"+x+"_"+y;
      var obj = this.patcher.newdefault((x*20) + offsetX, (y*20) + offsetY, "button"); obj.varname = name;
      } } }
      function deleteBang() {
      for (var x = 0; x < dimX; x++) { for (var y = 0; y < dimY; y++) {
      var name = "bang_"+x+"_"+y;
      var a = this.patcher.getnamed(name); this.patcher.remove(a);
      } } }
      function read(filename) // read a movie { if(arguments.length==0) { // no movie specified, so open a dialog myqtmovie.read(); init(); }
      else { // read the movie specified myqtmovie.read(filename); init(); } }
      function offset(x, y) {
      offsetX = x; offsetY = y;
      init()
      }
      function bang() // perform one iteration of the playback / processing loop {
      // process
      // get new matrix from movie ([jit.qt.movie]): myqtmovie.matrixcalc(mymatrix, mymatrix);
      myluma.matrixcalc(mymatrix, outmatrix);
      outmatrix.op(">", value);
      // output processed matrix into Max outlet(0, "jit_matrix", outmatrix.name);
      for (var x = 0; x < dimX; x++) { for (var y = 0; y < dimY; y++) {
      if (outmatrix.getcell(x,y)
      var name = "bang_"+x+"_"+y; var obj = this.patcher.getnamed(name); obj.message("bang"); } } } } /*************************************************/ /*************************************************/
    • Jul 28 2010 | 1:15 am
      damn!!! this isn't stable at all. it keeps crashing after about a minute or so. sorry for the noise. if anyone knows why that is, please feel free to tell me how silly I am...
    • Jul 28 2010 | 3:40 pm
      It's still pretty great thank you for your help...