[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make-non-relative-music & partcombine
From: |
David Kastrup |
Subject: |
Re: make-non-relative-music & partcombine |
Date: |
Tue, 30 Jun 2015 10:37:44 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Dan Eble <address@hidden> writes:
> I don’t see any differences in the regression tests when I remove
> make-non-relative-music from this code. If it’s really necessary, can anyone
> suggest or provide a new regression test that covers it? I’d be happy to see
> it through the review process. Thanks.
>
> (define-public (make-part-combine-music music-list direction chord-range)
> (let* ((m (make-music 'PartCombineMusic))
> (m1 (make-non-relative-music (context-spec-music (first music-list)
> 'Voice "one")))
> (m2 (make-non-relative-music (context-spec-music (second
> music-list) 'Voice "two")))
> (listener (ly:parser-lookup 'partCombineListener))
> (evs2 (recording-group-emulate m2 listener))
> (evs1 (recording-group-emulate m1 listener)))
>
> (set! (ly:music-property m 'elements) (list m1 m2))
It would obviously be relevant for
\relative {
\partcombine { ... } { ... }
}
where the ... itself does not have a \relative inside. We might not
have something like that in the regtests but I could well imagine that
stuff gets erratic in that case.
--
David Kastrup