The English Hymnal - Wiki Music Experiment/024b

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.

Notes shown as ligatures in scan are bracketed together. At least they are to the best of my ability....

Plainsong = e4 d4 c4 [e4 g4] g4 [g4 f4] f4 [d4 c4] e4 f4 g4 g4 e4 c4 d4 ||

Lyrics = Qua De - us in - fer - num vi - cit, et as - tra te - net.
Day where - in God o'er - came hell, and a - rose from the dead.

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


%%% 024.png
%%% Plainsong sample 2 in Preface.
%%% Version 3

\version "2.10"

\include "gregorian-init.ly"

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

\header {
   tagline = "" }

plainsong = { 
   \clef "vaticana-do3"
   \set fontSize = #3
   \set Staff.midiInstrument = "church organ"
f8 e d \[ f\melisma \pes a\melismaEnd \] \[ a\melisma a \flexa g  g\melismaEnd \] \[ e\melisma \flexa d\melismaEnd \] f g a a f d e \bar "||" 
}

\score { 

<<

\new VaticanaStaff = "snippet" 

\new VaticanaVoice = "cantus" { \plainsong }

\new Lyrics \lyricsto "cantus" {
   \override LyricText #'font-shape = #'italic
Qua De -- us in -- fer -- num vi -- cit, et as -- tra te -- net. } 

\new Lyrics \lyricsto "cantus" {
   \override LyricText #'font-shape = #'upright
Day \override LyricHyphen #'minimum-distance = #2.0 where -- in God o'er -- came hell, and a -- rose from the dead. }

>>

\layout { ragged-last = ##f

\context { \Score 
           timing = ##f 
           \override TimeSignature #'transparent = ##t }

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

\context { \Lyrics
           % **** To even out spacing between words:
           \override LyricSpace #'minimum-distance = #5
           % **** To reduce the font size:
           \override LyricText #'font-size = #-1 }

}% end layout
	  
}% end score


% *** Second invisible score in modern context to support midi call

\score {
   \new Staff = "midi" {
   \set Staff.midiInstrument = "church organ"
    f8 e d f[( a]) a[~ a g~ g] e[( d]) f g a a f d e \bar "||" 
} 	
   \midi { \context { \Score tempoWholesPerMinute = #(ly:make-moment 80 8) } }	
}% end midi score

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 L2 --Camilla 12:09, 25 May 2007 (PDT)

  • Sorry about horiz spacing: Lilypond seems to leave big gap after long melismata.

Note by stygiania 21:16, 25 May 2007 (PDT)

  • Latin lyrics should be italics.
  • Header should list this as Sample 2 instead of Sample 1.
  • Same lyrics and clef sizing issues as Sample 1.

Jkenny 01:12, 26 May 2007 (PDT)

  • \override NoteHead #'X-offset = #-5 just before the notes above the "num" in "in--fer--num" will pull the notes leftwards closer. Adjust the number #-5 to taste.
  • This is another case where \override LyricText #'font-size = #-1 does make the text more proportionate
  • Also try putting \override LyricHyphen #'minimum-distance = #2.0 just before "where -- in" in the 2nd line of lyrics. This will force the hyphen to show, and spaces out the word a bit better.
  • I think only the Latin is in italic? English is normal, but also size -1.

[User:Camilla|Camilla]] 02:22, 26 May 2007 (PDT)

  • Thanks, done.
  • Thanks for the tips for fixing the spacing, Jack: never come across any of them before; will come in handy. Googled out a tweak in a beautifully commented piece of coding attributed to Geoff Horton - to whom thanks, whoever he may be - which does the job with a single line in the \lyric block. Watcha think?

Jkenny 02:56, 26 May 2007 (PDT)

  • Looks good. Which line of code did the magic? And could you pass me the link to that Geoff Horton piece?
          \context { \Lyrics
                     % **** To even out spacing between words:
                     \override LyricSpace #'minimum-distance = #5 }

Even better now I've added your \override LyricHyphen. Geoff Horton's website has a page of tips and a whole load of lilyponded hymns. He commented every command in the Lyrics block, which helped no end. I lifted the line from Spires. Let me know if you have trouble getting to the lilypond code from the links on his hymn page - I have to go through Google's cache because my browser insists on playing the lilypond instead of displaying the code.

stygiania 00:48, 27 May 2007 (PDT)

  • The midi tweak works. Just not certain how this line is supposed to sound--should all those notes be repeated in the "God o'ercame" part?
  • Other than that, I think this one is ready.
    • - I've had another look at it, but I'm afraid I don't know enough to answer that. :-( Thanks for checking the midi. :-) -- Camilla 01:54, 27 May 2007 (PDT)

QMacrocarpa 14:47, 28 May 2007 (PDT)

  • I'm not having MIDI problem with this one like I had with 024a.
  • And I'm only seeing this line of plainsong once, unlike 024a.
  • But I am having top margin issues in GhostView set at Letter as I did with 024a.
  • About the repeated notes in the MIDI, the full version of the hymn clears it up in this instance. See the second system of 832.png: the repeated notes are tied together in the white-note version.
  • But I have noticed similar effects in other hymnal MIDIs-- it often/always(?) seems impossible to distinguish between repeated notes which are not tied together and those that are. Should we worry? Edited: I thought I had also heard the "tied-sounding" effect in non-plainsong pieces, but maybe I'm mistaken-- I just checked a (non-plainsong) piece with repeated notes, and they did not sound tied after all. Hmm. I'll keep my ears "watching" for an example.
    • Bearing in mind that I don't know anything about ancient notation... :-) I've passed several places on the web while coding this music which say there is no consensus about whether repeated notes are tied or sounded. If that's true, then maybe it is not a worry? In the meantime, on the basis that, if the notes are tied in the white-note version, they ought to be tied in the vaticana version, I am digging around to see if I can find out how to make Lilypond do this. Regards, Camilla.

stygiania 21:35, 29 May 2007 (PDT)

  • Tagline suppression needed here too. :-)

stygiania 16:44, 31 May 2007 (PDT) idea

  • Might need to do a second midi-specific (invisible) score in modern notation to correctly include the ties. This sample is short enough it won't make the code too long.
    • I've added something - see what you think. --Camilla 23:16, 31 May 2007 (PDT)

stygiania 07:19, 1 June 2007 (PDT)

  • Missing a couple notes - try f8 e d f[( a]) a[~ a g~ g] e[( d]) f g a a f d e \bar "||"
    • Oops - hurrying to fix it before I left for work this morning. :-( Should be OK now? C.

Lily3 cleared, files uploaded stygiania 11:05, 4 June 2007 (PDT)

Project History

    • Lily 1 - done by stygiania 18:32, 20 May 2007 (PDT) (simple text + lyrics)
    • Lily 2 - code available for comments Camilla 12:05, 25 May 2007 (PDT)
    • Lily 3 - note added stygiania 21:17, 25 May 2007 (PDT)
- just the midi to sort out on this one too now, I think --Camilla 04:14, 26 May 2007 (PDT)
- edited to match Jack's fix for 24a: does it work? -- Camilla 00:30, 27 May 2007 (PDT)
- Yes, it works. Question about note repetition. stygiania 00:49, 27 May 2007 (PDT)
- Few more comments QMacrocarpa 14:52, 28 May 2007 (PDT)
- Same quibble here stygiania 21:36, 29 May 2007 (PDT)
- Also done. -- Camilla 10:48, 30 May 2007 (PDT)
- midi tied-note thought added stygiania 16:45, 31 May 2007 (PDT)
- new code to test --Camilla 23:18, 31 May 2007 (PDT)
- add a couple of notes and it should be ok. stygiania 07:20, 1 June 2007 (PDT)
- Thanks stygiania: fingers crossed! ?OK --Camilla 08:33, 1 June 2007 (PDT)
- Lily3 cleared, files uploaded stygiania 11:06, 4 June 2007 (PDT)