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

#50805
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/

-Ben

#182334
Jun 8, 2010 at 10:29pm

thanx,

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

#182335
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)

#182336
Jun 9, 2010 at 8:19am

Thanks a lot!

#182337
Jun 9, 2010 at 8:51am

or e.g. -

– Pasted Max Patch, click to expand. –
#182338

Anonymous

Anonymous
Jun 9, 2010 at 9:06am

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

#182339

You must be logged in to reply to this topic.