MAX/MSP + Oxygen 25 – Communication problem
I’m trying to setup my M-Audio Oxygen 25 midi keyboard to work with Max as a cotroller. I’m using the midiin with midiparse to retreive the control information in order to map them with what I need to control.
The problem is that the keyboard responds very impredictibly. Some times gives information by pressing a key or turning a knob, other it doesn’t respond or it responds with inconsistent messages (like changing between two cotroller numbers when using the same knob).
have you tried using just [notein] and [ctlin]?
[midiin] and [midiparse] always seems to me to be a little unwieldy or heavy-handed – unless one needs more than just notes and controllers.
[midiin] and [midiparse] work wonderfully well. I’ve been building a complete replacement for MainStage and those objects are core. You generally need aftertouch and pitchbend as well.
If the keyboard seems to be misbehaving, I’d suggest running a MIDI monitor to make sure that it is producing what you expect.
I think the OP needs to post a patch first, before we discuss pitchbend and aftertouch, as these issue were not mentioned. The 1st rule of trouble-shooting is: start simple – which is why I suggested [notein] and [ctlin].
It is precisely because one should ‘start simple’ that I suggested running a MIDI monitor.
If the keyboard seems to be "behaving unpredictably", I think it would be better to first eliminate the keyboard and connection into the computer as a possible problem source, something that can be done trivially with a MIDI monitor such as the snoize.com free app (assuming it’s a Mac, I’m sure there are similar tools for Windows). Then you KNOW the problem is with the Max patcher.
Of course a patch will help — it may turn out to be something as trivial as not unpacking the data coming out of midiparse but I’d still want to eliminate external issues first.
I have used the Oxygen 25 the silver one and the black one that only has USB (no midiport) and both work fine with midiin and midiparse so I think it is either your patch, your connection, your MIDI settings or you keyboard but it does work.
I had a problem with the black one where you can’t send MIDI out to it as it does not have a MIDI out. So it was causing some kind of MIDI feedback in M4L – I disabled sending MIDI out to the device in Live’s prefs and it was fine – it might be that I have seen it a few times with people.
I’ve got the newer (charcoal gray) Oxygen 25 and have the same problem. I have found that unplugging and replugging the USB cable to the keyboard seems to do the trick. There seems to be some issue with the O25 that the computer "forgets" that it is connected if a MIDI program isn’t running.
Oh! Thanx for the immediate responses. So, I first did some MIDI monitoring to check my Oxygen’s reactions and it performed perfectly.
Then a strange thing happened. I opened MAX and tried the notein object. It started again responding in a strange manner, it was responding only sometimes I was pushing a key, and other times it was giving the following message (in Midi Monitor):
22:45:54.589 From Oxygen 25 Invalid 3 bytes
I’m sure now, there is something wrong caused by MAX and in particular with the midi family objects.
I tried throwing away the MAX folder and installing the latest version (5.1.9).
Still no result…
Just wondering if you ever found a resolution to this. I’ve created a little demonstration that shows the problem pretty clearly. I’d be curious to know if others using the Oxygen 25 have the same problem. I have the newer (charcoal gray) Oxygen 25 and unless I unplug and replug the USB cable (sometimes 2-3 times), the O25 doesn’t transmit properly. I’ve tried it through a powered USB hub, and directly into my MacBook Pro (OS 10.6.8) with the same result.
For M-Audio Oxygen 25 users:
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 1013.3oc0Y10aihCEF95jeEGw0YhvFLjrZzHs6L2NZqzr2sZ0JB315Y.6Hvr McGM+2WrMjP6PJlVh0lJkP8GAd8iO93yw78kK71INPq7feA9SXwhuubwBcUp JVzVdgWQxgz7jJc27REEETtzakoMI8fTWevZ3l7jGAtPRqVAEh+gBO8uO.oB trTjmSKqfDdFrmISuG1Qa9WAGdTTWB+9gGuixALYM7G2SAdcwNUuYbP1TT9f .JEOTAU2KpyyfhjlaPmTxYbZpnlq0SXak6U8fwu6uKooRy3DGs1eEf80WPwA pKQ309ve09atsQlUr+kp5Npog1pazBimSkZNfNUonV1UaWWYYZlH1802Ef85 ca4IE5aq2uVxRx8TM7ikKUes5Mx+2C30vWn4MCySPz67THpc76GquP7MP4hg AeWgAzZ32R320XuvpfaYkUxWfBjX0.CHXm.A7l4EBb5CM21ehA4hjrcMHnqA injOtmZFzd5FONDGBK9jNRzr1XNoBZ.pD4DpTy2mj9MvG7OKWXJCJykWjNgw 87fDscFwCd.7DLu3ofVUkbG8m3y4wxKBi.jw7HT6G0rBBsYhv.assRnafA5U BiHrKgA4JagSXLwkKbvtwVIJ70YrDhHNzXAE++Z2HXRrKW436FXD+J8if8co oAF4D+HErL19jxJ54YxpSe54RY0D1Y1DTqIjEj+bF4R7.qohbiYTu7ldc1Ss wyQL45Dcg8zLyaKU2Dne8Xa8n+XAB5x2wdSC0ypMC4ickIoEs048o2Q7UO8U pu9nYl5ljrApBtQTJA7wVjB3yIG97WtAPCT2o9cJctiBvB60fAlYBb1BcF+V waxVMd6oDyl7JX6sUwNjHunMrMt0BzjIDeYyGCgtNhaxDE4EOtI+qhLNbCLh uJRE0MrXyUQ7ztgEQWGgS6FX3lrxUmZ9HaoXSF4OIf4ty05RkQtaB+HUlaGX rfOAgn97IZF4y.wm4lfQTuglYCP3fHGBHKiLQ+v0uOnm8pszC.U8OkZUh5xz twe2QRCmFCYzJIimHYBduNoxyoWmtmkkQ48O4+ln91KZ.3wrGFbNzZMEXglT GIHfrWSDRzZRyLVvF8zmO9Xo4PsnwTa3zTq5cVcRsAMNxmK0hsQs9SjsAg8T Kda7rp1QsDPSSsgadhZCIykZUGRBPFasT7DsDv5ixnytkLupEOFaCl1JexF8 5JzVS7Gl0b5RygZG0R.OQ0ZnYqZasKlE0hrwqZjS8p9Lm3mQSX2pIa7c9LXd w0jM9bPANUS1rgHZhNseqtlsXlaht5BhB0QXsE2aKZcoYPqiguMNkdHKnWzz TDlr0PO+daBqKMCZcL5QdCzqovOV9eHUSZ9N -----------end_max5_patcher-----------
I also just tried using the MIDItester from the "Extras" menu. If I just launch the MIDItester without actually selecting an input device, I get all the appropriate messages from my Oxygen 25. However, if I selecte the Oxygen 25 from the input device menu, it stops working.
I’ve read several forums about a problem where the Oxygen 25 stops working if it receives MIDI messages from the software, but I’m not sending any data to the O25. I’ve also tried disabling the MIDI output in the MIDI setup window, but that doesn’t seem to make a difference.
Well, the good news–at least from a Max perspective–is that it seems to be unrelated to MaxMSP. I have the same problem with all my MIDI apps and the Oxygen 25. There seems to be some issue where the Oxygen 25 gets discombobulated from the computer when a MIDI app is not running. The bad news is that I have a computer lab with 20 Oxygen 25s and a bunch of them are exhibiting this behavior.
Unfortunately I realized that the problem is global. Sibelius also responds arbitrarily with my Oxygen 25. Still no solution…
M-Audio officially states that they DO NOT SUPPORT THE MAC OS X 10.6.8 update with Oxygen 25 ! http://www.m-audio.com/index.php?do=support.faq&ID=66dfe96e2f3bc5af125e759f0e0c342c
Still researching on the issue…
No solution found. Enough time spend. Mac OSX is causing a bunch of problems to other programs also. Going back to Mac OSX 10.6.7.
Ok, I’m sure now the problem is the MAC os X version. I’m running 10.6.7 and everything is fine!
Forums > MaxMSP