I'm using Live 8.1.4 and Max 5.1.4. I'm storing the track current_output_routing and current_output_sub_routing information and then, later, setting it again using the following patch:
<pre><code>
----------begin_max5_patcher----------
621.3ocuW1zbaBCDF9L7qPiN6lgOM3dq8duzdrSFFAnhUKHwfDttIS9uWIAz
Z2hsUBXcAhVg79tOZ2UJO65.yYGwbH38fuBbbd10wQaRYvYbrCrAcrnFw0eF
jh+IK+6vMCSIvGEZysc3VLsD7ErXZNVunFKD+pEO76CgfGGm5aLpfSdROgev
Cdilo8MDpbMZO4OZjTpcfzouKBdx5onF85geBSqYfOiq5qQcSeQKRTrmPqx5
vEhA+u0S5HPXTr50N8f.4y+HJo2Gj7f6UFew0U8XyxXi.TCxuLU1.f4HZ0ho
SvJPmDMbhRtAbBVO3Lk3vwBPQeWGlJxjdpsWjw6yy5j+sTn2ubp.uU.aA9Cu
RisWV0U.2cGZ96VDzBGRylnV7V6QsdZKp3G.Nfe0BxkSnsqPZk+VMmRCsW43
S0fN7gUjMAyvF+0fMA5WwQ1iM0jC3GjSnTx5TZMCbhWi1QoV+Lt1NBU.WVMS
3JD5QdlcBl2aHzavbNpB+ewdESv.h8DdVI9.o.CJPTFkTfpyZQp9xu1rEOyK
kRmkYenifpAejUWdEfM1cYrPxOIZnkiMxVzURRIs+5MZ17ZIzbMhSVNghGZ0
3qGjdQ.E9F.jV6FjebVX5MSXd6K9NdX6zyKsKOZsf0znRcUN.dRfoWlbCj9u
+aCZGqredzxY8cESwy3k3A+04kXt7pJHAgQO4aBO6a1SJKwzSC7FRYKS1vYT
BfGmk7lpnXCTTjUUTfAJRcJpkkj+sjTpUkjuATJvtJJ0jMtD6poDCzT7Y6t2
cIYxNm5Fz1DSaMIaxyt0bdFt0YYLcy9.6rql1cmwjbvKt+1Q0iGa
-----------end_max5_patcher-----------
</code></pre>
When I was using Kontakt on a single track and simply changing the output sub-routing to talk to different MIDI channels everything was working fine.
Now I am switching between different tracks hosting instruments and what I am finding is that it's often not setting the output sub-routing properly. That is it reliably switches track but it's left pointing to "Track In". I have to invoke it a second time to get it to set the routing to a specific instrument on the track.
Is there some kind of timing anomaly? Like the object hasn't registered the track has changed when the second message to set the track current_output_sub_routing arrives?
Maybe I've made some other error?
Any help would be appreciated. The whole device is available here here.
Matt