I use 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, as in this example (I do not need red squares):

The only thing I found was the brackets for analysis ( http://lsr.dsi.unimi.it/LSR/Item?id=426 ), but they did not work; I get compilation errors.
So, I would be very happy to get some working solutions, any ideas?
source
share