This_track?

Learn about building and using Max for Live devices.
Post Reply
drart
Posts: 3
Joined: Thu Nov 12, 2009 1:39 am

This_track?

Post by drart » Tue Mar 23, 2010 5:24 pm

Hi,

I see there is a this_device message I can use but I am wondering if it is possible to get this_track so that my patch would know which track it is attached to.

Thanks for the help.

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Re: This_track?

Post by hoffman2k » Tue Mar 23, 2010 5:49 pm

drart wrote:Hi,

I see there is a this_device message I can use but I am wondering if it is possible to get this_track so that my patch would know which track it is attached to.

Thanks for the help.
You can get the track from the this_device message, as the result of "getpath" reads something like "path live_set tracks 13 devices 0".

drart
Posts: 3
Joined: Thu Nov 12, 2009 1:39 am

Re: This_track?

Post by drart » Tue Mar 23, 2010 9:22 pm

Awesome. This is it exactly.

I have found a new problem. I would like to insert my patch into a track but when I do that the loadbang message doesn't necessarily function. Is there a way to have a loadbang send when a patch is instantiated?

Sorry for the simple questions.

hyaahyaa
Posts: 21
Joined: Thu Oct 22, 2009 2:35 am

Re: This_track?

Post by hyaahyaa » Tue Mar 23, 2010 9:31 pm

Loadbang not functioning seems like a bug to me. Loadbangs won't send when you move a device around (re-ordering or moving to a different track) or when a live set opens, but definitely should send when you drag in a new instance.

drart
Posts: 3
Joined: Thu Nov 12, 2009 1:39 am

Re: This_track?

Post by drart » Tue Mar 23, 2010 10:46 pm

Hi,

I think I have it now. I rebooted and loadbang now works when I think it should. Loadbang doesn't work when a live_set opens? Is that documented anywhere? That seems like a big deal.

broc
Posts: 1151
Joined: Mon Jul 26, 2004 8:37 am

Re: This_track?

Post by broc » Wed Mar 24, 2010 11:01 am

I'm quite sure that loadbangs are sent when opening a Live set. You can easily check it with printing to the Max window.

hyaahyaa
Posts: 21
Joined: Thu Oct 22, 2009 2:35 am

Re: This_track?

Post by hyaahyaa » Thu Mar 25, 2010 2:03 am

You're right. I'm not exactly sure why I thought they didn't.

Post Reply