Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Annotating score with lilypond

Tags:

lilypond

I'm using lilypond (2.12.3-1, on mac) and latex to write a short summary on music theory. Therefore I need to annotate a simple scale like in this example picture (I don't need the red squares):

example annotated scale

The only thing I found were the analysis brackets (http://lsr.dsi.unimi.it/LSR/Item?id=426), but they didn't work; I'm getting compile errors.

So I would be very happy to get some working solutions, any ideas?

like image 379
Masala Avatar asked Mar 28 '26 19:03

Masala


1 Answers

The following:

\layout {
  \context {
    \Voice
    \consists "Horizontal_bracket_engraver"
  }
}

\version "2.12.3" \relative c' {

  c1 \startGroup 
  d1 _\markup { \left-align { "1. Tetrachord" } } 
     \once \override HorizontalBracket #'direction = #UP
  e1 \startGroup ^\markup { \left-align { "HS" } } 
  f1 \stopGroup \stopGroup

  g1 \startGroup 
  a1 _\markup { \left-align { "2. Tetrachord" } } 
     \once \override HorizontalBracket #'direction = #UP
  b1 \startGroup ^\markup { \left-align { "HS" } } 
  c1 \stopGroup \stopGroup

}

produces:

enter image description here

HTH

like image 63
Bart Kiers Avatar answered Mar 31 '26 09:03

Bart Kiers



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!