[Bug] mtr - bindto on patch startup causes problems

Martin Beck's icon

If I load the attached patch the [mtr] seems to have correct binding to the sliders s1 s2 s3, but I am unable to record anything.
"bindto" is called via [loadbang].
If you remove the [loadbang] save and load the patch again and perform binding by hand (click the message box with the target scripting names) after patch has loaded it works as expected.

Max 8.1.8 Mac MacOS Catalina

mtr_loadmess_problems.maxpat
Max Patch
1) Save patch. 2) Close patch. 3) Load patch and try to record a slider movement.

Edit: There seem to be some more problems with other patches containing autopattr and pattrstorage , where even the workaround doesn't help.

Jean-Francois Charles's icon

Indeed, there is a bug here. A delay after the loadbang can serve as a quick fix, but the terrible thing is that with your original patch, things not only don't bind at loadbang, but also don't bind at all even if you give again the bindto messages later!

Martin Beck's icon

don't bind at all even if you give again the bindto messages later!

Yes, exactly. The only thing to get it working in this state is create a new mtr or change the track count.