This is an example of using the Max for Live JavaScript API to modify MIDI clips. It provides "humanize" features to randomize the start time and velocity of notes. A step-by-step tutorial at http://compusition.com/writings/js-live-api explains how this project was built.
SquarewaveMultimedia/js-live-api-humanize-midi-clips
An example of using the Max for Live JavaScript API to modify MIDI clips.
JavaScript