The English Hymnal - Wiki Music Experiment/410a

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 to the 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.


NOTE: There are 2 tunes in this hymn. I added a digit to the hymn number to number them 1 and 2, and further identify them as 264t1=tune 1 and 264t2=tune 2. I left a blank line between the tunes to more easily tell where one ends and another begins, should someone decide to separate them.

X:2641
T:264t1
L:1/8
%%staves [(soprano|alto)(tenor|bass)]
K:C
[V:soprano clef=treble]
A c A A B c A A | A A B cB AG A G F |
A A G ABcB A A G ABA || A A G F A A G G ||
GA GFG ||
[V:alto clef=treble]
F G E -E G -G F E | E E G G2 E2 E2 C |
F E D E4-E F D F3 || C2-C A, D E E D ||
EF EDD ||
[V:tenor clef=bass]
c'2-c' -c' d' e' d' c' | c' c' d' gb c'b c'2 a |
c' c' d' c'4-c' c' c' c'd'c' || f2 e d g c' c' b ||
c'2-c'ab ||
[V:bass clef=bass]
f e a -a g c d a | a a g e2-e2 A c f |
f a b a4-a f c f_Bf || F A c d -d A c g ||
cf cdG ||

X:2642
T:264t2
L:1/8
%%staves [(soprano|alto)(tenor|bass)]
K:Bb
[V:soprano clef=treble]
G B B B B c B A | G G G G A A G F |
A A G F D F G G | B B B B G A G F ||
FGF F2 ||
[V:alto clef=treble]
E F2 G2 G F F | D E2 D F C2-C |
C D4-D D2 | G F2 D2 F (E/ D/) C ||
D3 C2 ||
[V:tenor clef=bass]
b d'2 d'2 e' d' c' | b b2 b d' c' b a |
f f g a f a b2 | e' d'2 b2 d' b a ||
b3 a2 ||
[V:bass clef=bass]
e B2 g2 c d f | g e2 g d f2-f |
f d4-d g2 | e B2 g2 d e f ||
B3 F2 ||

Lily2 Code

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

%%% 410a.png
%%% Hymn 264 (Tune 1) Before the ending of the day
%%% Version 1


\version "2.10"

\include "gregorian-init.ly"

\header {
  dedication = \markup {  \center-align { "TIMES AND SEASONS.—EVENING"
	                                        \hspace #0.1 }}	
	
  title = "264"
  
  subtitle = \markup { \smallCaps "Tune 1" "(" \italic "On Sunday and Feasts" ")." }
  
  arranger = \markup { \small { "Mode viii." }}
  
  tagline =""
}

%%%%%%%%%%%%%%%% Macros

%% moves plainsong accidentals leftwards so that they show up more clearly
moveacci = \once \override Accidental #'extra-offset = #'(-1.2 . 0 )

%% macro settings for stemless long note which is 2x duration of regular white note    
ln = {\once \override NoteHead #'duration-log = #0 
           \once \override Stem #'stencil = ##f
           \once \override NoteColumn #'force-hshift = #0.4 }

%% a second set of macro settings for stemless long notes ( 2x duration of regular white note )
%% this one uses X-offset instead of force-hshift.
%% All long notes are offset slightly to the right with respect to any beamed notes which 
%% they are aligned with.  Normally, this is done with force-hshift.  
%% However, when 2 long notes occur one atop the other (i.e. in S + A pats or in T + B parts), then applying force-hshift
%% to both does not work.  Hence one note needs to be moved with the regular force-hshift in the \ln macro above,
%% while the other is moved with X-offset with the macro \lnb
%% In general force-hshift is preferred whenever possible as slurs are adjusted automatically, while X-offset especially
%% when used with a bottom slur often results in a slur starting too far to the left and which then needs manual adjustment. 

lnb = {\once \override NoteHead #'duration-log = #0 
           \once \override Stem #'stencil = ##f
           \once \override NoteHead #'X-offset = #0.8 }

%%% settings to generate the double longnotes (breves)

brevenote = { \once \override NoteHead #'duration-log = #-1  
                \once \override NoteColumn #'force-hshift = #0.4 }

%%% same as above but used for the bottom note when two breves are stacked one atop
%%% the other.
		
brevenoteb = { \once \override NoteHead #'duration-log = #-1  
                \once \override NoteHead #'X-offset = #0.8 }
		
				
%%%%%%%%%%%%% End of Macro Definitions		
		
%%% plainsong voice

plainsong = \context VaticanaVoice  {  \relative c { 
	\clef "vaticana-do3"
	\set fontSize = #3
        \key c \major 

  a'8 c a a b c a a \bar "|" a a b \[ c \flexa b \] \[ a \flexa g \] a g f \bar "|" \break
  a a g \[ a \pes b c \flexa b \] a a g \[ a \pes \moveacci bes \flexa a \] \bar "||" a a g f a a g g \bar "||" 
}} 
  
%%% SATB voices

global = {
  \key c \major 
  \set Staff.midiInstrument = "church organ"
}


soprano = \relative c' {
	\autoBeamOff
  a'8 c8 a8 a8 b8 c8 a8 a8 \bar "|" a8 a8 b8 c8[ b8] a8[ g8] a8 g8 f8 \bar "|"  
  a8 a8 g8 a8[ b8 c8 b8] a8 a8 g8 a8[ bes8 a8] \bar "||" a8 a8 g8 f8 a8 a8 g8 g8 \bar "||"
}


alto = \relative c' {
	\autoBeamOff
 f8 g8 e8 ~ e8 g8 ~ g8 f8 e8 \bar "|"  e8 e8 g8 \ln g4 \ln e4 \ln e4 c8 \bar "|" 
 f8 e8 d8 \brevenote e\breve * 1/4  ~ e8 f8 d8 \ln f4. \bar "||" \ln c4 ~ c8 a8 d8 e8 e8 d8 \bar "||" 
}


tenor = \relative c { \clef bass
	\autoBeamOff
  \ln c'4 ~ c8 ~ c8 d8 e8 d8 c8 \bar "|" c8 c8 d8 g,8[ b8] c8[ b8] \ln c4 a8 \bar "|"
  c8 c8 d8 \brevenote c\breve * 1/4 ~ c8 c8 c8 c8[ d8 c8] \bar "||" \ln f,4 e8 d8 f8 c'8 c8 b8 \bar "||" 
}

bass = \relative c { \clef bass
	\autoBeamOff
  f8 e8 a8 ~ a8 g8 c,8 d8 a'8 \bar "|" a8 a8 g8 \ln e4 ~ \ln e4 a,8 c8 f8 \bar "|"
  f8 a8 b8 \brevenoteb a\breve * 1/4 ~ a8 f8 c8 f8[ bes,8 f'8] \bar "||" f,8 a8 c8 d8 ~ d8 a8 c8 g'8 \bar "||" 
}


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

\book {

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

\score {	
  <<
  \new VaticanaStaff {\plainsong }
  \new ChoirStaff <<
   \new Staff = "upper" <<
      \context Voice = sopranos {\voiceOne \global \soprano }
      \context Voice = altos {\voiceTwo \global \alto }
                      >> 
   \new Staff = "lower" <<
      \context Voice = tenors {\voiceOne \global \tenor }
      \context Voice = bass {\voiceTwo \global \bass }
	             >> 
		 >>  
  >>

\layout {
	
  ragged-right = ##f
  ragged-last = ##f
  \context { \Score timing = ##f }
  \context { \Score \override TimeSignature #'transparent = ##t }
  \context { \Score \remove "Mark_engraver" }
  \context { \Staff \consists "Mark_engraver" }
  
  % *** Needed to produce beamed minims - which are quavers in disguise
  \context { \Staff \override NoteHead #'duration-log = #1 }
  \context { \Staff \override Stem #'flag-style = #'no-flag }
  
  \context { \VaticanaStaff
           % *** Increases distance between lines of staff  
           \override StaffSymbol #'staff-space = #1.6            
           % *** Changes staff to black instead of default red
           \revert StaffSymbol #'color
           % *** Makes clef bigger       
           \override Clef #'font-size = #3
           % *** Would make ledger lines black, if there were any
           \revert LedgerLineSpanner #'color
           % *** Makes terminal barline visible 
           \override BarLine #'transparent = ##f 
  	   % *** Remove custos
	   \remove Custos_engraver
	   % needed for certain tweaks
	   \consists "Mark_engraver"
           }
     }
} %%% score bracket 

%%% A separate score block to generate the midi minus the plainsong voice
%%% Since minims are quavers in disguise, tempo has to be set accordingly, tempo set to 2=80

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

\midi { 
  \context { \Score tempoWholesPerMinute = #(ly:make-moment 80 8) }
       } 
}


%%% Lyric titles and attributions

\markup { "                " }  %%% force some space before start of lyrics

\markup { \hspace #6 \small {  \column { \line {\smallCaps  "Office Hymn." \hspace #2  \italic "Compline." \hspace #39 \italic "Before 8th cent.  Tr. J. M. Neale." }    
	                        	\line { \hspace #34 "Te lucis ante terminum." }
	
}}}


%%% Lyrics

\markup { \hspace #32 %%add space as necc. to center the column
          \column { %% super column of everything
	              \column { %% verse 1 is a column of 2 lines  
	                  \line { \hspace #2.6 \column { \lower #2.4 \fontsize #8 "B" }   %%Drop Cap goes here
				  \hspace #-1.2    %% adjust this if other letters are too far from Drop Cap
				  \column  { \raise #0.0 "EFORE the ending of the day,"
			                                 "  Creator of the world, we pray" } }          
	                  \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 {   
					   "That with thy wonted favour thou"
					   "Wouldst be our Guard and Keeper now."
					   "      " %%% adds vertical spacing between verses
			  		}}
		      } 
		      			\line {"2  "
			   \column {	     
				  "From all ill dreams defend our eyes,"
				  "From nightly fears and fantasies;"
				  "Tread under foot our ghostly foe,"
				  "That no pollution we may know."
				   "               " %%% add vertical spacing between verses
			}}
	  } %%% end super column
}



%%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
}}}

%%% Second page
%%% Continuation of lyrics

\markup { \hspace #32 %%add space as necc. to center the column
          \column { %% super column of everything
		  	\hspace #1  % adds vertical spacing between verses  
           		\line { "3  "
			     \column {	     
				     "O Father, that we ask be done,"
				     "Through Jesus Christ, thine only Son;"
				     "Who, with the Holy Ghost and thee,"
		                     "Doth live and reign eternally.        Amen."
			}}

	  }
} %%% lyric markup bracket



%%% Amen score block

\score {  	
  <<
    <<
  \new VaticanaStaff <<
  \context VaticanaVoice = "plainsongamen"  {  \relative c { 	  
	\set Score.timing = ##f
	\override Staff.Clef #'#'font-size = #3
	\clef "vaticana-do3"
	\set fontSize = #3
	\override Staff.StaffSymbol #'staff-space = #1.6
	 
        \[ g'8 \pes a8 \]   \[
	    \override NoteHead #'extra-offset = #'(0.0 . -0.1 ) g8 
            \override NoteHead #'extra-offset = #'(-0.38 . 0.0 ) \flexa  f8 \pes 
            \override NoteHead #'extra-offset = #'(0.02 . 0.05) g8 \] }} 
                    >> 
 \new Lyrics = "lyrics" { s1 }
 \new ChoirStaff
   <<
   \context Staff = upper \with {  fontSize = #-3  \override StaffSymbol #'staff-space = #(magstep -2) } 
                              << 
	\context Voice = "sopranos" { \relative c' { 
	                                              \clef treble \global
	                                              \voiceOne g'8[ a] g8[ f8 g8] \bar "||" }}
	\context Voice = "altos"    { \relative c' { 
	                                              \global
	                                              \voiceTwo e8[ f] e[ d d] \bar "||" }}
	                      >>
	\context Staff = lower \with { fontSize = #-3  \override StaffSymbol #'staff-space = #(magstep -2) } 
	                      <<
	\context Voice = "tenors" { \relative c { 
		                                  \clef bass  \global
	                                          \voiceThree  \ln c'4 ~ c8[ a b] \bar "||" }}
	\context Voice = "basses" { \relative c { 
	                                          \clef bass  \global
						  \voiceFour c8[ f8] c8[ d8 g,8] \bar "||" }}
			        >> 
   >>
  \context Lyrics = "lyrics" \lyricsto "sopranos" { \override LyricText #'font-size = #-1  "  A   " -- _ "   men." }
  >>
>>

\header { breakbefore = ##f piece = " " opus = " " }

\layout {
     indent = 13\cm
     raggedright = ##t
     packed = ##f
     \context { \Score \override TimeSignature #'transparent = ##t }
     \context { \Score \override SeparationItem #'padding = #2 }
     \context { \Staff \override VerticalAxisGroup #'minimum-Y-extent = #'( -5 . 4) }
     \context { \Score \remove "Bar_number_engraver"
		timing = ##f 
              }
     \context { \Staff \override NoteHead #'duration-log = #1 }
     \context { \Staff \override Stem #'flag-style = #'no-flag }
     \context { \VaticanaStaff %%customize vaticana staff context 
	          \revert StaffSymbol #'color
		  \revert LedgerLineSpanner #'color
		  \override BarLine #'transparent = ##f 
		  \remove Custos_engraver
 	} 
} 

}

%%% Separate score block for Amen midi minus plainsong voice
%%% Since the minims are quavers in disguise, the tempo has to be adjusted accordingly. A tempo of 2=80 is set.

\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'8[ a] g8[ f8 g8] \bar "||" }}
	\context Voice = "altos"    { \relative c' { 
	                                              \global
	                                              \voiceTwo e8[ f] e[ d d] \bar "||" }}
	                      >>
	\context Staff = lower \with { fontSize = #-3  \override StaffSymbol #'staff-space = #(magstep -2) } 
	                      <<
	\context Voice = "tenors" { \relative c { 
		                                  \clef bass  \global
	                                          \voiceThree  \ln c'4 ~ c8[ a b] \bar "||" }}
	\context Voice = "basses" { \relative c { 
	                                          \clef bass  \global
						  \voiceFour c8[ f8] c8[ d8 g,8] \bar "||" }}
			        >> 
   >>
   
\midi {  
   \context { \Score tempoWholesPerMinute = #(ly:make-moment 80 8) } }
      }
   	

} %% book bracket

Lily3 Notes

Copy the Lilypond source to your computer and compile it to create MIDIs and a PDF to check. Leave notes here, or edit the code in Lily2 and leave notes describing the changes. After errors are corrected, the piece is declared "Cleared" and uploaded to the repository.

If you can't compile Lilypond, use the links here:

Original scan: 410.png

Links to L2 output version 1:

L2-264a-v1.pdf L2-264a-v1.midi L2-264a-v1-amen.midi