Device Id of the Device itself

    Jun 08 2010 | 8:56 pm
    How is it possible to get the the ID of the m4l device itself? I cannot figure it out wile i thought it should be rather simple.
    I'm trying to built something that produces a list of all the devices that are in the same track, therefore I thought the best way is by knowing its own ID. Perhaps there are better ways...
    I did see exactly what I am trying to do in the Device Randomizer 2.0 by Hanako, the only thing is i canot figure out his js code. the answer remains hidden..

    • Jun 08 2010 | 10:03 pm
      you can send a 'get devices' to a live.object that is set to the track id.
      Check out the M4L.api.GetAllDeviceIds.maxpat in Max5/patches/m4l-patches/LiveAPI resources/
    • Jun 08 2010 | 10:29 pm
      But how wil it know on what track the device is in?
    • Jun 08 2010 | 11:11 pm
      Put these two maxpat inside two bpatchers. First the "SelectThisDevice.maxpat" (I should named it using the plural for "device" but...) and then connect its outlet to M4L.api.SelectParameterSmall.maxpat" inlet.
      You're done!
      (It's using the "this_device" to determine the parent track)
    • Jun 09 2010 | 8:19 am
      Thanks a lot!
    • Jun 09 2010 | 8:51 am
      or e.g. -
    • Jun 09 2010 | 9:06 am
      Hi ! I've just visited this forum. Happy to get acquainted with you. Thanks. __________________Watch Splice Online Free