Forums > Max For Live

MIDI in from hardware in Max for Live?

June 25, 2012 | 7:06 pm

Hi all –

I’m trying to write a patch for my new Midifighter 3D that will let me trigger combos.

Im running into the most basic of problems though –

Outside of Max for Live (in Max 5) I can parse midi from the Midifighter fine.

Inside M4L I cant get midi from any device – any device I try gives an ‘error opening device (MIDI HARDWARE)’ message.

Is it possible to monitor the MIDI output of a device in Max for Live, or do I have to use it in Max 5 and run the 2 programs side by side?

Thanks in advance,

JB


June 25, 2012 | 8:44 pm

not sure why you get that error, but to get midi from a device into a M4L device, the device needs to be on a MIDI Track and you need to arm recording on that track so the MIDI gets to the device.
You can also investigate using Control Scripts and the M4L API Object model, but I’m not sure there’s a control script for that controller.
Peter


June 26, 2012 | 10:02 am

Thanks Peter –

Its a brand new model of controller, so I doubt there would be a control script.

Also, even on a MIDI channel I get the same error – midi mme error 7 opening midi inputs and outputs. I think the MIDI will come through the channel OK, but im looking to parse the midi globally from the hardware (so to constantly monitor, by hardware device rather than ableton channel)


June 26, 2012 | 9:34 pm

I think you’re a little confused here; you cannot directly access other midi ports besides the midiin object which M4L provides in Midi effects. That’s because Live is in charge of the way midi in & output is handled, not M4L.

Also; you don’t need controller scripts in Live perse to get the controller to work. Controller scripts are basically templates which tell Live what to do based on specific midi input. But that doesn’t mean that you can’t manually midi map everything yourself (for example).

As such I’d suggest to start by double checking that Live is receiving the right midi data and then use midiin in the M4L patch to process it.


June 28, 2012 | 2:35 am

That’s a good point – you can use MIDI learn to your live.dials etc. Sometimes i forget about the simple things.
However, you can setup a basic control script using this web app:
http://modern.dj/app/
It could be a good black hole for you to fall into!


June 28, 2012 | 7:01 am

I made a patch for a logitech extreme 3D joystick for a friend and chose to make a standalone version via IAC so that some controls (like a scale chooser for example) could be mapped to a controller. I can post the patch if you want to. I started with a MFL version before hitting this mapping problem and don’t remember getting the ‘error opening device (MIDI HARDWARE)’ message using HID…


Viewing 6 posts - 1 through 6 (of 6 total)