[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Repeats and midi blocks
From: |
Johan Vromans |
Subject: |
Re: Repeats and midi blocks |
Date: |
17 Nov 2008 09:55:56 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
Graham Percival <address@hidden> writes:
> It depends on why you're listening to the piece. I *do* want to
> hear it clunking along, since I only ever listen to midi as a
> quick "proofread" [...]
Yes, though I'd say Ian has a point, too. I use the midi initially to
'proofread', but finally I generate the complete piece with repeats
unfold. Should I make some corrections, I'd like to hear it without
repeats, and so on.
This snippet allows a command line option unfold-repeats to control
this behaviour:
maybeUnfoldRepeats =
#(define-music-function (parser location music) (ly:music?)
(if (ly:get-option 'unfold-repeats)
#{ \unfoldRepeats $music #}
#{ $music #}))
\score {
\maybeUnfoldRepeats \allMusic
\midi { }
}
Using "lilypond -d unfold-repeats ..." will now generate midi with
unfolded repeats.
Now, if we could only get rid of the warning "no such internal
option: unfold-repeats"...
-- Johan