Skip to main content
4 of 9
added 2143 characters in body
Niall
  • 21
  • 2

Garbled Lilypond Output

I divided the notes of my score into 6 variables respectively called, partOne, partTwo, parThree, partFour, partFive and partSix. Each variable contains 20 measures of music. Then I call the variables in the score block. Whenever I call just one of the variables it works fine. If I call more than one the output is completely messed up. Any ideas what’s going on? Thank you

Edit: responding to a few kind suggestions here.

1 I used the word “part” as it’s used in books and movies, not how it’s used in music, so I probably should have said “sections.” The point is they’re successive and not simultaneous.

  1. Here is the code that creates the first of the 6 variables I mentioned, each of the 6 (the finished piece will have 12) has an identical number of notes:

partOne = {

c16^[ d] e_[ g] c,^[ d^] e_[ b'] c,^[ d] e_[ c'] 
c,^[ d] g_[ e] c^[ d] g_[ b] c,^[ d] g_[ c]
c,^[ d] b'_[ e,] c^[ d] b'_[ g] c,^[ d] b'_[ c]
c,^[ d] c'_[ e,] c^[ d] c'_[ g] c,^[ d] c'_[ b] \break
%5
c,^[ e] d_[ g] c,^[ e] d_[ b'] c,^[ e] d_[ c']
c,^[ e] g_[ d] c^[ e] g_[ b] c,^[ e] g_[ c]
c,^[ e] b'_[ d,] c^[ e] b'_[ g] c,^[ e] b'_[ c]
c,^[ e] c'_[ d,] c^[ e] c'_[ g] c,^[ e] c'_[ b] \break
%9
c,^[ g'] d_[ e] c^[ g'] d_[ b'] c,^[ g'] d_[ c']
c,^[ g'] e_[ d] c^[ g'] e_[ b'] c,^[ g'] e_[ c']
c,^[ g'] b_[ d,] c^[ g'] b_[ e,] c^[ g'] b_[ c]
c,^[ g'] b_[ d,] c^[ g'] b_[ e,] c^[ g'] b_[ c] \break
%13
c,^[ b'] d,_[ e] c^[ b'] d,_[ g] c,^[ b'] d,_[ c']
c,^[ b'] e,_[ d] c^[ b'] e,_[ g] c,^[ b'] e,_[ c']
c,^[ b'] g_[ d] c^[ b'] g_[ e] c^[ b'] g_[ c]
c,^[ b'] c_[ d,] c^[ b'] c_[ e,] c^[ b'] c_[ g] \break
%17
c,^[ c'] d,_[ e] c^[ c'] d,_[ g] c,^[ c'] d,_[ b']
c,^[ c'] e,_[ d] c^[ c'] e,_[ g] c,^[ c'] e,_[ b']
c,^[ c'] g_[ d] c^[ c'] g_[ e] c^[ c'] g_[ b]
c,^[ c'] b_[ d,] c^[ c'] b_[ e,] c^[ c'] b_[ g] \break
}
  1. Here is the call in the score block:

\score {

\relative c' {
\time 3/4
\partOne

% \partTwo % \partThree % \partFour % \partFive % \partSix }

  1. I’m using hacklily.org web editor on an iPad because that’s all I have (no laptop or desktop).

  2. I have taken 2 screenshots for illustration but don’t know how to upload them here, or if I can. Sorry.

Finally. I worked with the formatting a bit on this edit and this is the best I can get it. One or two lines escaped the website’s automatic code block formatting. Sorry for any difficulty or confusion reading the code blocks.

Thanks again community!

Niall
  • 21
  • 2