ddiakopoulos / hiduino

:musical_keyboard: Native USB-MIDI on the Arduino
http://www.dimitridiakopoulos.com/hiduino
645 stars 110 forks source link

Memory Error when Running Hiduino in Pro Tools #16

Closed ibanman555 closed 10 years ago

ibanman555 commented 10 years ago

I have my MEGA2560 configured for Hiduino, and was able to compile it with it's own name. The Hiduino bootloaded Arduino shows up under Devices, and is able to be selected in Pro Tools, and any other software I decide to connect it to.

Right now, Hiduino is not being routed to any software. I can open MIDI-OX or Bome MIDI Translator and route Hiduino in those programs successfully. However, if Pro Tools is open first, I cannot connect Hiduino to MIDI-OX or Bome and receive this error;

"Hiduino: There is not enough memory available for this task. Quit one or more applications to increase available memory, and then try again."

Also, If i connect Hiduino in MIDI-OX or Bome before opening Pro Tools, Pro Tools will not load and crashes (because there isn't enough memory to load??).

I have 64gb of memory in the CPU, more than enough. Pro Tools is using 558,144k of memory. Kind of stumped why this is happening.

ibanman555 commented 10 years ago

Update: I boot loaded the compiled firmware from this site again to make sure I didn't screw something up customizing the name. Same results.

ddiakopoulos commented 10 years ago

Hi there -- unfortunately I'm of limited use on this matter since I don't have ProTools. This is the first time I've ever heard of this problem. A cursory Google search revealed that this problem often occurs when multiple applications try to connect to a MIDI device... maybe there is some random software app constantly trying to connect? Someone also mentioned that MIDI-Ox has some buffer size settings that are configurable...

ibanman555 commented 10 years ago

Thanks for the response. I have done some further investigation and found that my MAudio Keystation 49e causes the same problem to occur, only when open in two applications at the same time.

ibanman555 commented 10 years ago

Upon further research, it appears that depending on the USB Driver, it possible for multiple applications to access Hiduino, as written here:

http://www.thesycon.de/eng/usb_audiodriver.shtml

Is this an option with Hiduino?

ibanman555 commented 10 years ago

Install this driver in place of the generic sound driver installed when Hiduino first initializes onto your PC (not Mac tested) if you run into this error.

http://www.blindskunk.com/Generic-driver.zip