Forums > Max For Live

Device Id of the Device itself

June 8, 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..


June 8, 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/

-Ben


June 8, 2010 | 10:29 pm

thanx,

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


June 8, 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)


June 9, 2010 | 8:19 am

Thanks a lot!



pid
June 9, 2010 | 8:51 am

or e.g. -

– Pasted Max Patch, click to expand. –


Anonymous
June 9, 2010 | 9:06 am

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


Viewing 7 posts - 1 through 7 (of 7 total)