Chord Generator Maxpatch as a MX4L device

Vikram Shrivastava's icon

Hello All,

I found a great maxpatch that works really well as a standalone patch.

However, I want to convert this into a MX4L device or .amxd. I was able to open it in MX4L and edit it. For now I can send MIDI messages to the patch, but I am being unable to take the generated notes and get them back out to the midiout object.

Any pointers on how to format the note information from the kslider object into the raw midi data format will be great. Eventually I want to use this with my Launchpad Pro. I can see the kslider show the chord notes correctly. However, I need to route that out of the MX4L device and onforward to a VST.

Thanks,

Vikram

Ernest's icon

Hi Vikram,

I'm sure you will get better replies to this, as I am not an expert in live devices. But first off, from my own limited experience, you don't need to convert it into raw midi data format. You can simply use the noteout object. Also it seems it's undocumented you can put a [pitch vel] list into the left inlet, instead of separate ints for the pitch into left, and velocity into middle inlet. The ranges for both are 0-127, and as usual, note-off events are simply note-on events with a velocity of zero. I don't think you need to do anything with the port, but I stand to be corrected on that.

Ernest's icon

Well Im sorry no one else offered to help.