everything was built in max :)
The Modal Object Library is a collection of objects to control and define modality in Max/MSP.
This tool generates chords and you are able to record the midi sequence with the recorder 1.