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: Wed, 12 Nov 2014 10:57:33 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

David Kastrup <address@hidden> writes:

> Thomas Morley <address@hidden> writes:
>>
>> seems \parallelMusic can't deal anymore with music stored in a
>> variable or created by a function.

[...]

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

It would appear that

commit a5cdbd63ae24d00e0ce9cbdc20aa692da421a516
Author: David Kastrup <address@hidden>
Date:   Wed Jul 2 11:56:27 2014 +0200

    Issue 3984: Let \parallelMusic cope with \repeat .. \alternative
    
    \parallelMusic's recursive decent only worked for comparatively simple
    cases.  It now should be able to deal with complex constructs
    gracefully.

did the trick here.  Version 2.19.10.

-- 
David Kastrup




reply via email to

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