The patch sends and receives note and pitch bend messages, transforming the MIDI notes and pitch bend variations into synthesized frequencies. There is also an ASDR envelope controlled by four sliders.
To run it, have all files in one folder, and open midiToMax_synth.maxpat
Video demo:
This project in the first step into building this MIDI controller, and you can read more about it in my blog.