Hi Charlotte,

As Kevin mentioned, there are some typos in your code and many too many
commands.
Please find herewith the way I'd code your score (which doesn't mean that
it's the best way) ; hope you'll find some inspiration in order to avoid
typos and simplified your coding.

Cheers,
Pierre

2015-02-14 22:14 GMT+01:00 Kevin Barry <barr...@gmail.com>:

> Hi Charlotte,
>
> You are missing a square bracket to end a beam in the sixth bar of your
> example. Instead of
>
> d'16 |  <f a c' e'>1 |
>
> you should have
>
> d'16] |  <f a c' e'>1 |
>
> I don't know how you're generating that code (all of the stem up and stem
> down stuff is unnecessary), but if you read the output from LilyPond it
> usually points you in the right direction. For example, I loaded your code
> with Frescobaldi and when l ran LilyPond it highlighted where the problem
> was in the code.
>
> hth,
> Kevin
>
>
> On Sat, Feb 14, 2015 at 8:21 PM, Charlotte Godley <
> charlotte.god...@hotmail.co.uk> wrote:
>
>> Hi there,
>>
>> Relative newbie to lilypond. Have a problem in that I’m generating some
>> lilypond files from program objects, and for some reason lilypond doesn’t
>> appear to be line breaking a couple of my larger test cases, like this one
>> - http://i57.tinypic.com/x6gab6.png
>> I’ve tried this example removing the bars before bar 6 and it broke into
>> systems fine, I’ve also tried a few of the hacks and fixes people have put
>> on the internet for forcing lilypond to page break (the objects have
>> awareness of where they should line and page break), but none of them seem
>> to affect bars 6-26.
>>
>> Additionally, for some reason the stems seem to be disappearing on a few
>> of the notes in the treble clef? Again, this problem went away when I
>> manually removed bars 1-6.
>>
>> Any suggestion on how to fix this? Compressed lilypond code attached.
>> Cheers,
>> Charlotte
>>
>>
>>
>> _______________________________________________
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
>
> _______________________________________________
> lilypond-user mailing list
> lilypond-user@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
>
\version "2.18.2"

\header {
  tagline = ##f % <= remove "Music engraving by LilyPond 2.18.2—www.lilypond.org"
}

\markuplist { % <= see: http://lilypond.org/doc/v2.18/Documentation/notation/text-markup-list-commands.html
  \vspace #0.5 % <= put some space here
  \abs-fontsize #24.0 "Sweet Lady"
  \abs-fontsize #14.0 "Solo Piano"
  \vspace #0.3 % <= put some space here
  \abs-fontsize #12.0 "arr. Karim Kamar"
  \vspace #1 % <= put some space here
  %% Note that you can get the same in the \header { }, see: http://lilypond.org/doc/v2.18/Documentation/notation/custom-titles-headers-and-footers.html
}

sweetLadyRH = \transpose c c' { % <= just here to reach the octave
  \clef G 
  \key c \major  
  \time 4/4
  | % mes.1
    b8 c' e' a2~ a8
  | % mes.2
    <g' a' e''>2~ q4~ q8 c'8\noBeam
  | % mes.3
    b4 c'8 g2~ g8~
  | % mes.4
    g2~ g8 <e c'> b b~
  | % mes.5
    b8 c' b g2~ g8~
  | % mes.6
    g2~ g8[ <f, a, c>~ q16 d8~ d16]
  | % mes.7
    <f, a, c e>1
  | % mes.8
    <c g>4 <g, c f> <g, c e> <g, b, d>~
  | % mes.9
    q4 <c' e'> <c' g'>  c'~
  | % mes.10
    %\autoBeamOff % <= possibly
    c'4 <a c'>8 <b d'> <c' e'>4 <b d'>8 <a c'>~
  | % mes.11
    q4 <f a> <f a d'> <f c'>~ 
  | % mes.12
    q4 <a d'> <g d'> <a c'>~
  | % mes.13
    q4 <c' e'> <c' e' b'> <c' a'>~ 
  | % mes.14
    q4 <a c'>8 <b d'> <c' e'>4 <b d'>8 <a c'>~
  | % mes.15
    q4 <f a> <f a d'> <f a c'>
  | % mes.16
    <a c' d' g'>4 <g c' f'> <g c' e'> <g c' d'>
  | % mes.17
    <g b>4 c'8 g2~ g8~
  | % mes.18
    g4 <a c'>8 <b d'> <c' e'>4 <b d'>8 <a c'>~
  | % mes.19
    q4 <f a> <f a d'> <f c'>~
  | % mes.20
    q4 <a c' d'> <g d'> <a c'>
  | % mes.21
    <g b>4 c'8 g2~ g8~
  | % mes.22
    g4 <a c'>8 <b d'> <c' e'>4 <b d'>8 <a c'>~
  | % mes.23
    q4 <f a> <f a d'> <f c'>
  | % mes.24
    <a c' d' g'>4 <g c' f'> <g c' e'> <g c' d'>~
  | % mes.25
    q4 b8 a b a g4~ 
  | % mes.26
    g4 c8 c e c 
    s4 % <= here to complete time sig.
  % end
  \bar "|."
}

sweetLadyLH = {
  \clef F
  \key c \major  
  \time 4/4
  | % mes.1
    a8 e' a' g'2~ g'8~
  | % mes.2
    g'1 
  | % mes.3
    f8 c' f' f'2~ f'8
  | % mes.4
    c'2 <e b>
  | % mes.5
    a,8 e a b4~ b8 c'4
  | % mes.6
    e'2 <c, c>
  | % mes.7
    <d, e>1
  | % mes.8
    <e, e g>4 <d, d> <c, c> <b,, b,>
  | % mes.9
    a,8 e a b c' b e g,
  | % mes.10
    f,8 c a f c' f' g' c'
  | % mes.11
    d,8 a, f d a d' e' d
  | % mes.12
    \stemDown e,8 e g b \stemNeutral e' b g b 
  | % mes.13
    a,8 e c' a e' a' b' e'
  | % mes.14
    f,8 c a f c' f' g' c'
  | % mes.15
    d,8 a, f d a d' e' d
  | % mes.16
    e,8 e d, d c, c b, b
  | % mes.17
    a,8 e a c' e' a' g' g,
  | % mes.18
    f,8 c a f c' f' g' c'
  | % mes.19
    d,8 a, f d a d' e' d
  | % mes.20
    \stemDown e,8 e g b e' b g b
  | % mes.21
    a,8 e a b \stemUp e c' a, g,
  | % mes.22
    \stemNeutral f,8 c a f c' f' g' c'
  | % mes.23
    d,8 a, f d a d' e' d
  | % mes.24
    e,8 e d, d c, c b,, b,
  | % mes.25
    a,8 e a e b e a, e 
  | % mes.26
    f,8 c f c g c a  f,
  %end
  \bar "|."
}

\score {
  \new PianoStaff % <= my choice
  %\new StaffGroup % <= your choice
    \with { instrumentName = #"Piano " } 
    <<
      \new Staff \sweetLadyRH
      \new Staff \sweetLadyLH
    >>
  % pdf output:
  \layout {}
  % midi output:
  \midi {    
    \tempo 4 = 96 % <= specified tempo for midi
  }
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to