bug-lilypond
[Top][All Lists]
Advanced

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

Issue 1110 in lilypond: Wrong octave of repetition chord with \relative


From: lilypond
Subject: Issue 1110 in lilypond: Wrong octave of repetition chord with \relative and #{ #} syntax
Date: Sat, 05 Jun 2010 10:02:54 +0000

Status: Accepted
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1110 by nicolas.sceaux: Wrong octave of repetition chord with \relative and #{ #} syntax
http://code.google.com/p/lilypond/issues/detail?id=1110

When calling a music function, which uses #{ #} syntax, on a relative music including a `q' repetition
chord, the resulting music may be wrongly octaviated:

\version "2.13.22"

identityA =
#(define-music-function (parser location music) (ly:music?)
   music)

identityB =
#(define-music-function (parser location music) (ly:music?)
   #{ $music #})

%% reference
%% ==> <c' e' g'>4 ~ <c' e' g'>
\relative c' { <c e g>4 ~ q }

%% music function, without #{ #} syntax
%% ==> <c' e' g'>4 ~ <c' e' g'>
\relative c' \identityA { <c e g>4 ~ q }

%% music function, with #{ #} syntax
%% ==> <c' e' g'>4 <c e g>
\relative c' \identityB { <c e g>4 ~ q }



A workaround is either to repeat the \relative statement on the music function argument
   \identityB \relative c' { <c e g>4 ~ q }
or to call music functions which do not use #{ #} syntax.





reply via email to

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