The English Hymnal - Wiki Music Experiment/078

From DPWiki
Jump to navigation Jump to search

Lily1 Code

Edit this section and paste your code between the tags <code><pre> and </pre></code>.

To upload a midi, go here: file-repository. You need a userid and password (see this project's main wiki page).

Then create a link in this section to that uploaded midi file.


%%%078.png
%%%Hymn 29 A Virgin Unspotted.  (11 11. 11 11. and refrain.)
%%%Rev 1.

\version "2.10.23"

\header {
  dedication = \markup { \center-align { "THE CHRISTIAN YEAR"
		\hspace #0.1 }}	
  title = "29"
  poet = \markup { \small {  \line { \sans {"A VIRGIN UNSPOTTED."} \hspace #1 \roman {"(11 11. 11 11. and refrain)"}} }}
  meter = \markup { \small { \italic {Moderately slow} \fontsize #-5 \general-align #Y #DOWN \note #"4" #1 = 96.} }
  arranger =  \markup { \small \italic "English Traditional Melody."}
  tagline =""
}
nbbar = { \bar "|" \noBreak } %%macro to generate a nobreak bar

augdots = { 
 \once \override Voice.Dots #'stencil = #ly:text-interface::print 
 \once \override Voice.Dots #'text = \markup {  \hspace #0 \raise #1 
                                                \line { \translate #(cons -0.2 0) 
                                                \override #'(baseline-skip . 1 )  
                                                   \column { 
                                                     \musicglyph #"dots.dot" 
                                                     \musicglyph #"dots.dot" } } }
 }


global = {
\time 3/4
\key g \major
\set Staff.midiInstrument = "church organ"
}

soprano = \relative d' { \partial 2
  \bar "|:" {\tiny d8}  
 {\normalsize d4} {\tiny d8 } \normalsize \nbbar g4 b4 d4 \nbbar d8 c8 b4 g8[a8] \nbbar b4 c8 b8 a4 \nbbar g2 \bar ":|" \break
	fis8[g8] \nbbar a4 e4 a8[g8] \nbbar fis8 e8 d4 d4 \nbbar g4 g8[a8] b8[g8] \bar "|" \break 
	c2 b8[a8] \nbbar g4 b4 d4 \nbbar d8[c8] b4 g8[a8] \nbbar b4 c8[b8] a4 \nbbar g2 \bar "||" \break
%%%%%%%%%%%%%%%%%%%%%%%%%%%
fis8 ^\markup { \large Refrain } %% Refrain block need SMALL CAP tweaking
%%%%%%%%%%%%%%%%%%%%%%%%%%%
[g8] \nbbar a4 e4 a8[g8] \nbbar fis8[e8] d4 d4 \nbbar g4 g8[a8] b8[g8] \bar "|" \break
	c2 b8[a8] \nbbar g4 b4 d4 \nbbar d8[c8] b4 g8[a8] \nbbar b4 c8[b8] a4 \nbbar g2 \bar "||" 
}

alto = \relative d' { \partial 2
  \bar "|:" {\tiny d8} {\normalsize d4} {\tiny d8} \normalsize \nbbar d4 g4 g4 \nbbar d4 d4 g4 \nbbar g4 g4 fis4 \nbbar g2 \bar ":|" \break
	d4 \nbbar e4 e4 e4 \nbbar d4 a4 a4 \nbbar d4 d4 f4 \bar "|" \break
	e2 fis4 \nbbar g4 g4 g4 \nbbar d4 d4 g4 \nbbar g4 g4 fis4 \nbbar g2 \bar "||" \break
%Refrain
	d4 \nbbar e4 e4 e4 \nbbar d4 a4 a4 \nbbar d4 d4 f4 \bar "|" \break
	e2  fis4 | g4 g4 g4 | d4 d4 g4 | g4 g4 fis4 | g2 \bar "||"
}

tenor = \relative d' { \clef bass \partial 2
  \bar "|:" {\tiny b8} {\normalsize b4} {\tiny b8} \normalsize \nbbar b4 d4 b4 \nbbar a4 g4 b8[c8] \nbbar d4 e8[d8] c4 \nbbar b2 \bar ":|" \break
	b4 \nbbar cis4 cis8[b8] a4 \nbbar a8[g8] fis4 fis4 \nbbar g4 g4 d'4 \bar "|" \break	c2 d8[c8] \nbbar b4 d4 b4 \nbbar a4 g4 b8[c8] \nbbar d4 e8[d8] c4 \nbbar b2 \bar "||" \break
%Refrain
	a8[b8] \nbbar cis4 cis8[b8] a4 \nbbar a8[g8] fis4 fis4 \nbbar g4 g4 d'4 \bar "|" \break
	c2 d8[c8] \nbbar b4 d4 b4 \nbbar a4 g4 b8[c8] \nbbar d4 e8[d8] c4 \nbbar b2 \bar "||"
}

bass = \relative d {\clef bass \partial 2
	\bar "|:" 
{\tiny g8_\markup { \small (\italic {Small notes for verse }\bold 6, \italic {line} \bold 2 ).} }

{\normalsize g4} {\tiny g8} \normalsize \nbbar g4 g4 g4 \nbbar fis4 g4 e4 \nbbar d4 c4 d4 \nbbar g2 \bar ":|" \break
	b,4 \nbbar a4 a8[b8] cis4 \nbbar d4 d8[e8] d8[c8] \nbbar b4 b4 g4 \bar "|" \break
	a2 d4 \nbbar g,4 g'4 g4 \nbbar fis4 g4 e4 \nbbar d4 c4 d4 \nbbar g2 \bar "||" \break 
%Refrain
	d4 \nbbar a4 a8[b8] cis4 \nbbar d4 d8[e8] d8[c8] \nbbar b4 b4 g4 \bar "|" \break
	a2_\markup { [ \italic {In one or more verses the first part of this tune may be sung as a solo} ] }
d4 \nbbar g,4 g'4 g4 \nbbar fis4 g4 e4 \nbbar d4 c4 d4 \nbbar g2 \bar "||"
}

\score{
\new ChoirStaff	
 <<

	\context Staff = upper << 
	\context Voice = sopranos { \voiceOne \global \soprano }
	\context Voice = altos    { \voiceTwo \global \alto }
	                      >>
        
	\context Staff = lower <<
	\context Voice = tenors { \voiceOne \global \tenor }
	\context Voice = basses { \voiceTwo \global \bass }
			        >> 
			      

 >>
\layout {
		indent=0
		\context { \Score timing = ##f }
		\context { \Score \remove "Bar_number_engraver" }
		\context { \Staff \remove "Time_signature_engraver" }
		\context { \Score \remove "Mark_engraver"  }
                \context { \Staff \consists "Mark_engraver"  }
	}
	
\midi { 
   \context {
       \Score 
       tempoWholesPerMinute = #(ly:make-moment 96 4)
            }
       }
	
} %%score bracket

Lily2 Code

Edit this section and paste your code between the tags <code><pre> and </pre></code>.

To upload the output PDF and midi files, go here: file-repository. You need a userid and password (see this project's main wiki page).

Then create a link in the Lily3 section to those files

%%%078.png
%%%Hymn 29 A Virgin Unspotted.  (11 11. 11 11. and refrain.)
%%%Rev 3.

\version "2.10"

\header {
  dedication = \markup { \center-align { "THE CHRISTIAN YEAR - CHRISTMAS"
		\hspace #0.1 }}	
  title = "29"
  poet = \markup { \small {  \line { \sans {"A VIRGIN UNSPOTTED."} \hspace #1 \roman {"(11 11. 11 11. and refrain.)"}} }}
  meter = \markup { \small { \italic {Moderately slow} \fontsize #-5 \general-align #Y #DOWN \note #"4" #1 = 96.} }
  arranger =  \markup { \small \italic "English Traditional Carol."}
  tagline =""
}


%%%%%%%%%%%%%%%%%%%%%%%%macros

nbbar = { \bar "|" \noBreak } %%macro to generate a nobreak bar
	      
%%prints a repeat sign glyph comprising 4 dots and two thin bars
fdendrepeat = {\once \override Staff.BarLine #'stencil = #ly:text-interface::print 
	\once \override Staff.BarLine #'text = \markup  {  \line { \raise #1.4 \override #'(baseline-skip . 1.0)  \column { \with-color #black {  \fontsize #2 . \fontsize #2 . \fontsize #2 . \fontsize #2 .} }
	                                                  \hspace #-1 \filled-box #'(0 . 0.15) #'(-2 . 2) #0
							  \hspace #-0.9 \filled-box #'(0 . 0.15) #'(-2 . 2) #0
	
	} }	
        \bar "||"} 

%%prints a repeat sign glyph comprising 4 dots. Used only to begin a repeat at the start of a piece where \bar ":" does not work	
fdstartrepeat =  {\once \override Staff.BarLine #'stencil = #ly:text-interface::print 
	          \once \override Staff.BarLine #'text = \markup  { \line { \hspace #0 \override #'(baseline-skip . 1.0) 
	                                                 \raise #1.4 \column { \with-color #black { 
							                \fontsize #2 . \fontsize #2 . \fontsize #2 . \fontsize #2 .} }
	          } }	
                 \bar "|:"}

%%
movenote = #(define-music-function (parser location vector) (number?)
     #{
	     \once \override NoteColumn #'force-hshift = #$vector
     #})
		 		 
%%%%%%%%%%%%%%%%%%%%%%%%%%end of macro definitions


global = {
\time 3/4
\key g \major
\set Staff.midiInstrument = "church organ"
}

soprano = \relative c' { \partial 4 \autoBeamOff
  \fdstartrepeat << { \movenote #0.5 d4 } 
      	\new Voice = alt { \voiceThree \autoBeamOff \movenote #-1
      	\set fontSize = #-3 \override Stem #'length = #5 d8 d8 } >>   \nbbar 
      	g4 b4 d4 \nbbar d8[ c8] b4 g8[a8] \nbbar b4 c8[ b8] a4 \nbbar g2 \fdendrepeat \break
  fis8[g8] \nbbar a4 e4 a8[g8] \nbbar fis8[ e8] d4 d4 \nbbar g4 g8[a8] b8[g8] \bar "|" \break 
  c2 b8[a8] \nbbar g4 b4 d4 \nbbar d8[c8] b4 g8[a8] \nbbar b4 c8[b8] a4 \nbbar g2 \bar "||" \break
  fis8^\markup { \smallCaps "Refrain." } [   g8] \nbbar a4 e4 a8[g8] \nbbar fis8[e8] d4 d4 \nbbar g4 g8[a8] b8[g8] \bar "|" \break
  c2 b8[a8] \nbbar g4 b4 d4 \nbbar d8[c8] b4 g8[a8] \nbbar b4 c8[b8] a4 \nbbar g2 \bar "||" 
}

alto = \relative c' { \partial 4  
  \fdstartrepeat << { \movenote #0.5 d4 } 
        \new Voice = alt { \voiceFour \autoBeamOff
	\set fontSize = #-3 \override Stem #'length = #5 d8 d8 } >>  \nbbar 
        d4 g4 g4 \nbbar d4 d4 g4 \nbbar g4 g4 fis4 \nbbar g2 \fdendrepeat \break
  d4 \nbbar e4 e4 e4 \nbbar d4 a4 a4 \nbbar d4 d4 f4 \bar "|" \break
  e2 fis!4 \nbbar g4 g4 g4 \nbbar d4 d4 g4 \nbbar g4 g4 fis4 \nbbar g2 \bar "||" \break
  d4 \nbbar e4 e4 e4 \nbbar d4 a4 a4 \nbbar d4 d4 f4 \bar "|" \break
  e2  fis!4 \bar "|" g4 g4 g4 \bar "|" d4 d4 g4 \bar "|" g4 g4 fis4 \bar "|" g2 \bar "||"
}

tenor = \relative c { \clef bass \partial 4
  \fdstartrepeat << { \movenote #0.5 b'4 } 
  	\new Voice = alt { \voiceThree \autoBeamOff \movenote #-1
	\set fontSize = #-3 \override Stem #'length = #5 b8 b8 } >> \nbbar 							      
        b4 d4 b4 \nbbar a4 g4 b8[c8] \nbbar d4 e8[d8] c4 \nbbar b2 \fdendrepeat \break
  b4 \nbbar cis4 cis8[b8] a4 \nbbar a8[g8] fis4 fis4 \nbbar g4 g4 d'4 \bar "|" \break	
  c2 d8[c8] \nbbar b4 d4 b4 \nbbar a4 g4 b8[c8] \nbbar d4 e8[d8] c4 \nbbar b2 \bar "||" \break
  a8[b8] \nbbar cis4 cis8[b8] a4 \nbbar a8[g8] fis4 fis4 \nbbar g4 g4 d'4 \bar "|" \break
  c2 d8[c8] \nbbar b4 d4 b4 \nbbar a4 g4 b8[c8] \nbbar d4 e8[d8] c4 \nbbar b2 \bar "||"
}

bass = \relative c {\clef bass \partial 4
  \fdstartrepeat << { \movenote #0.5 g'4 } 
  	\new Voice = alt { \voiceFour \autoBeamOff
	\set fontSize = #-3 \override Stem #'length = #5 g8
        _\markup { \normalsize \italic { (Small notes for verse 6, line 2). } }  g8 } >> \nbbar 
        g4 g4 g4 \nbbar fis4 g4 e4 \nbbar d4 c4 d4 \nbbar g2 \fdendrepeat \break
  b,4 \nbbar a4 a8[b8] cis4 \nbbar d4 d8[e8] d8[c8] \nbbar b4 b4 g4 \bar "|" \break
  a2 d4 \nbbar g,4 g'4 g4 \nbbar fis4 g4 e4 \nbbar d4 c4 d4 \nbbar g2 \bar "||" \break 
  d4 \nbbar a4 a8[b8] cis4 \nbbar d4 d8[e8] d8[c8] \nbbar b4 b4 g4 \bar "|" \break
  a2 d4 \nbbar g,4 g'4 g4 \nbbar fis4 g4 e4 \nbbar d4 c4 d4 \nbbar g2 \bar "||"
}

#(ly:set-option 'point-and-click #f)

\paper {
   #(set-paper-size "a4")
%%  annotate-spacing = ##t
   print-page-number = ##f
   ragged-last-bottom = ##t
   ragged-bottom = ##t
}

\book{

\score{
\new ChoirStaff	
 <<

	\context Staff = upper << 
	\context Voice = sopranos { \voiceOne \global \soprano }
	\context Voice = altos    {\voiceTwo \global \alto }
	                      >>
        
	\context Staff = lower <<
	\context Voice = tenors { \voiceOne \global \tenor }
	\context Voice = basses { \voiceTwo \global \bass }
			        >> 
			      

 >>
\layout {
		indent=0
		\context { \Score \remove "Bar_number_engraver" }
		\context { \Staff \remove "Time_signature_engraver" }
		\context { \Score \remove "Mark_engraver"  }
                \context { \Staff \consists "Mark_engraver"  }
	}
	
	
} %%score bracket

\markup{ \hspace #15  "      [" \italic "In one or more verses the first part of this tune may be sung as a solo." "]" } 


%%fake score block to occupy space and force a pagebreak.  Can't think of a better way of doing this.
\score{
{ s4 }
\header { breakbefore = ##f piece = ##f opus = ##f tagline = ##f }
\layout{
	\context { \Staff
		\remove Time_signature_engraver
		\remove Key_engraver
		\remove Clef_engraver
		\remove Staff_symbol_engraver
}}}

\markup { \column  { \hspace #1 %% adds space on top to help those who use letter-size
          \line {  \hspace #16 \small \italic {"Suitable till Candlemas." \hspace #38   "H. R. Bramley." } } } }

\markup { \hspace #25   %%add space as necc. to center the column
          \column { 
	        
		     \column { %% stanza 1 column 
	                  \line { \hspace #2.2 \column { \lower #2.4 \fontsize #8 "T" }   %%Drop Cap goes here
				  \hspace #-1    %% adjust this if other letters are too far from Drop Cap
				  \column  { \raise #0.0 "HE great God of heaven is come down to earth," "   His mother a Virgin, and sinless his birth;" } }          
	                  \line {  \hspace #2.5  %%adjust hspace until this line left edge is flush with Drop Cap
				   \lower  #1.56  %%adjust this until the line spacing looks right
				   \column {   
					   "The Father eternal his Father alone:"
					   "He sleeps in the manger; he reigns on the throne:"
					  }}
					  \hspace #1
					  \line { \italic "             Then let us adore him, and praise his great love:"}
					  \line { \italic "             To save us poor sinners he came from above."}
			  		
			       
			           } %% finish stanza 1	
				   
	       	\hspace #1 
		\hspace #1
           	\line { "2  "
			\column {	     
				"A Babe on the breast of a Maiden he lies,"
				"Yet sits with the Father on high in the skies;"
				"Before him their faces the Seraphim hide,"
				"While Joseph stands waiting, unscared, by his side:"
			}}
			       	\hspace #1 
           	\line { "3  "
			\column {	     
				"Lo! here is Emmanuel, here is the Child,"
				"The Son that was promised to Mary so mild;"
				"Whose power and dominion shall ever increase,"
				"The Prince that shall rule o'er a kingdom of peace:"
			}}
	       	\hspace #1 
           	\line { "4  "
			\column {	     
				"The Wonderful Counsellor, boundless in might,"
				"The Father's own image, the beam of his light;"
				"Behold him now wearing the likeness of man,"
				"Weak, helpless, and speechless, in measure a span:"
			}}
		\hspace #1 
           	\line { "5  "
			\column {	     
				"O wonder of wonders, which none can unfold:"
				"The Ancient of days is an hour or two old;"
				"The Maker of all things is made of the earth,"
				"Man is worshipped by Angels, and God comes to birth:"
			}}
	       	\hspace #1 
           	\line { "6. "
			\column {	     
				"The Word in the bliss of the Godhead remains,"
				"Yet in flesh comes to suffer the keenest of pains;"
				"He is that he was, and for ever shall be,"
				"But becomes that he was not, for you and for me." 
			}}
	  }
}

%%%%%%%%%%%%%%%% This next section of code is for
%%%%%%%%%%%%%%%% unfolding the repeats and generating the midi
%%%%%%%%%%%%%%%% Not needed for visual layout
                

\score { 
\new ChoirStaff 
<<

\new Staff = "soprano" {\relative c' {\clef treble \global  
  \unfoldRepeats  {  \repeat volta 2 { d4  \nbbar 
        g4 b4 d4 \nbbar d8 c8 b4 g8[a8] \nbbar b4 c8 b8 a4 \nbbar g2 }} \break
  fis8[g8] \nbbar a4 e4 a8[g8] \nbbar fis8 e8 d4 d4 \nbbar g4 g8[a8] b8[g8] \bar "|" \break 
  c2 b8[a8] \nbbar g4 b4 d4 \nbbar d8[c8] b4 g8[a8] \nbbar b4 c8[b8] a4 \nbbar g2 \bar "||" \break
  fis8^\markup { \smallCaps "Refrain" } [   g8] \nbbar a4 e4 a8[g8] \nbbar fis8[e8] d4 d4 \nbbar g4 g8[a8] b8[g8] \bar "|" \break
  c2 b8[a8] \nbbar g4 b4 d4 \nbbar d8[c8] b4 g8[a8] \nbbar b4 c8[b8] a4 \nbbar g2 \bar "||" 

}
}

\new Staff = "alto" {\relative c' {\clef treble \global 
  \unfoldRepeats {   \repeat volta 2 {  d4   \nbbar 
        d4 g4 g4 \nbbar d4 d4 g4 \nbbar g4 g4 fis4 \nbbar g2 }} \break
  d4 \nbbar e4 e4 e4 \nbbar d4 a4 a4 \nbbar d4 d4 f4 \bar "|" \break
  e2 fis4 \nbbar g4 g4 g4 \nbbar d4 d4 g4 \nbbar g4 g4 fis4 \nbbar g2 \bar "||" \break
  d4 \nbbar e4 e4 e4 \nbbar d4 a4 a4 \nbbar d4 d4 f4 \bar "|" \break
  e2  fis4 \bar "|" g4 g4 g4 \bar "|" d4 d4 g4 \bar "|" g4 g4 fis4 \bar "|" g2 \bar "||"

}	
}

\new Staff = "tenor" { \relative c {\clef bass \global 
  \unfoldRepeats {   \repeat volta 2 { b'4  \nbbar 							      
        b4 d4 b4 \nbbar a4 g4 b8[c8] \nbbar d4 e8[d8] c4 \nbbar b2 }} \break
  b4 \nbbar cis4 cis8[b8] a4 \nbbar a8[g8] fis4 fis4 \nbbar g4 g4 d'4 \bar "|" \break	
  c2 d8[c8] \nbbar b4 d4 b4 \nbbar a4 g4 b8[c8] \nbbar d4 e8[d8] c4 \nbbar b2 \bar "||" \break
  a8[b8] \nbbar cis4 cis8[b8] a4 \nbbar a8[g8] fis4 fis4 \nbbar g4 g4 d'4 \bar "|" \break
  c2 d8[c8] \nbbar b4 d4 b4 \nbbar a4 g4 b8[c8] \nbbar d4 e8[d8] c4 \nbbar b2 \bar "||"

} 
}


\new Staff = "bass" { \relative c { \clef bass \global 
  \unfoldRepeats {   \repeat volta 2 { g'4  \nbbar 
        g4 g4 g4 \nbbar fis4 g4 e4 \nbbar d4 c4 d4 \nbbar g2 }} \break
  b,4 \nbbar a4 a8[b8] cis4 \nbbar d4 d8[e8] d8[c8] \nbbar b4 b4 g4 \bar "|" \break
  a2 d4 \nbbar g,4 g'4 g4 \nbbar fis4 g4 e4 \nbbar d4 c4 d4 \nbbar g2 \bar "||" \break 
  d4 \nbbar a4 a8[b8] cis4 \nbbar d4 d8[e8] d8[c8] \nbbar b4 b4 g4 \bar "|" \break
  a2 d4 \nbbar g,4 g'4 g4 \nbbar fis4 g4 e4 \nbbar d4 c4 d4 \nbbar g2 \bar "||"
}
}


>>

\midi { 
   \context {
       \Score 
       tempoWholesPerMinute = #(ly:make-moment 96 4)
            }
       }
} %% midi score bracket


%% Amen score block
\score{
  \new ChoirStaff
   <<
        \context Staff = upper \with { fontSize = #-3  \override StaffSymbol #'staff-space = #(magstep -2) }  
	                     << 
	\context Voice = "sopranos" { \relative c' { \clef treble \global \voiceOne g'1 g1 \bar "||" }}
	\context Voice = "altos"    { \relative c' { \clef treble \global \voiceTwo e1 d1 \bar "||" }}
	                      >>
			  
	\context Lyrics \lyricsto "altos" { \override LyricText #'font-size = #-1 A -- men. }
	
	\context Staff = lower \with { fontSize = #-3  \override StaffSymbol #'staff-space = #(magstep -2) }  
	                        <<
	\context Voice = "tenors" { \relative c { \clef bass \global \voiceThree c'1 b1 \bar "||" }}
	\context Voice = "basses" { \relative c { \clef bass \global \voiceFour  c1 g1 \bar "||" }}
			        >> 
  >>			      
\header { breakbefore = ##f piece = " " opus = " " }

\layout { 
      \context { \Score timing = ##f }
	ragged-right = ##t
	indent = 15\cm
	\context { \Staff \remove Time_signature_engraver }

       }

\midi { \context { \Score tempoWholesPerMinute = #(ly:make-moment 96 4) }}  %%Amen midi 

} 

} %%book bracket

Lily3

We are trying out a new workflow where L3 grabs the code, compiles and checks. After clearance, L3 will name the files and upload to repository. This ensures that what is checked and cleared is exactly what is uploaded.

Notes

Comments by ebykm 12:18, 23 May 2007 UTC

  • This is my first Lilypond code.
  • Macros to generate repeat sign glyph comprising 4 dots won't compile on Lilypond 2.10.23 for Mac OS X.
  • Somebody need to write independent smallCAPS and horizontal offset code for Refrain, currently it is attached to note F on soprano part, the same goes for note G on bass part, and note A on bass part on the last stave. I think the Refrains should be attached to a measure (Staff text) and others should be just plain text notes, independent from music. Should i omit such things in the future ?.
  • Lyrics and Amen not included.
  • Quaver notes in the first measure (for verse 6 line 2), is input as normal(theoretically incorrect, heheh), not as grace or cue notes. Please note this when generating MIDI.

Notes by L2 Jkenny 08:28, 23 May 2007 (PDT)

  • I am concerned that the macros don't compile on OS X. Please try these macros which I have just used above in the L2 code. They are standard Lily commands, so no reason why they won't compile. If they don't compile,please note the error message if any.
  • The refrain and the[Small note for verse...] are text markups attached to things on the staff, so put them in.
  • "Refrain" I set to normal rather than large, as it did not look larger than e.g. the tune name.
  • The long line about [In one or more cases ... ] was a separate markup, and yes you can omit that (unless you want to help out your poor L2!]
  • For numbers, like in for verse 6, line 2.... there is no need to bold the numbers or turn them upright. Leave them italicized. It is a DP convention that we italicize numerals and dates when embedded in a block of italic text. This is because printers in the old days did not have a separate print fonts for numerals in italics, but we believe they would have italicized the numerals had they been able to do so.
  • For quaver notes in the first measure, approach is correct as they are alternative notes, not grace notes. I tried setting them as a 3rd and 4th voice on the staff. By doing this, I was able to be musically "honest", and turned timing to ##t. This avoided problems with accidentals popping up.
  • Are quaver notes too small? I tried to achieve a contrast with the normal notes.
  • Lyrics - the refrain lyrics are \small? I rendered them as \small but I can't be sure they really are smaller.


Reply by ebykm regarding L2. 9:03, 24 May 2007 UTC

  • Your L2 compiles without any glitch on Tiger (10.4), i'll check it on Panther (OS 10.3) as well.
  • The quaver notes are too small. \set fontSize = #-3 be fine, but again you'll have to re-space those notes to avoid collision.
  • I don't understand the usage of \partial 4, is 4 value of a note or pickup beat of that measure ?, i thought \partial 1 = 1 beat in that measure ?.
  • why use \relative c than \relative d as i used?(because the melody begins and is within the range), have we discussed about this ?
  • Lyrics - the refrain lyrics \tiny \italic "Then let us adore him, and praise his great love:" look better and original than \small
  • Errors ?
  • THE CHRISTIAN YEAR - CHRISTMAS - CHRISTMAS isn't on the first page of the scan, but on the second. Was this discussed earlier ?.
  • Quavers in the 3rd(d8 c8) and 4th(c8 b8) measures should be beamed.


Replies by Jkenny 03:37, 24 May 2007 (PDT)

  • Take note that 10.3 and 10.4 of OSX need different installer versions of Lilypond - you'll find it on the download site.
  • Quavers set to #-3, stem lengths increased from #4 to #5. No collisions.
  • On numbers, everything is inverted, I'm afraid. \partial 4 means a partial measure comprising a 1/4 note. Just like d2 means a half note (minim) "d", a8

means a 1/8 note (quaver) of pitch "a".

  • Relativities, nothing hard and fast here. It's just a matter of convenience for us to all use the same. Everywhere else I have only seen people use c, c' and other c's as relatives, so it becomes ingrained that when you go beyond g above middle c, you put an octavation mark. So we figured that sticking to the mainstream makes it easier for others to read the code. Notice it doesn't make a difference here, as there's hardly any octavation mark needed here. There is another school of thought that argues strongly for absolute rather than relative notation. But here, I suppose our aim is maximum accessibility, we stick to the mainstream and what the manual recommends (which is relative mode).
  • Lyrics refrain - actually I enlarged the image and measured the text with dividers and found (surprisingly) that the italic and normal text is the same height.
  • Christian Year - yes that was discussed and decided upon. Each PDF is intended as a standalone document complete unto itself. Therefore where 2 hymns share a set of lyrics, both PDFs will have its own set of lyrics - we are not following the image here. Where the Christian Year Theme is split over two pages, it is combined. Notice some places have the complete Theme on one page e.g. Saints' Days - St. Thomas.
  • Quaver beams fixed.
  • Oh yes, I commented out stuff from the \paper block, resetting everything to a barebones layout with a lot of defaults. The reason is that its a very aesthetic thing, and it depends on what size of paper the end-user wants to print on. So these are decisions we think are best left to the Post processor or end user. So the tweaks I used to make e.g. the header a bit higher, the staffs a bit further apart - these are now commented out.

Reply by ebykm 21:56, 24 May 2007 UTC

  • Regarding Mac OS X versions for Tiger (10.4) and Panther (10.3), OS 10.3 is the minimum supported OS by lilypond on Apple PowerPC hardware(G3, G4, G5) and Apple never shipped Intel based model with Panther OS, 10.4 is the minimum supported OS on Intel powered Macs. - In other words, it wont run MacOSX(Intel) version on a PPC Mac even if you have Tiger on it, you'll need G3, G4, G5 version.

QMacrocarpa 15:44, 24 May 2007 (PDT)

  • In attribution line above music, "Melody." should be "Carol."
  • 2nd system, 3rd bar: first two soprano notes are missing beam.
  • 3rd and 5th system, 1st bar: 2nd note in alto missing explicit #.
  • I think the bracketed text at the bottom should be default size, but am trying to cease my font-size fretting.
  • But before I cease my font-size fretting, I also think the "(Small notes...)" annotation under first staff should be default size.
  • I note somewhat different method used to indent refrain here than in 058, e.g.

Reply by ebykm 8:53, 25 May 2007 UTC

  • Rev 2 code won't compile on OS X Lilypond 2.10.23, whilst previous lily2 (Rev 1) code by jkenny does. !!!. It starts "Parsing..." then stops if \version "2.10.23" is used, else it says, "add \version 2.10.23" for future compatibility.

Jkenny 01:42, 25 May 2007 (PDT)

  • That's very strange, the only diff are the quavers which I made larger, and the beaming of a few quavers and reverting to defaults on the \paper settings. Nothing exotic, in fact less exotic than the version which compiled successfully.
  • Try compiling with the line just saying \version "2.10" (don't forget the quote marks).
  • By the way, I use ver 2.10.19 or 2.10.25. Anyway the changes in minor revision numbers shouldn't cause any trouble.
  • On the font sizes, yes I agree, they are default -- an oversight. But for now I am not changing any code while we diagnose ebykm's compiler problem.

Adding comment stygiania 23:06, 25 May 2007 (PDT)

  • Nice work, ebykm!
  • Need to add full stop after "REFRAIN" within the score.

Lily problem solved and errors i got by ebykm 10:47 30 May 2007, UTC

  • I was getting these really strange errors, i don't see any - or `.
~/hymn 29 rev2.ly:4:3: error: syntax error, unexpected '-', expecting '=' top-margin = 2\mm
~/hymn 29 rev2.ly:4:14: error: unknown escaped string: `\mm' top-margin = 2\mm
~/hymn 29 rev2.ly:5:0: error: syntax error, unexpected STRING, expecting '=' bottom-margin = 3\mm
~/hymn 29 rev2.ly:5:17: error: unknown escaped string: `\mm' bottom-margin = 3\mm
  • So, used Opera browser to copy the code, and it compiled !!!!!, seems FireFox was adding invisible - , ` and others to preserve formatting.

Jkenny 19:15, 30 May 2007 (PDT)

  • Great that compiler issues solved - though I use Firefox and it doesn't add invisible characters - but may be that is peculiar to Firefox on Mac?
  • All issues raised by Q and S fixed now.

QMacrocarpa 09:11, 31 May 2007 (PDT)

  • Looks good!

Lily3 cleared, files uploaded stygiania 17:30, 31 May 2007 (PDT)


Project History

    • Lily1 - done by ebykm 12:29, 23 May 2007. my first ever lilypond code, see NOTES.
    • Lily2 - quite nice. Easy right? Done by Jkenny 08:29, 23 May 2007 (PDT).
    • Lily3 - comments added QMacrocarpa 15:46, 24 May 2007 (PDT)
- Plus one nitpickin' thing. stygiania 23:07, 25 May 2007 (PDT)
- Lily code problem solved by ebykm 10:50, 30 May 2007 UTC
- Good. Errors fixed. Jkenny 19:18, 30 May 2007 (PDT) :::::: - Looks good! QMacrocarpa 09:12, 31 May 2007 (PDT)
- Lily3 cleared, files uploaded stygiania 17:31, 31 May 2007 (PDT)