I'm not sure that I can in MAX/MSP create music in this way:
1) entering composition rules
2) getting ONE OF CASE MIDI DATA SET
3) if effect is good for me - playing data set, exporting it to MIDI file or something like that
4) if effect is not good - getting another case.
First, program must check possibilities and after give me a data set. Is this possible in MAX?
I imagine it with piano-roll: I enter notes by writing instructions, then notes appear in piano-roll, then I listen to effect. If it is possible in MAX, I think it can be very complicated (but I maybe don't know something). It can be very simply if it would possible writing macros for example in Cubase, like VBA macros in Excel.