Device Id of the Device itself

Steve Mensink's icon

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..

Ben Bracken's icon

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

Steve Mensink's icon

thanx,

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

Valiumdupeuple's icon

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)

665.M4L.api.SelectParameterSmall.maxpat
Max Patch
Steve Mensink's icon

Thanks a lot!

pid's icon
Max Patch
Copy patch and select New From Clipboard in Max.

or e.g. -

anonymous's icon

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