The English Hymnal - Wiki Music Experiment/024a

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.

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

Lyrics = Qua De - us in - fer - num vi - cit, et as - tra te - net.

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 1 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 \[ a \melisma \flexa g \melismaEnd \] \[ e\melisma \flexa d\melismaEnd \] f g a a f d e \bar "||" }

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

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

>>

\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" {\plainsong} 	
   \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

Notes by camilla 19:15 25 May 2007 (BST) Comments on this plainsong snippet would be greatly appreciated. In particular - what do I do with the midi block??? TIA, camilla.

Notes by Jkenny 20:27, 25 May 2007 (PDT)

  • Looks good to me.
  • Add \override Staff.Clef #'font-size = #3 either in the voice or the layout block. This makes the clef easier to see and was used on a later plainsong - we are thinking of standardizing on this larger clef size.
  • My opinion would be - no midi block, since this is just a snippet, but would appreciate more opinions on this.
  • Lyrics - are they in italics? Or perhaps some words are, some words aren't? Need someone with better eyes for this.
  • Also, add \override LyricText #'font-size = #-1 to the lyrics. That makes it look more proportional. We are thinking of standardizing on -1 for inline lyrics because they do look smaller than the text around them.

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

  • Lyrics are italics (simple way to tell is 'f' descends below baseline.
  • I agree about the size of the clef and lyrics.
  • I can't get the midi to play. Could be this stupid laptop!!!

Note by Camilla 01:55, 26 May 2007 (PDT)

  • No I can guarantee it'll be this stupid lilyponder! I will have to rely on wiser heads than I for advice about the midi; apart from that, thanks both, all done.--Camilla 01:54, 26 May 2007 (PDT)

Notes Jkenny 21:23, 26 May 2007 (PDT)

  • Puzzling - somehow the VaticanaStaff and voice contexts just don't produce a midi track. I thought I found the problem when I saw \set Staff.midiInstrument = "church organ". I thought may be it should be \set VaticanaStaff.midiInstrument ... but that wasn't the problem.
  • Couldn't find info by googling and on the mailing list.
  • Tried a separate score section to generate the midi - this separate score uses normal staff context rather than Vaticana, and does not produce a visual layout. See above alternative code. What do you think? May be there's a better way - will keep looking.

Comment stygiania 23:12, 26 May 2007 (PDT)

  • Alternate code midi plays on the nasty ol' laptop. Doing this is similar to having to do a separate score to unfold repeats for midis and it doesn't bloat the code badly, using this method makes sense.
- Looks good to me; well fixed! In the meantime, I'll try incorporating your fix into 24b. Regards, -- Camilla 23:43, 26 May 2007 (PDT)

QMacrocarpa 14:24, 28 May 2007 (PDT)

  • I see everything twice! In my PDF the line of plainsong notation is immediately followed by another line of identical plainsong notation, but this time, the staff is red. At first I thought this was a color-coded font-o-vision effect, but it isn't-- I get this even if I compile the code straight from the wiki, without running it through the color-coding script. What's up?
  • We might need a larger top margin. Viewed with GhostView in Letter mode, the top of the plainsong clef is cut off. jkenny's working on figuring out trans-Atlantic margin issues, so maybe he can suggest a good setting.
  • Is there still something odd about the MIDI? When I run my color-coding script, it automatically launches the new MIDI and PDF at the end, and the MIDI plays fine at that point, but if I then go and try to play it again with the "timidity" program, I don't hear anything.
  • Notes and words look great!

Notes by Jkenny 19:21, 28 May 2007 (PDT)

  • That's very strange. The only clue I have is that red is the original colour of the vaticana staff which we have reset to black. I have pasted in a revised code. This code is exactly the same as the one in 24b except that the notes are different (and a paper block--see below), everything else is the same (I just pasted in the new notes over a copy of 24b.)
  • Since you didn't have a problem with 24b, you should not have a problem now. Hopefully. Please test.
  • I added a paper block and adjusted head-separation to achieve about 28mm of space between paper top edge and the staff. This is approximately the space between the top edge and the THEME of other pieces. This piece doesn't have the THEME/TITLE fields which would normally do the spacing.
  • I figure that 28mm (the normal for the first page) and 25mm space at the top should be enough for letter size. Since letter size is 18mm shorter than A4, in the worse case, we should still have 25 minus 18 or 7mm of clearance. Again, please test.
- Don't have Ghostview (will see if I can install it for testing purposes); PDF looks OK here, but that's not much help is it? :-) Fingers crossed! --Camilla 05:11, 29 May 2007 (PDT)

QMacrocarpa 05:50, 29 May 2007 (PDT)

  • The fixes have solved my problems! Looks good! :)

stygiania 21:27, 29 May 2007 (PDT)

  • Just suppress the tagline and I think this one will be done.
    • Oh, so that's what that line does. :-) Done, C.

Lily3 cleared, files uploaded stygiania 16:39, 31 May 2007 (PDT)

Record of Work

    • Lily 1 - done by stygiania 18:29, 20 May 2007 (PDT) (simple text + lyrics)
    • Lily 2 - code posted: comments please... Camilla 11:33, 25 May 2007 (PDT)
    • Lily 3 - comments added, but need more opinions. Jkenny 20:28, 25 May 2007 (PDT)
- more comments added. stygiania 21:17, 25 May 2007 (PDT)
- fixed, just need some input re midi. TIA--Camilla 01:56, 26 May 2007 (PDT)
- fix for midi suggested. Jkenny 21:25, 26 May 2007 (PDT)
- Ooh, I like the midi fix! stygiania 23:12, 26 May 2007 (PDT)
- Ooh too! Let's cut out first version and put yours in instead. -- Camilla 00:30, 27 May 2007 (PDT)
- Few more comments QMacrocarpa 14:25, 28 May 2007 (PDT)
- some diagnostics of Q's problems Jkenny 19:23, 28 May 2007 (PDT)
- Looks good! QMacrocarpa 05:51, 29 May 2007 (PDT)
- Last quibble stygiania 21:27, 29 May 2007 (PDT)
- And then there were none... Done. Thanks everybody!
Lily3 cleared, files uploaded stygiania 16:40, 31 May 2007 (PDT)