On 2023-12-12 2:01 am, Jean Abou Samra wrote:
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.
Would this not work?
%%%%
#(define (add-midi-to-score score)
#{ \score { $score \midi {} } #})
toplevel-score-handler =
#(lambda (score)
(collect-scores-for-book (add-midi-to-score score)))
%%%%
-- Aaron Hill
