Open file via midi crashes Max

May 7, 2011 at 11:43pm

Open file via midi crashes Max

Hi there,

I am having troubles trying to open and close patchers from external midi controllers.
I am using the message ; max openfile and ; max closefile. They work fine when I click on them with the mouse, but when a bang arrives from a midi controller, Max crashes.
I have tried a FCB 1010 and a Launchpad. I have also tried to add a delay 1000 to the bang in case, but no result.

Here a sample of the patch I am using :

– Pasted Max Patch, click to expand. –

Should I use pcontrol instead ?
Thanks a lot for your help.

May 8, 2011 at 12:36am

Have you tried throwing a deferlow or two in? The idea is to get the control of file IO stuff off of the scheduler.

May 8, 2011 at 4:41pm

Thanks a lot Chris !
deferlow solved my problem.
Not sure about what it does exactly but it makes my patch work.
This is great.


You must be logged in to reply to this topic.