4

I am trying to use LilyPond to transcribe chanted music using mostly modern notation.

I've read http://lilypond.org/doc/v2.18/Documentation/learning/gregorian-transcription-template, which was quite helpful, but I can't figure out how to draw the solid rectangle to use for a reciting note, as in the photograph below.

Can anyone point me toward how I would draw a rectangle at a particular pitch to indicate a reciting tone in LilyPond?

chant notation

4

Here's an ugly workaround, based off of this answer on the LilyPond listserv.

\version "2.19.63"

headLine = {
  \once \override NoteHead  #'stencil = #ly:text-interface::print
  \once \hide Stem
  \once \override NoteHead #'text = #(markup #:lower 0.5 ( #:concat (
    #:musicglyph "rests.M1" #:musicglyph "rests.M1" #:musicglyph "rests.M1"
    #:musicglyph "rests.M1" #:musicglyph "rests.M1" #:musicglyph "rests.M1"
    #:musicglyph "rests.M1" #:musicglyph "rests.M1" #:musicglyph "rests.M1" ) ) )
}

{
   e'4 g'4
   \headLine
   a'4
}

enter image description here

Note that #:lower was necessary since the given musicglyph is higher than expected; without this parameter, inputting a' results in the rests being placed at b'!


EDIT: Here's an alternative, much cleaner approach:

\version "2.19.63"

headLine = {
  \once \override NoteHead  #'stencil = #ly:text-interface::print
  \once \hide Stem
  \once \override NoteHead.text = \markup { \lower #0.5
    \filled-box #'(0 . 6) #'(0 . 1) #0 } %% adjust x distance of 6 as necessary
}

{
   e'4 g'4
   \headLine
   a'4
}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.