From d900a95d7953b25f32643a0e6cf5f6f0c7e74d2e Mon Sep 17 00:00:00 2001 From: tux Date: Mon, 7 Aug 2023 19:11:29 +0200 Subject: [PATCH] add inline score music to midi output --- inline_score.ly | 3 +++ standalone_output.ly | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/inline_score.ly b/inline_score.ly index 2619c8c..7671dd1 100644 --- a/inline_score.ly +++ b/inline_score.ly @@ -1,5 +1,8 @@ +INLINESCOREMUSIC = {} + inline-score = #(define-music-function (music) (ly:music?) + (set! INLINESCOREMUSIC #{ \INLINESCOREMUSIC #music #}) #{ \transposable #music #}) diff --git a/standalone_output.ly b/standalone_output.ly index 8209a9a..b6bd686 100644 --- a/standalone_output.ly +++ b/standalone_output.ly @@ -17,7 +17,7 @@ output = #(if (not noStandaloneOutput) \TEXT \score { - \unfoldRepeats \MUSIC + \unfoldRepeats { \MUSIC \INLINESCOREMUSIC } \midi { \context { \Score