save/load midi file from/to ableton track by max
I would like to load a midi file to ableton live track by max. Also, I would like save all the notes from an ableton track by max to a midi file(here it is to do the function "export midi clip" by max). The reason for this is I would like to use another generative system to work on the midi file(not directly on the midi notes get from ableton live), modify the midi file, and send it back to ableton track. If it just from max the seq object is useful. But if to/from ableton live, I don't know how to convert all the notes from an ableton track to midi(the get_note function returns a format not directly useful to save to midi), and also load a midi from max then dump all the notes to an ableton track.
You probably have to create a converter: get_notes <--> seq or detonate.