Detecting MIDI mapping mode in Live

Takashi Matsuura's icon

Hi there,
I want my M4L device to know if the MIDI mapping mode in Live is active or not. Is it possible?
I searched for it in [live.xxx] object references and Live Object Model, Live API docs... but so far it didn't help.
Any advice would be greatly appreciated!

Ian Dicke's icon

Having the same problem here too.

11OLSEN's icon

Hi. Yes, you can detect mapping mode but afaik it's not documented anywhere and it can't distinguish between midi or key mapping.

tyler mazaika's icon

11OL532, that's a great trick! I never would've found that.

I can only see it listed when calling Object.getOwnPropertyNames( maxobj ) from JS while the M4L device is running in the Live environment (not M4L editor or standalone Max).

Takashi Matsuura's icon

Hi 110L532, what a great information!
For my purpose the indistinction between MIDI or Keyboard doesn't matter. I'll try it!

Hi IAN, thank you very much for bumping this thread!

Hi TYLER, I appreciate your additional info. I'll check that behavior too.

Takashi Matsuura's icon

I've tried [getattr learning] on my patch and it's completely working!
Thank you again, guys!

Nicolas Bazoge's icon

Hi, I would have the same question, but for the Max mapping mode.

Would there be a way to report the state of the Max MIDI mapping mode inside Max itself ?