Forums > Max For Live

asking (what track am I on?) from a MFL device

February 18, 2010 | 12:25 am

Hey, this should be easy. I want to make a MFL device dropped on a channel query what channel it’s on. The purpose is to then send that to a hub prepended to other info so the hub knows which channel device it’s getting the info from.

If it’s just a few objects a patch would be greatly appreciated as well. All I need is the way to ask "where am I?" not the other stuff.
Thanks

Shane


February 18, 2010 | 1:15 am

check out the ‘this_device’ in the Live Object Model. You can then do a ‘getpath’ on the resulting id. I use something like the following abstraction:

– Pasted Max Patch, click to expand. –

February 18, 2010 | 3:01 am

Awesome thanks, just what I needed. Things don’t really get this low level on the maxforlive.com site but this is a useful little abstraction.


February 18, 2010 | 1:04 pm

Ben,

regarding your patch I’m wondering if there is an advantage using a path message with loadbang instead of an object [live.path this_device] which is initialized automatically when loaded?


February 18, 2010 | 3:39 pm

Either method should work fine. The loadbang is just habit on my part.

-Ben


February 20, 2010 | 12:14 am

Nice patch, Ben!

Here’s my bizarre device that allows you to control track volume, panning, and sends.

Since it essentially duplicates the functionality of Live itself,
it’s not meant to be a device that you just plug in and use.
Instead, you can copy parts of it if you want your device to control the track’s mixer.

For example, it you want multichannel audio output controlled by the MFL device,
you can control the track’s sends for that purpose.

xo<

———-begin_max5_patcher———-
1612.3oc6alzaiaCEG+rymBAidzIfaZatTLIm5sBzC8vfh.YKFa0QRzPhNMS
Gj9YubQdKgRh1wlJAwAHIxZg7w+7w26mIo94UiFOk8Dsdr2W79l2nQ+7pQiT
mRdhQMedz3hjmlkmTqtsw4YORuIMKIe7D8UeLopLofpt3umTt9zKqXbF+GKo
at3xsWrbUAaEOmxUkIp4r5SIeFsAMd7DuwOjyR3i89ql6IKUUVro+80nMUUB
e1hrx42WQmw0OJNH3FvDOXHV9OBQ9WewwaJmkUzZZIOgmwJkOBbSYUIrWNs5
dggOMmt603UYIky2+bhVRV45FBzPguiQEijlQHrESpN4QZ58IbQ0LcEmt8n5
ltil9CojmuhxdX8oWe98r9mVxJE1fxrDU0quiUkY7Z9OzMm.C2PgneWdMefw
mu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Up1FVI6WyRXWK4KT6ug.ga0wiFH
BdBWt1+bQRSHMujBueyiU9quUgnq4PqQ.Z1loPPvPr3s5M2ZyVbcWS3z4aw8
lS457FcSR1x3Syw8LNU5ctSCzj25ICK.eridOgQtVUtT5qYLkZlYohbroHD+
lUZlHONpeUSuOxgXaFrdtkMwWsHcZxAs8v6vYRURFkkN22E3sCaz68Bm4Ksp
XZeatVa8NjdDS5PBf.T+wwgQ5MANXP16I5uiF5UlvIluPmk9rN4e39GEh82F
65nyXhN0ea.E1fl7+rJPjdEHhhLSC09oatQA8m7SOsFGNteqAsTEfnYV9x2P
SkIHO+9hVMaU0r0Mml2PRO3FyHkJQc2Du3aaeoJ1954MdQVZJsbWLrhrzkLQ
rrFankA+VaRv8ptNrIn6rIfM1Dzo5j78OqeaB3VaJvBaRtkTboMQrvGWteFb
nM8BInEaxs8cw13iGib53NIZrGtGaRQI4RGJYlvdUJU9.W18EakQQNLihftw
WjWW+NxiWe7aV.8swUyw5muU5G18FEzJiB5P+erMceQNdPIxl9O25SIWqsd6
9HD2ZS1nSD25lSrwghPbpWNwlzgDGm4IzpXTt0lrAWGhbbDJarI2hqGYSjb2
5NgsIT.1sgBv1DJ.61PlXa38v9N0EW9B42q+D9sjtS7gmu5+AmB.tZ.
———–end_max5_patcher———–


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