lilypond-user
[Top][All Lists]
Advanced

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

Help with positioning coda glyph


From: Tim McNamara
Subject: Help with positioning coda glyph
Date: Wed, 16 Sep 2009 08:45:53 -0500

I am having problems getting LilyPond to properly position coda glyphs. I've included the code to see if others reproduce it. The first coda glyph should be at the end of bar 28 but LilyPond insists on putting it at the end of bar 29. The /break command seems to be involved (is this a bug, BTW?). Also, LilyPond won't put the coda glyph at the beginning of bar 31. At least not using the code provided in the documentation.


\version "2.12.2"

#(ly:set-option 'delete-intermediate-files #t)

\paper {
    indent = 0.0
    ragged-last = ##f

}

\header {
  title = "Recycling Day"
  subtitle = "Concert Pitch"
  composer = "McNamara"
  meter = "Up-tempo Swing or Bebop"
  copyright = "Cunamara Music"
}

harmonies = \chordmode {

% 1
c1:6
b1:7
bes1:6
a1:7

% 5
a1:m7
d1:7
g1:maj7
g1:maj7

% 9
g1:m7
c1:7
f1:maj7
a1:7

% 13
d1:m7
g1:7
c1:6
b1:7

% 17
bes1:6
a1:7
a1:m7
d1:7

% 21
g1:maj7
g1:maj7
g1:m7
c1:7

% 25
f1:maj7
a1:7
d1:m7
g1:7

% 29
c1:maj7
d2:m7 g2:7
c1:6
b1:7

% 33
bes1:6
a1:7
aes1:6
g1:7

% 37
c1:6

}

melody = \relative c' {
\override Staff.TimeSignature #'style = #'()
\time 4/4
\clef treble
\key c \major

\bar "|:"

% 1
g'2 \mark \markup { \musicglyph #"scripts.segno" } \times 2/3 {g4 a4 g4 }
ees1
f2 \times 2/3 { f4 g4 f4 }
cis1 \break

% 5
e2 \times 2/3 { e4 f4 e4 }
d2. c8 b8
g'1~
g1 \break

% 9
\times 2/3 { a4 bes4 a4 } bes4 a4
c8 c8 c2 r4
\times 2/3 { a4 bes4 a4 } bes4 a4
cis,2. \times 2/3 { e8 f8 g8 } \break

% 13
\times 2/3 {a4 g4 a4 } a4 g4
c2. e,4
g2 \times 2/3  {g4 a4 g4 }
ees1 \break

% 17
f2 \times 2/3 { f4 g4 f4 }
cis1
e2 \times 2/3 { e4 f4 e4 }
d2. c8 b8 \break

% 21
g'1~
g1
\times 2/3 { a4 bes4 a4 } bes4 a4
c8 c8 c2 r4 \break

% 25
\times 2/3 { a4 bes4 a4 } bes4 a4
cis,2. \times 2/3 { e8 f8 g8 }
\times 2/3 {a4 g4 a4 } a4 g4
c2. e,4\mark \markup { \musicglyph #"scripts.coda" }   \break

% 29
c1
r1_\markup{\italic"Last Time D.C. al coda"} \bar ":|"
\times 2/3 { g'4 \mark \markup { \musicglyph #"scripts.coda" } a4 g4 } e2
\times 2/3 {fis4 g4 fis4 } dis2 \break

% 33
\times 2/3 { f4 g4 f4 } d2
\times 2/3 { e4 f4 e4 } cis2
\times 2/3 { ees4 f4 ees4 } c2
\times 2/3 { d4 e4 d4 } b4 g'8 f8

% 37
 e8 d8 c'4 r2

}

\score {
  <<

    \new ChordNames {
      \set chordChanges = ##t
      \harmonies
    }
    \new Staff \melody
  >>

}





reply via email to

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