fingerlight
2018-04-24 11:35:45
I'm done developing my MT project, at least, all features work. I still have a problem which I've mentioned before. I thought I would leave it for last since it has been so hard to pin down. It makes my project unusable for performance, which is pretty devastating to me since I've spent quite a few years getting it to this point.
I'm wondering if there is any way for me to "trap" the offending inputs as they are received and execute code in MT. The log window (if it is turned on) shows the message that it's truncated, so I can't tell from that, what has happened. Maybe some software is available to help with that?
In any case, I would be glad to send you my code so that you could look it over. There are more than 400 presets and over 60,000 lines of code and comments when exported as text, but I've disabled all presets that aren't involved in the problem, leaving less than 20 presets in order to make inspecting the code easier.
I can describe the problem generally this way: It's intermittent, in the sense that I can do the same things successfully with my controllers many times over, but then out of the blue, I get the error. 15 message The offending controller then neither sends or receives any MIDI to/from MT, but turning it off and then on restores the connection (with the MT message "MIDI Buffer OK".
Until I do this, I'm not even able to exit MT completely. If I exit, and try to launch MT again, I get messages telling me that the ports for my controllers are already being used. I notice then that though MT doesn't appear in the Apps section of Task Manager, it does appear in the Background processes section and I can't end the task. I have to restart my computer. I can usually force the error by grabbing 8 or 9 faders on my AKAI APC Mini and scrubbing them back and forth as rapidly as I can. Sometimes the error appears fairly quickly - after maybe 2 or 3 repetitions, but sometimes I can keep scrubbing for 10, 15 or more repetitions before I get the error. This is especially true if I've deactivated some of my presets. I've tried to isolate the problem by disabling presets that I suspect could be causing the problem, but even with only quite essential presets still active, I'm still having the error.
I think the problem may be that for most of the inputs that are receiving faders, any one message is being received by many presets and many translators within them. That is because fader movement controls several aspects of my program.
At any rate, I'm stumped and frustrated that I can't really use my program to play for people. any help would be much appreciated.
Thanks,
Gabriel