I am translating a guitar part into lilypond. The string numbers (the ones that show up inside a circle) are showing up on top of the staff.

what it looks like in lilypond

Is it possible to force lilypond to write them under the staff.... or next to the note head?

what I am aiming for

2 Answers 2


In order to place the string numbers below the notes use

\set stringNumberOrientations = #'(down)

See String number indications in the Lilypond Notation Reference.

It's also possible to set the number to the right or left of a note. For more information, see Fingering instructions, specifically the fingeringOrientations property.


If you want to get the string numbers to the right of the note heads use \set stringNumberOrientations = #'(right). This only works for notes in a chord event though, so instead of doing a2\0 you’d need to do <a\0>2.

Side note: Your excerpt strongly looks like Tárrega’s Recuerdos de la Alhambra, am I correct? I did type this thing into LilyPond some time ago (although it is missing some cleaning and formatting) because I prepared some notes for playing this on electric bass: https://petzel.at/TARREGA.pdf

  • that link doesn't seem to work when I click on it for some reason Aug 15 at 16:23
  • @ElementsinSpace That is a bit strange, on my end it works. From what I’ve seen you’ve changed the link to https, which did not work, as I did not have an SSL certificated issued for this domain (due to there not really being a reason to do so). I’ve now added a certificate, so you might try again with https.
    – Lazy
    Aug 15 at 18:49
  • it did work for me with http.... and yes, it is Recuerdos. Do you have the lilypond file hosted somewhere? I guess that you could send it over (the PDF) to imslp, if you don't mind.
    – eftshift0
    Aug 15 at 19:03
  • I am considering (not seriously yet.... but the thought has crossed my mind, at least) to sit down to hack lilypond to have a classical guitar mode so not to have to write so many quirks to get what we want.... well, I am not there yet in terms of getting what I want but still.
    – eftshift0
    Aug 15 at 19:06
  • The link's working now Aug 16 at 0:02

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.