>> One thing occurred to me. If the original \score did not have a >> \midi block, would it be possible to ask lilypond to produce midi >> output without modifying the input file? > > No, this is not currently possible, although it would be a nice > addition.
Stefano, please file an issue for this in our tracker! Werner