Device Id of the Device itself

Jun 8, 2010 at 8:56pm

Device Id of the Device itself

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 8, 2010 at 10:03pm

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 8, 2010 at 10:29pm


But how wil it know on what track the device is in?

Jun 8, 2010 at 11:11pm

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 9, 2010 at 8:19am

Thanks a lot!

Jun 9, 2010 at 8:51am

or e.g. -

– Pasted Max Patch, click to expand. –


Jun 9, 2010 at 9:06am

Hi !
I’ve just visited this forum. Happy to get acquainted with you. Thanks.
Watch Splice Online Free


You must be logged in to reply to this topic.