transport object – problem/error?
I have this patch:
----------begin_max5_patcher---------- 483.3ocyV9sSCBCEF+ZLw2gld8bgVfo3U5ygwX5FcrZfVDNDmt36tsk8G1FS YHtsa1Y70Cse8GmdfEWekCdrZNu.itG8DxwYgVwwpYTbVI3fSYymjvJrIhk7 2UieEOX4X.eNX0STrnTdQAB3oYJDg5tNmoJITH9jaxiPG5tRWUBIb.9HiWYA LF87pwxXvjYBY7K47IP0vj.8shF4Z9kPMyChpuXy8XVGIK0Na3GyErj0VPVl Jj5EytGH0Tq7v1xhH6Ln2l2PHXq3WWekIpCC5QRIzAQLJ.422rxy0sNr7NMv xs+gUJGxUHeI5g2JYRPSF8EGOsFyjw+V0Uch4EzchQOBh4+GHVY5Xd9wiBgD vCZCQn9UrXjkEU3oWqgnMPjvKXfPt6L.ja6NPLMYXw78OT4Nr262T0bNzxDO 5v.Mlt6e9vSP2ICnhiS1.lFKI94RgP69krtMwtUBcsGpW+2BExYxhLUNz4iF KCS0u45.+oorZGAoKa3F16MbCapg6t3sZ0vIB4deHj0zlA1A5Epx7IqHT0yr AnZ1NhW.BICDJYsjHamzLQTD2N9Z5mJhxTZHtzGnmObkPqsVPasF4jaMRar1 smEpsCPZ1ZgmEq0tZM+yC17ubOHPHWvdy8z3MifN7MfiBiwn -----------end_max5_patcher-----------
I open this patch, use the toggle start the transport and let it tick for a couple of seconds. Then, I close it, without closing Max (leaving the Max window open), and then I re-open the patch. I click the "0."-button to rewind, but it doesn’t start from measure 1 beat 1! And whatever I do, I can’t make it start on the first beat. What is wrong here?
The transport help says that a timesig message can be sent only if the actual time is 0. But since you are using loadmess this may not be the case when re-opening the patch.
Did you leave the transport running when you closed the window? Closing a window that contains a transport object does not automatically stop the transport. So if the transport is already running when you (re)open a window, it will be at some nonzero location, and even if you reset it to 0 ticks, it will still be running, so then by the time you start banging it with a metro (which in your patch requires a separate mouse click and thus takes some amount of time) it will no longer be at 0. So you might want to check and see if that’s what’s going on.
Yes, the transport was left open. But the nonzero location the transport starts at after the patch is reopened – it doesn’t make sense! I tried leaving the "GlobalTransport" open all the time, and let the patch go for 5 measures or so, then I reopened the patch when the global transport was at 10 measures. The transport started at measure 3.
The problem is that if you forget to stop the transport before closing the patch (since most often, you don’t worry about doing anything in a patch before closing it), and as you forget it, the error will always be present there until Max is restarted.
I "solved" the problem using a closebang object which turns off the transport and sends it to location 0 before the patch is closed:
----------begin_max5_patcher---------- 547.3oc0VF0aaBCDG+YpT+NX4myhrMPZYOs84XZZx.tTOA1Lvnksp8ceFaHi 1RBtIPI6EN37Y6+9G2cvS2diGLVtmUCAeD7Efm2SZOdFesd75c3AKn6Sxo0l .gB1OkweGtoaLEaux3WAhAnCtEMEbQNSYlCt26CRgpl+alwIYKZPzxFUe3jd 27TyJq2tODbXksAp9UIypaXLUjA2.fbgVHesOrRpJ4QtH6aUrDkMRebndKA9 Hy0f1qD88+aNsxSPKLKL7yUbZNzLxet8lVq1r4hwTRtrlYk7XnB81PEdDTQl .UtvHCh1sacPTtjlVvpqAJVQoTe5mmzpwXEFebXcZPY4zNCnvDxZSJt1vy.g ffkiUnykU9HzPX4uNvpfopjf.A3S+ngJTZFneXbZQlAZEbIkg3vgDyObgIVS QLqZw5cGcbRz1ydiK.gDXQwNCJrz4+Vfb2L.D78um.osICMi85hJz1EqBJ7r a2X6MGY+NOYanFS2uTjQIyxxYSjpL8g0+zoDmNUHxbdwG5RzmIL6sPUUTQco rRMKuziFqs4jkFclGze66H2LVTtQPRW+1nyoZxFKLmKd0uTa1x1AdAzqkMUI 8mutz.vfMMkUq3BphKECBB+7fdjmlxDO6mGK3okRMB5zwoxDbVZgtJM76tzv tHs6VEp8BfLtzhVEo4VtVv5fsfq2BAL9JVanqWs4zqzvUSZSVk5uJRi3B0t7 hzVGZyeAtDv+mA -----------end_max5_patcher-----------
Forums > MaxMSP