Hello everybody,

I’ve built some music functions to handle a large, multi-section piece, and ran into a strange problem, which I could boil down to the attached example. If the concat-part function is called on the \key expression multiple times in parallel, the \key expressions are accumulated in a way I’ve never seen before. Why would that be? The original piece is in five parts, and having A sharp major with ten sharps pop up on a score by di Lasso was somewhat funny :-)

Best, Simon
\version "2.19.39"

global.1 = { \key c \major }

concat-part =
#(define-music-function (al) (list?)
   (make-sequential-music (map cdr al)))
buildPart =
#(define-music-function () ()
   #{
     \new Voice <<
       \concat-part \global
       { c'1 }
     >>
   #})

\transpose c d <<
  \buildPart
  \buildPart
>>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to