msk...@ansuz.sooke.bc.ca writes: > On Fri, 8 Jan 2016, Christopher R. Maden wrote: >> Generally, once you get into any kind of moderately complicated score, you >> have to concoct your score and MIDI separately, e.g.: >> >> theTune = c c c c >> theScore = \repeat volta 2 { \theTune } >> theMidi = \theTune \transpose c c' \theTune >> \score{ \theScore \layout{} } >> \score{ \theMidi \midi{} } > > This is pretty much exactly what I do for a similar instruction in an > original ragtime piece. > > It's a shame that LilyPond's requirement to completely evaluate music > expressions immediately, and therefore once and for all, forces this kind > of thing on us.
Music expressions are "evaluated" by iterators at the time they are interpreted. See, for example, uses of elements-callback. The repeat iterators in particular would warrant some more flexible expansions. There is no principle against that. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user