bug-lilypond
[Top][All Lists]
Advanced

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

Re: \parallelMusic can't deal with stored music anymore


From: David Kastrup
Subject: Re: \parallelMusic can't deal with stored music anymore
Date: Sat, 29 Mar 2014 12:53:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

Thomas Morley <address@hidden> writes:

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

Care to explain about
<URL:http://lilypond.org/doc/v2.19/input/regression/collated-files.html#make-relative.ly>
then?

> 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 } >>

Somewhat disingenuously, the last significant change to the
parallelMusic function is

commit 52c5b014116cc800bf0f1e787470fb7aa77f8f1a
Author: David Kastrup <address@hidden>
Date:   Thu Jan 17 17:15:28 2013 +0100

    Let \parallelMusic deal with barchecks at arbitrary depth
    
    This lets \parallelMusic react to bar checks at arbitrary depth to
    make it more useful in connection with music functions.

This looks almost like barchecks _do_ work at arbitrary depth once
LilyPond actually tries, but that some upfront check will keep LilyPond
from making an attempt.

-- 
David Kastrup



reply via email to

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