[live.thisdevice] bangs before control_surfaces are created

Learn about building and using Max for Live devices.
Post Reply
patrickstinson
Posts: 168
Joined: Thu Oct 13, 2011 5:01 am
Location: Anchorage, Alaska
Contact:

[live.thisdevice] bangs before control_surfaces are created

Post by patrickstinson » Sat Sep 13, 2014 9:36 pm

I am finding that the [live.thisdevice] sends a bang before the control surfaces are initialized in the Live application if the max patch is stored in a patch that is loaded immediately when open the Live app. For example when Live is not running, and then you double click on a project file in Finder (or explorer probably, too).

Is this known behavior, and has anyone worked around it? One thought is if [getcount control_surfaces] returns 0, then to poll once or twice more every second or so until at least one control surface is detected. This could work since I design all my sub-patches to be initialized with a bang from a single [live.thisdevice].

Thoughts? Thanks!
Web | Mobile | Audio
http://vedanamedia.com/

JoshG567
Posts: 353
Joined: Fri Mar 07, 2014 7:42 pm

Re: [live.thisdevice] bangs before control_surfaces are created

Post by JoshG567 » Sat Sep 13, 2014 10:12 pm

If I'm not mistaken that's one of the recent bugfixes in the latest 9.1.5 beta.

patrickstinson
Posts: 168
Joined: Thu Oct 13, 2011 5:01 am
Location: Anchorage, Alaska
Contact:

Re: [live.thisdevice] bangs before control_surfaces are created

Post by patrickstinson » Sun Sep 14, 2014 12:06 am

Hmm, the change note is :
The [live.thisdevice] Max for Live object would no longer send a bang message out its first outlet when adding/removing control surface scripts in the Live preferences.
The description is a little odd. I don't think the intended behavior of [live.thisdevice] is to send a bang out it's first outlet when a control surface script is added. Although if that is in fact the case then it would solve my reported problem if the initial device loaded bang was delayed until all the control surfaces are loaded.

In the meantime I added a delayed re-try that typically finally finds them about 500ms after [live.thisdevice] sends it's bang. So long as I use this to init my patch everything is fine. Here is the discovery code:

Code: Select all

----------begin_max5_patcher----------
1359.3ocyZszrhhCFcs9qHE0r71Vj.AvolMyra1MKlcc0kEBQM8fAJHbezc0
+2m7.7ReMnQaI5BEIjP9xImumwuOel25xWIMdfeG7YvrYee9rYpljMLq69Yd
6SeMqHsQ0MOF4kx0e06I8i3jW4plqpoLNn5+VT01raEM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mEJqmzzUMAeGVqrQPp1uQMkd1z6F77lo6HOWR4E5udqQIclbVX
oFk7.j1BLQeAAuCo00CUsLi48G+HfOQIWl++acpKJzwJ5D7dZDuuPQct35Nc
H2YE+TARBWdOCjrGYv9+hARp5u5XD9vQUqlTY6+Lr0T1Vm0+J6NNLv6yZNog
SYobZIaPejENbPm1QyyIrg0aKm1jttfnPWei6e1JNIVHNKclzHqw1YEGYklb
k7.sQd7cm73ag7D3NwwBoIwYRSnMhCB9XIONTbP1vcbmttr.W.jM5VP2IOm0
xLxs3Czl8KGgO1XJ7LnydZdUoHV+NemHQbcxjN0mDTf9fsFdi9zhvgxdgGdZ
521k0YQ4H2sqag3fbmRQfMgqfcmGm.ahWIzcNjkE567FUcmOPES8rzYrakmy
5S1cNcBrwmrrjSC7LMoxiMA79AR1TJOnk1hONRdrRe2chiMp6H2otirI+Dn6
TurIDSn6XypU94BwD4P4I1xDlP1GCELRcPFwpnlRz+e+vSRjRJoGNUktPWXk
zppmkG2o9cpDEu8oeU+OsT8+0Tr9Y5aU0Fxql7Lsu+wpVRqy1Q4jLdastFSu
lD4MWNO+X9+ybURBE
-----------end_max5_patcher-----------
Web | Mobile | Audio
http://vedanamedia.com/

S4racen
Posts: 5836
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: [live.thisdevice] bangs before control_surfaces are created

Post by S4racen » Sun Sep 14, 2014 7:55 am

i agree with your findings, thats always been the way

Cheers
D

Post Reply