On 07/10/12 11:07, David Nalesnik wrote: > Hi pabuhr, > > On Sat, Oct 6, 2012 at 5:21 PM, pabuhr <pab...@fastmail.fm> wrote: > > [...] > >> Below is my attempt at a guide finger (which I'm sure you saw a few months >> ago). > http://www.mail-archive.com/lilypond-user@gnu.org/msg73509.html > > [...] > >> The problem with my >> version is that the combined guide/finger-number are centred above/below the >> note. I don't know how to get the finger number centred above the note (i.e., >> right justify the entire glyph); any help would be appreciated. I did try >> ly:stencil-aligned-to but no change in the output. > I've attached a possible solution to the problem. I haven't tried it > out beyond your example, but I hope it will prove useful.
Thanks, that's very useful. I added three functions to your code which which take just the slope as parameter and default to using either hyphen, en dash, and em dash, to cater for different degrees of tightness of note spacing: % guide hyphen % <c-\ghy #-15 -1>4 c4^\ghy #45 ^2 c4-\ghy #-15 -3 c4_\ghy# -14 _4 ghy = #(define-music-function (parser location slope fingering) (number? ly:music?) (gx slope #x2010 fingering)) % guide en dash % <c-\gen #-15 -1>4 c4^\gen #45 ^2 c4-\gen #-15 -3 c4_\gen# -14 _4 gen = #(define-music-function (parser location slope fingering) (number? ly:music?) (gx slope #x2013 fingering)) % guide em dash % <c-\gem #-15 -1>4 c4^\gem #45 ^2 c4-\gem #-15 -3 c4_\gem# -14 _4 gem = #(define-music-function (parser location slope fingering) (number? ly:music?) (gx slope #x2014 fingering)) I also tried two-em and three-em dashes (unicode values 0x2E3A and 0x2E3B, see http://www.unicode.org/charts/PDF/U2E00.pdf), but they're not in the emmentaler font; when I put them in a function the console spits out: Preprocessing graphical objects... programming error: FT_Get_Glyph_Name () error: invalid argument continuing, cross fingers programming error: Glyph has no name, but font supports glyph naming. Skipping glyph U+10002E3A, file /usr/local/lilypond/usr/share/lilypond/current/fonts/otf/emmentaler-18.otf Nick <http://www.unicode.org/charts/PDF/U2E00.pdf>
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user