Forums > Max For Live

Patcher Type

March 14, 2012 | 6:26 pm

I’m working out MIDI functionality in my M4L devices (I understand basic MIDI routing in M4L. So, no need to start from the beginning). *HOWEVER, I want to add MIDI capabilities to a preexisting ‘Max Audio Device.’

It is my understanding that I can only route MIDI into a device IF that device is either a ‘Max MIDI Effect’ OR a ‘Max Instrument.’

*What I want to know is: am I stuck copying and pasting patches into blank ‘MIDI effect’ of ‘instrument’ patchers -OR- is there a way to change this default functionality of device from within the patching environment?

Word.


March 16, 2012 | 2:42 pm

Hey natecraypo,

I’ve done some investigation and I think the clue may be in the patcher source code. You can have a look at this by opening up any M4L patch in a text editor.

A new ‘Max Instrument’ starts with the text:
ampf iiiimeta ptchá

A new ‘Max MIDI Effect’:
ampf mmmmmeta ptchè

A new ‘Max Audio Effect’:
ampf aaaameta ptchÝ

So it may just be a case of substituting this first line to get the desired patch type. I’m going to do some experimenting of my own.


March 16, 2012 | 3:03 pm

Ok, the letter at the end isn’t always constant – if I mess with it, the patch won’t open in Live.

However, simply substituting the 4 letters iiii, mmmm and aaaa seems to work, though I haven’t tested thoroughly. Give that a go and see if you hit any problems.

Oh yeah, probably safest to do this while the patch isn’t open in Live!


March 19, 2012 | 4:52 pm

interesting. i will play around with that soon-ish. thanks!


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