newly created audio device becomes inactive when clicking somewhere else in live


    Jun 08 2013 | 9:07 am
    hi,
    i am new in M4L, and have just created my first audio device: a simple patch that records to a new clip when you hit a certain key, and stops recording and goes to the next clip when the key is released.
    the problem is that the device goes inactive when i click anywhere else in live, and only becomes active again when clicking in the numbox included in the presentation mode. in fact, if multiple tracks have the device loaded, they all become active or inactive together.
    does anyone know how to solve this?
    many thanks!

    • Jun 08 2013 | 10:45 am
      Post your device.
    • Jun 10 2013 | 6:42 pm
      ----------begin_max5_patcher---------- recorder kor "a" max x sec.amxd -----------end_max5_patcher-----------
    • Jun 10 2013 | 6:43 pm
      i am obviously not doing right getting this device posted! how do i do this?
    • Jun 10 2013 | 6:54 pm
      ----------begin_max5_patcher---------- { "boxes" : [ { "box" : { "maxclass" : "comment", "prototypename" : "comment", "text" : "max lengte in sec", "patching_rect" : [ 8.0, 56.0, 104.0, 20.0 ], "presentation" : 1, "id" : "obj-28", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontface" : 2, "fontsize" : 12.0, "presentation_rect" : [ 96.0, 72.0, 151.0, 20.0 ] }
      } , { "box" : { "maxclass" : "newobj", "text" : "* 1000", "patching_rect" : [ 64.0, 88.0, 39.0, 18.0 ], "id" : "obj-23", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "int" ] }
      } , { "box" : { "maxclass" : "number", "hint" : "default = 15 sec", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ], "maximum" : 120, "patching_rect" : [ 64.0, 24.0, 43.0, 18.0 ], "triscale" : 0.9, "presentation" : 1, "id" : "obj-21", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 2, "outputonclick" : 1, "mouseup" : 1, "fontface" : 1, "fontsize" : 10.0, "outlettype" : [ "int", "bang" ], "presentation_rect" : [ 24.0, 72.0, 48.0, 18.0 ], "minimum" : 1 }
      } , { "box" : { "maxclass" : "newobj", "text" : "delay 15000", "patching_rect" : [ 64.0, 200.0, 67.0, 18.0 ], "id" : "obj-20", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "bang" ] }
      } , { "box" : { "maxclass" : "newobj", "text" : "- 1", "patching_rect" : [ 360.0, 287.0, 32.5, 18.0 ], "id" : "obj-17", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "int" ] }
      } , { "box" : { "maxclass" : "comment", "prototypename" : "comment", "text" : "clip waarin opgenomen gaat worden", "linecount" : 2, "presentation_linecount" : 2, "patching_rect" : [ 197.0, 193.0, 151.0, 34.0 ], "presentation" : 1, "id" : "obj-11", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 0, "fontface" : 2, "fontsize" : 12.0, "presentation_rect" : [ 96.0, 16.0, 151.0, 34.0 ] }
      } , { "box" : { "maxclass" : "message", "text" : "call stop_all_clips", "patching_rect" : [ 610.0, 249.0, 96.0, 16.0 ], "id" : "obj-10", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] }
      } , { "box" : { "maxclass" : "message", "text" : "goto this_device canonical_parent", "patching_rect" : [ 714.0, 191.0, 174.0, 16.0 ], "id" : "obj-33", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] }
      } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "patching_rect" : [ 714.0, 247.0, 77.0, 18.0 ], "id" : "obj-34", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 3, "fontsize" : 10.0, "outlettype" : [ "", "", "" ] }
      } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "patching_rect" : [ 633.0, 296.0, 100.0, 18.0 ], "id" : "obj-35", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ], "saved_object_attributes" : { "_persistence" : 0 }
      }
      } , { "box" : { "maxclass" : "message", "text" : "1", "patching_rect" : [ 448.0, 136.0, 32.5, 16.0 ], "id" : "obj-31", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] }
      } , { "box" : { "maxclass" : "newobj", "text" : "+", "patching_rect" : [ 468.0, 167.0, 32.5, 18.0 ], "id" : "obj-30", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "int" ] }
      } , { "box" : { "maxclass" : "number", "maximum" : 30, "patching_rect" : [ 360.0, 208.0, 42.0, 18.0 ], "presentation" : 1, "id" : "obj-15", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 2, "outputonclick" : 1, "mouseup" : 1, "fontsize" : 10.0, "outlettype" : [ "int", "bang" ], "presentation_rect" : [ 24.0, 24.0, 50.0, 18.0 ], "minimum" : 1 }
      } , { "box" : { "maxclass" : "newobj", "text" : "if $i1 == 97 then bang", "patching_rect" : [ 584.0, 88.0, 112.0, 18.0 ], "id" : "obj-27", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] }
      } , { "box" : { "maxclass" : "newobj", "text" : "if $i1 == 97 then bang", "patching_rect" : [ 133.0, 130.0, 112.0, 18.0 ], "id" : "obj-16", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] }
      } , { "box" : { "maxclass" : "number", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ], "patching_rect" : [ 584.0, 48.0, 50.0, 20.0 ], "triscale" : 0.9, "id" : "obj-19", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 11.595187, "outlettype" : [ "int", "bang" ] }
      } , { "box" : { "maxclass" : "number", "htextcolor" : [ 0.870588, 0.870588, 0.870588, 1.0 ], "patching_rect" : [ 133.0, 56.0, 50.0, 20.0 ], "triscale" : 0.9, "id" : "obj-39", "fontname" : "Arial", "numinlets" : 1, "numoutlets" : 2, "fontsize" : 11.595187, "outlettype" : [ "int", "bang" ] }
      } , { "box" : { "maxclass" : "newobj", "text" : "keyup", "patching_rect" : [ 584.0, 16.0, 58.0, 20.0 ], "id" : "obj-36", "fontname" : "Arial", "numinlets" : 0, "numoutlets" : 4, "color" : [ 0.537255, 0.537255, 0.537255, 1.0 ], "fontsize" : 11.595187, "outlettype" : [ "int", "int", "int", "int" ] }
      } , { "box" : { "maxclass" : "newobj", "text" : "key", "patching_rect" : [ 133.0, 22.0, 59.5, 18.0 ], "id" : "obj-14", "fontname" : "Arial Bold", "numinlets" : 0, "numoutlets" : 4, "fontsize" : 10.0, "outlettype" : [ "int", "int", "int", "int" ] }
      } , { "box" : { "maxclass" : "message", "text" : "call fire", "patching_rect" : [ 136.0, 344.0, 46.0, 16.0 ], "id" : "obj-5", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] }
      } , { "box" : { "maxclass" : "message", "text" : "goto this_device canonical_parent clip_slots $1", "patching_rect" : [ 359.0, 335.0, 237.0, 16.0 ], "id" : "obj-18", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ] }
      } , { "box" : { "maxclass" : "newobj", "text" : "live.path", "patching_rect" : [ 359.0, 367.0, 77.0, 18.0 ], "id" : "obj-13", "fontname" : "Arial Bold", "numinlets" : 1, "numoutlets" : 3, "fontsize" : 10.0, "outlettype" : [ "", "", "" ] }
      } , { "box" : { "maxclass" : "newobj", "text" : "live.object", "patching_rect" : [ 136.0, 400.0, 100.0, 18.0 ], "id" : "obj-12", "fontname" : "Arial Bold", "numinlets" : 2, "numoutlets" : 1, "fontsize" : 10.0, "outlettype" : [ "" ], "saved_object_attributes" : { "_persistence" : 0 }
      }
      } ], "lines" : [ { "patchline" : { "source" : [ "obj-10", 0 ], "destination" : [ "obj-35", 0 ], "hidden" : 0, "midpoints" : [ 619.5, 280.0, 642.5, 280.0 ] }
      } , { "patchline" : { "source" : [ "obj-13", 0 ], "destination" : [ "obj-12", 1 ], "hidden" : 0, "midpoints" : [ 368.5, 391.0, 226.5, 391.0 ] }
      } , { "patchline" : { "source" : [ "obj-23", 0 ], "destination" : [ "obj-20", 1 ], "hidden" : 0, "midpoints" : [ 73.5, 112.0, 121.5, 112.0 ] }
      } , { "patchline" : { "source" : [ "obj-21", 0 ], "destination" : [ "obj-23", 0 ], "hidden" : 0, "midpoints" : [ ] }
      } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-17", 0 ], "hidden" : 0, "midpoints" : [ ] }
      } , { "patchline" : { "source" : [ "obj-17", 0 ], "destination" : [ "obj-18", 0 ], "hidden" : 0, "midpoints" : [ 369.5, 333.0 ] }
      } , { "patchline" : { "source" : [ "obj-27", 0 ], "destination" : [ "obj-33", 0 ], "hidden" : 0, "midpoints" : [ 593.5, 155.0, 723.5, 155.0 ] }
      } , { "patchline" : { "source" : [ "obj-27", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ 593.5, 208.0, 619.5, 208.0 ] }
      } , { "patchline" : { "source" : [ "obj-33", 0 ], "destination" : [ "obj-34", 0 ], "hidden" : 0, "midpoints" : [ ] }
      } , { "patchline" : { "source" : [ "obj-34", 0 ], "destination" : [ "obj-35", 1 ], "hidden" : 0, "midpoints" : [ ] }
      } , { "patchline" : { "source" : [ "obj-30", 0 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ 477.5, 188.0, 369.5, 188.0 ] }
      } , { "patchline" : { "source" : [ "obj-18", 0 ], "destination" : [ "obj-13", 0 ], "hidden" : 0, "midpoints" : [ ] }
      } , { "patchline" : { "source" : [ "obj-5", 0 ], "destination" : [ "obj-12", 0 ], "hidden" : 0, "midpoints" : [ ] }
      } , { "patchline" : { "source" : [ "obj-14", 0 ], "destination" : [ "obj-39", 0 ], "hidden" : 0, "midpoints" : [ ] }
      } , { "patchline" : { "source" : [ "obj-36", 0 ], "destination" : [ "obj-19", 0 ], "hidden" : 0, "midpoints" : [ ] }
      } , { "patchline" : { "source" : [ "obj-19", 0 ], "destination" : [ "obj-27", 0 ], "hidden" : 0, "midpoints" : [ ] }
      } , { "patchline" : { "source" : [ "obj-31", 0 ], "destination" : [ "obj-30", 0 ], "hidden" : 0, "midpoints" : [ 457.5, 155.0, 477.5, 155.0 ] }
      } , { "patchline" : { "source" : [ "obj-27", 0 ], "destination" : [ "obj-31", 0 ], "hidden" : 0, "midpoints" : [ 593.5, 111.0, 457.5, 111.0 ] }
      } , { "patchline" : { "source" : [ "obj-15", 0 ], "destination" : [ "obj-30", 1 ], "hidden" : 0, "midpoints" : [ 369.5, 238.0, 534.0, 238.0, 534.0, 124.0, 491.0, 124.0 ] }
      } , { "patchline" : { "source" : [ "obj-20", 0 ], "destination" : [ "obj-10", 0 ], "hidden" : 0, "midpoints" : [ 73.5, 235.0, 619.5, 235.0 ] }
      } , { "patchline" : { "source" : [ "obj-39", 0 ], "destination" : [ "obj-16", 0 ], "hidden" : 0, "midpoints" : [ ] }
      } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-5", 0 ], "hidden" : 0, "midpoints" : [ ] }
      } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-20", 0 ], "hidden" : 0, "midpoints" : [ 142.5, 168.0, 73.5, 168.0 ] }
      } , { "patchline" : { "source" : [ "obj-16", 0 ], "destination" : [ "obj-15", 0 ], "hidden" : 0, "midpoints" : [ 142.5, 160.0, 369.5, 160.0 ] }
      } ] }
      -----------end_max5_patcher-----------