Max has dedicated objects for parsing each particular type of MIDI channel message coming into the computer, such as notes, pitchbends, controllers, etc., and it has corresponding output objects for formatting and transmitting MIDI messages to be sent out of Max.
This patch is an example of a sampling synthesizer in Max. The kslider may be used to control the patch if a MIDI controller is not available. The gtrvoice patch used inside of the patcher guitar6strings may be found in the example Managing samples in Max. The guitar samples that are loaded into the buffer subpatch may be found in the file called guitarstrings.zip.
In this example, output of the MIDI pitch bend values from bendin are sent to the object jit.brcosa to adjust the brightness of the image.
This patch shows how to calculate pitch bend transposition.
This patch shows different ways to receive and generate numerical values using MaxMSP.
This patch shows objects that are useful when working with MIDI in Max.
This example demonstrates how to make a slider object spring back to a specified value.