\version "2.11.32" \header { title = "Hear, O Israel (the Shema)" subtitle = "Deuteronomy 6:4-9" tagline = \markup { \fill-line { "License: Creative Commons Attribution 2.5" "Reactor Core Hymn Repository" \with-url #"http://hymns.reactor-core.org/" "http://hymns.reactor-core.org/" } } } #(set-global-staff-size 18) #(set-default-paper-size "letter" 'portrait) increaseBarNumber = \applyContext #(lambda (x) (let ((measurepos (ly:context-property x 'measurePosition))) ; Only increase bar number if not at start of measure. ; This way we ensure that you won't increase bar number twice ; if two parallel voices call increaseBarNumber simultanously: (if (< 0 (ly:moment-main-numerator measurepos)) ; ugh. ignore grace part (begin (ly:context-set-property! (ly:context-property-where-defined x 'internalBarNumber) 'internalBarNumber (1+ (ly:context-property x 'internalBarNumber))) (ly:context-set-property! (ly:context-property-where-defined x 'currentBarNumber) 'currentBarNumber (1+ (ly:context-property x 'currentBarNumber))) ; set main part of measurepos to zero, leave grace part as it is: (ly:context-set-property! (ly:context-property-where-defined x 'measurePosition) 'measurePosition (ly:make-moment 0 1 (ly:moment-grace-numerator measurepos) (ly:moment-grace-denominator measurepos))))))) hardbar = { \bar "|" \increaseBarNumber } \score { \new Staff << \new Voice = "shema" { \key d \minor \clef treble \relative g' { \cadenzaOn d8 \hardbar fis fis fis g r g g \hardbar ees ees ees fis4 fis8 fis ees ees d r4 d8 \hardbar a'4 g16 (a fis8) fis fis a a4 \hardbar g r8 g g g \hardbar d (ees) ees ees ees ees ( \hardbar fis) fis fis fis fis \hardbar d4 r d4 fis16 (d fis8) d4 ( \hardbar a'8) a8. (g16 a8) a ( \hardbar bes16 a d,8) d bes bes bes (c) c fis fis fis fis \hardbar d4 r d8 d d \hardbar a' a a g (a) a a a ( \hardbar fis) g g g g \hardbar bes bes4 c8 b16 (c) bes8 bes bes \hardbar a a g (a) a a a \hardbar fis fis fis d d r4 d8 d \hardbar ees ees fis fis fis g4 r8 g g ees ees d d (fis) ees ees \hardbar d4 r d8 d \hardbar c8 c c c ees ees \hardbar fis fis fis fis fis \hardbar d4 \bar "|." \cadenzaOff } } \new Lyrics \lyricsto "shema" { % verse 4 Hear, O Is -- ra -- el! Ye -- ho -- wah is our God, Ye -- ho -- wah a -- lone. % verse 5 You shall love Ye -- ho -- wah your God with all your heart, with all your soul, and with all your might. % verse 6 And these words here which I com -- mand you this day'll be in your heart. % verse 7 You'll re -- peat them to your children; you shall say them when you're at rest in your house, or walk -- ing a -- broad, as you lie down and as you rise up. % verse 8 Fast -- en them as signs in your hands; they'll be as a front -- let 'tween your eyes. % verse 9 And write them on the door -- posts of your house and on your gates. } >> \layout { \context { \Score \remove "Bar_number_engraver" } \context { \Staff \remove "Time_signature_engraver" } \context { \ChoirStaff \accepts "Lyrics" } \context { \Lyrics \override LyricSpace #'minimum-distance = #1.2 \override LyricText #'self-alignment-X = #LEFT \consists "Bar_engraver" \consists "Separating_line_group_engraver" \override BarLine #'transparent = ##t } } \midi { \context { \Score tempoWholesPerMinute = #(ly:make-moment 60 4) } \context { \Staff midiInstrument = #"acoustic grand" } } }