bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

\parallelMusic can't deal with stored music anymore


From: Thomas Morley
Subject: \parallelMusic can't deal with stored music anymore
Date: Sat, 29 Mar 2014 12:34:41 +0100

Hi,

seems \parallelMusic can't deal anymore with music stored in a
variable or created by a function.

Minimal example:

\version "2.19.3"

m = { c'1 | e' | }

\parallelMusic #'(A B) {
  \m %| %% doesn't work without additional bar-check
}

\new Staff << \A \\ \B >>

Same with 2.18.0, used to work with 2.16.2
Workaround: uncomment the additional bar-check

Some thoughts/analysis:
#(display-lily-music music parser)
returns:
{ c'1 | e' | }

inserting the same into the definition of parallelMusic from
music-functions-init.ly
 returns:
{ { c'1 | e' | } }
for 2.16. and 2.19.3
2.19.3 can't deal with the additional baracket-level, though.

@David K
Also, this affects your function from
http://chemnitzer.linux-tage.de/2012/vortraege/900

\version "2.19.3"

%% little change to ease displaying
ph = #(define-music-function (parser location p1 p2 p3 p4 p5)
        (ly:pitch? ly:pitch? ly:pitch? ly:pitch? ly:pitch?)
        (let ((music
                #{
                  \repeat unfold 2 {$p1 2 } |
                  \repeat unfold 2 {r16 $p2 8. ~ $p2 4 } |
                  \repeat unfold 2 {r8 $p3 16 $p4 $p5 $p3 $p4 $p5 } |

                #}))
      ;(display-lily-music music parser)
      music))

\parallelMusic #'(low middle high) {
  \ph c' e' g' c'' e'' %| %% doesn't work without additional bar-check
}

\new ChoirStaff <<
  \new Staff << \high \\ \middle >>
  \new Staff { \clef bass  \low } >>


Cheers,
  Harm



reply via email to

[Prev in Thread] Current Thread [Next in Thread]