Patch for sending API packets to an XBee


    Nov 07 2009 | 6:31 pm
    Hello there,
    I spent quite a while on getting Arduino's with XBees running in API mode working with Max/MSP and I used or got inspired by quite some code I found by people sharing it, so here is my finished, working patch for others to use or be inspired by.
    It uses the input from a Logitech Wingman joystick to send it to 1 to 4 XBees. Some comments are in dutch but it might be useful anyway. It's called puppetmaster because I used it to control vibrating motors that were attached to actors' limbs to make em behave like string puppets.
    greetings,
    Albert van Andel

    • Nov 17 2009 | 3:36 pm
      Hi,
      I'm pretty new to Max/MSP so please forgive the vagueness of my question. I'm trying to set up two Xbees to talk to each other for the first time and so far I have had only limited success. Using the following blog post as a guide, I have been able to briefly transmit data from one Xbee to another, but not the other way around: http://blog.lib.umn.edu/ali/2009xbee/
      If you have any general or specific advice about the process you went through initially to set up the Xbees and get them talking, I'd be very grateful. Thanks!
    • Dec 22 2009 | 5:31 pm
      Hi Albert,
      Since your attachment got lost in the forum "upgrade", do you mind reposting your patch?
      Thanks,
      David
    • Jun 30 2010 | 12:17 am
      i'd love to see that patch too... any chance of a repost?
    • Jun 30 2010 | 3:52 am
      +1
      always looking for new ways to work with wireless and microcontrollers...
    • Jul 04 2010 | 7:46 pm
      Here it is again:
      {
      "patcher" : {
      "fileversion" : 1,
      "rect" : [ 643.0, 183.0, 797.0, 496.0 ],
      "bglocked" : 0,
      "defrect" : [ 643.0, 183.0, 797.0, 496.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" : "comment",
      "text" : " HANDENnaan uit",
      "linecount" : 2,
      "id" : "obj-41",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 65.0, 272.0, 150.0, 34.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "button",
      "id" : "obj-39",
      "numinlets" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 68.0, 305.0, 45.0, 45.0 ],
      "outlettype" : [ "bang" ]
      }
      }
      , {
      "box" : {
      "maxclass" : "number",
      "id" : "obj-36",
      "numinlets" : 1,
      "hidden" : 1,
      "numoutlets" : 2,
      "patching_rect" : [ 170.0, 428.0, 50.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int", "bang" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "button",
      "id" : "obj-25",
      "numinlets" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 119.0, 306.0, 47.0, 47.0 ],
      "outlettype" : [ "bang" ]
      }
      }
      , {
      "box" : {
      "maxclass" : "number",
      "id" : "obj-19",
      "numinlets" : 1,
      "hidden" : 1,
      "numoutlets" : 2,
      "patching_rect" : [ 84.0, 365.0, 50.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int", "bang" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "Rechts",
      "id" : "obj-95",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 523.0, 256.0, 150.0, 20.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "Links",
      "id" : "obj-94",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 416.0, 259.0, 150.0, 20.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "Achter",
      "id" : "obj-93",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 470.0, 317.0, 150.0, 20.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "Voor",
      "id" : "obj-92",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 466.0, 138.0, 150.0, 20.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "LinkerVoet",
      "id" : "obj-91",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 327.0, 341.0, 150.0, 20.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "RechterVoet",
      "id" : "obj-90",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 574.0, 338.0, 150.0, 20.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "RechterHand",
      "id" : "obj-88",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 575.0, 32.0, 150.0, 20.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "LinkerHand",
      "id" : "obj-87",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 327.0, 31.0, 150.0, 20.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "IV",
      "id" : "obj-86",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 194.0, 32.0, 150.0, 20.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "III",
      "id" : "obj-85",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 138.0, 33.0, 150.0, 20.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "II",
      "id" : "obj-84",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 82.0, 32.0, 150.0, 20.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "comment",
      "text" : "I",
      "id" : "obj-83",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 37.0, 32.0, 150.0, 20.0 ],
      "fontname" : "Arial",
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "p gates",
      "id" : "obj-82",
      "numinlets" : 4,
      "hidden" : 1,
      "numoutlets" : 5,
      "patching_rect" : [ -509.0, 133.0, 73.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "", "", "", "", "" ],
      "fontsize" : 12.0,
      "patcher" : {
      "fileversion" : 1,
      "rect" : [ 25.0, 69.0, 640.0, 480.0 ],
      "bglocked" : 0,
      "defrect" : [ 25.0, 69.0, 640.0, 480.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" : "newobj",
      "text" : "gate",
      "id" : "obj-60",
      "numinlets" : 2,
      "numoutlets" : 1,
      "patching_rect" : [ 240.0, 216.0, 34.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "gate",
      "id" : "obj-59",
      "numinlets" : 2,
      "numoutlets" : 1,
      "patching_rect" : [ 183.0, 216.0, 34.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "gate",
      "id" : "obj-58",
      "numinlets" : 2,
      "numoutlets" : 1,
      "patching_rect" : [ 120.0, 216.0, 34.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "gate",
      "id" : "obj-55",
      "numinlets" : 2,
      "numoutlets" : 1,
      "patching_rect" : [ 50.0, 216.0, 34.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "toggle",
      "id" : "obj-51",
      "numinlets" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 240.0, 171.0, 20.0, 20.0 ],
      "outlettype" : [ "int" ]
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "route 52",
      "id" : "obj-52",
      "numinlets" : 1,
      "numoutlets" : 2,
      "patching_rect" : [ 240.0, 131.0, 55.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "", "" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "key",
      "id" : "obj-53",
      "numinlets" : 0,
      "numoutlets" : 4,
      "patching_rect" : [ 240.0, 100.0, 59.5, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int", "int", "int", "int" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "toggle",
      "id" : "obj-43",
      "numinlets" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 183.0, 171.0, 20.0, 20.0 ],
      "outlettype" : [ "int" ]
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "route 51",
      "id" : "obj-44",
      "numinlets" : 1,
      "numoutlets" : 2,
      "patching_rect" : [ 183.0, 131.0, 55.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "", "" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "key",
      "id" : "obj-50",
      "numinlets" : 0,
      "numoutlets" : 4,
      "patching_rect" : [ 183.0, 100.0, 59.5, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int", "int", "int", "int" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "toggle",
      "id" : "obj-36",
      "numinlets" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 120.0, 171.0, 20.0, 20.0 ],
      "outlettype" : [ "int" ]
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "route 50",
      "id" : "obj-41",
      "numinlets" : 1,
      "numoutlets" : 2,
      "patching_rect" : [ 120.0, 131.0, 55.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "", "" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "key",
      "id" : "obj-42",
      "numinlets" : 0,
      "numoutlets" : 4,
      "patching_rect" : [ 120.0, 100.0, 59.5, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int", "int", "int", "int" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "toggle",
      "id" : "obj-25",
      "numinlets" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 50.0, 171.0, 20.0, 20.0 ],
      "outlettype" : [ "int" ]
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "route 49",
      "id" : "obj-18",
      "numinlets" : 1,
      "numoutlets" : 2,
      "patching_rect" : [ 50.0, 131.0, 55.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "", "" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "key",
      "id" : "obj-17",
      "numinlets" : 0,
      "numoutlets" : 4,
      "patching_rect" : [ 50.0, 100.0, 59.5, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int", "int", "int", "int" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "inlet",
      "id" : "obj-73",
      "numinlets" : 0,
      "numoutlets" : 1,
      "patching_rect" : [ 70.0, 40.0, 25.0, 25.0 ],
      "outlettype" : [ "int" ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "inlet",
      "id" : "obj-74",
      "numinlets" : 0,
      "numoutlets" : 1,
      "patching_rect" : [ 140.0, 40.0, 25.0, 25.0 ],
      "outlettype" : [ "int" ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "inlet",
      "id" : "obj-75",
      "numinlets" : 0,
      "numoutlets" : 1,
      "patching_rect" : [ 203.0, 40.0, 25.0, 25.0 ],
      "outlettype" : [ "int" ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "inlet",
      "id" : "obj-76",
      "numinlets" : 0,
      "numoutlets" : 1,
      "patching_rect" : [ 260.0, 40.0, 25.0, 25.0 ],
      "outlettype" : [ "int" ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-77",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 55.0, 296.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-78",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 16.0, 301.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-79",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 125.0, 296.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-80",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 188.0, 296.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-81",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 245.0, 296.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      ],
      "lines" : [ {
      "patchline" : {
      "source" : [ "obj-52", 0 ],
      "destination" : [ "obj-81", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-44", 0 ],
      "destination" : [ "obj-80", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-41", 0 ],
      "destination" : [ "obj-79", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-60", 0 ],
      "destination" : [ "obj-78", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-59", 0 ],
      "destination" : [ "obj-78", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-58", 0 ],
      "destination" : [ "obj-78", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-55", 0 ],
      "destination" : [ "obj-78", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-18", 0 ],
      "destination" : [ "obj-77", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-76", 0 ],
      "destination" : [ "obj-60", 1 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-75", 0 ],
      "destination" : [ "obj-59", 1 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-74", 0 ],
      "destination" : [ "obj-58", 1 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-73", 0 ],
      "destination" : [ "obj-55", 1 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-51", 0 ],
      "destination" : [ "obj-60", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-36", 0 ],
      "destination" : [ "obj-58", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-43", 0 ],
      "destination" : [ "obj-59", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-25", 0 ],
      "destination" : [ "obj-55", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-52", 0 ],
      "destination" : [ "obj-51", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-53", 0 ],
      "destination" : [ "obj-52", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-50", 0 ],
      "destination" : [ "obj-44", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-44", 0 ],
      "destination" : [ "obj-43", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-41", 0 ],
      "destination" : [ "obj-36", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-42", 0 ],
      "destination" : [ "obj-41", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-18", 0 ],
      "destination" : [ "obj-25", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      , {
      "patchline" : {
      "source" : [ "obj-17", 0 ],
      "destination" : [ "obj-18", 0 ],
      "hidden" : 0,
      "midpoints" : [ ]
      }
      }
      ]
      }
      ,
      "saved_object_attributes" : {
      "default_fontsize" : 12.0,
      "globalpatchername" : "",
      "fontname" : "Arial",
      "default_fontface" : 0,
      "default_fontname" : "Arial",
      "fontface" : 0,
      "fontsize" : 12.0
      }
      }
      }
      , {
      "box" : {
      "maxclass" : "toggle",
      "id" : "obj-72",
      "numinlets" : 1,
      "ignoreclick" : 1,
      "bordercolor" : [ 0.0, 0.0, 0.0, 1.0 ],
      "numoutlets" : 1,
      "patching_rect" : [ 183.0, 56.0, 43.0, 43.0 ],
      "outlettype" : [ "int" ]
      }
      }
      , {
      "box" : {
      "maxclass" : "toggle",
      "id" : "obj-70",
      "numinlets" : 1,
      "ignoreclick" : 1,
      "checkedcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
      "bordercolor" : [ 0.0, 0.0, 0.0, 1.0 ],
      "numoutlets" : 1,
      "patching_rect" : [ 124.0, 56.0, 43.0, 43.0 ],
      "outlettype" : [ "int" ],
      "bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ]
      }
      }
      , {
      "box" : {
      "maxclass" : "toggle",
      "id" : "obj-69",
      "numinlets" : 1,
      "ignoreclick" : 1,
      "checkedcolor" : [ 1.0, 1.0, 1.0, 1.0 ],
      "bordercolor" : [ 0.0, 0.0, 0.0, 1.0 ],
      "numoutlets" : 1,
      "patching_rect" : [ 21.0, 56.0, 43.0, 43.0 ],
      "outlettype" : [ "int" ],
      "bgcolor" : [ 0.0, 0.0, 0.0, 1.0 ]
      }
      }
      , {
      "box" : {
      "maxclass" : "toggle",
      "id" : "obj-67",
      "numinlets" : 1,
      "ignoreclick" : 1,
      "bordercolor" : [ 0.0, 0.0, 0.0, 1.0 ],
      "numoutlets" : 1,
      "patching_rect" : [ 71.0, 56.0, 43.0, 43.0 ],
      "outlettype" : [ "int" ]
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "scale 0 255 0 1",
      "id" : "obj-16",
      "numinlets" : 6,
      "hidden" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 585.0, 282.0, 92.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "scale 0 255 0 1",
      "id" : "obj-12",
      "numinlets" : 6,
      "hidden" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 338.0, 302.0, 92.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "scale 0 255 0 1",
      "id" : "obj-11",
      "numinlets" : 6,
      "hidden" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 466.0, 233.0, 92.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "scale 0 255 0 1",
      "id" : "obj-10",
      "numinlets" : 6,
      "hidden" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 585.0, 186.0, 92.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "scale 0 255 0 1",
      "id" : "obj-5",
      "numinlets" : 6,
      "hidden" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 417.0, 169.0, 92.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "scale 0 255 0 1",
      "id" : "obj-3",
      "numinlets" : 6,
      "hidden" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 466.0, 126.0, 92.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "scale 0 255 0 1",
      "id" : "obj-2",
      "numinlets" : 6,
      "hidden" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 585.0, 23.0, 92.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "scale 0 255 0 1",
      "id" : "obj-1",
      "numinlets" : 6,
      "hidden" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ 338.0, 22.0, 92.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "varname" : "APIsender[3]",
      "text" : "p APIsender 4",
      "id" : "obj-49",
      "numinlets" : 5,
      "hidden" : 1,
      "numoutlets" : 1,
      "patching_rect" : [ -161.0, 71.0, 87.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "int" ],
      "fontsize" : 12.0,
      "patcher" : {
      "fileversion" : 1,
      "rect" : [ 41.0, 44.0, 561.0, 820.0 ],
      "bglocked" : 0,
      "defrect" : [ 41.0, 44.0, 561.0, 820.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" : "newobj",
      "text" : "p",
      "id" : "obj-90",
      "numinlets" : 1,
      "numoutlets" : 23,
      "patching_rect" : [ 75.0, 50.0, 100.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang" ],
      "fontsize" : 12.0,
      "patcher" : {
      "fileversion" : 1,
      "rect" : [ 0.0, 0.0, 640.0, 480.0 ],
      "bglocked" : 0,
      "defrect" : [ 0.0, 0.0, 640.0, 480.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" : "newobj",
      "text" : "t b b b b b b",
      "id" : "obj-199",
      "numinlets" : 1,
      "numoutlets" : 6,
      "patching_rect" : [ 50.0, 100.0, 86.5, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "bang", "bang", "bang", "bang", "bang", "bang" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "newobj",
      "text" : "t b b b b b b b b b b b b b b b b b b b",
      "id" : "obj-118",
      "numinlets" : 1,
      "numoutlets" : 19,
      "patching_rect" : [ 397.0, 183.0, 619.0, 20.0 ],
      "fontname" : "Arial",
      "outlettype" : [ "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang", "bang" ],
      "fontsize" : 12.0
      }
      }
      , {
      "box" : {
      "maxclass" : "inlet",
      "id" : "obj-57",
      "numinlets" : 0,
      "numoutlets" : 1,
      "patching_rect" : [ 55.0, 40.0, 25.0, 25.0 ],
      "outlettype" : [ "int" ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-58",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 68.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-59",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 95.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-60",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 109.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-62",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 122.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-63",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 402.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-64",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 435.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-73",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 468.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-74",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 502.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-75",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 535.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-76",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 568.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-77",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 602.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-78",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 635.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-79",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 668.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-80",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 702.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" : {
      "maxclass" : "outlet",
      "id" : "obj-81",
      "numinlets" : 1,
      "numoutlets" : 0,
      "patching_rect" : [ 735.0, 263.0, 25.0, 25.0 ],
      "comment" : ""
      }
      }
      , {
      "box" :
    • Jul 05 2010 | 11:28 am
      again, use Copy Compressed or attach the patch, don't just copy/paste... :)
    • Jul 28 2010 | 11:23 am
      Hello Skyper, I'd love to have a look at your patch too, but it looks like it's not complete or something... could you send again as copy compressed ?
      please :)
      thanks
    • Apr 02 2013 | 9:23 am
      Here it is again
      Greetings!