Jonathan
Try
\version "2.11.51"
fingerOffset =
#(define-music-function (parser location offsets) (pair?)
#{
\once \override Fingering #'extra-offset = #$offsets
#})
% \fingerOffset #'-0.2 #'-0.3 % moves fingering .2 spaces left and .3 down
\relative c''' {
\override Fingering #'staff-padding = #'()
\set fingeringOrientations = #'(down)
\fingerOffset #'(0.7 . -3.5)
%\once \override Fingering
% #'extra-offset = #'(0.7 . -0.6)
<c-4>4
\fingerOffset #'(0.7 . 0.0)
<g-3>
\fingerOffset #'(0.7 . 3.0)
<d-2>2
}
----- Original Message ----- From: "Jonathan Kulp" <address@hidden>
To: <address@hidden>
Sent: Friday, July 11, 2008 5:33 AM
Subject: Y-coordinates don't work in offset function
Dear Lilyponders,
I'm working on a snippet of guitar music for use as "Inspirational
Headword" of the fretted strings section of GDP. The default
placement of fingerings is not very good, so I'm placing them manually
but have tried to create a function to help me. The function is
supposed to allow me to specify X and Y offset for each fingering.
The problem is that the Y offset doesn't work. The X offset works
just fine, and it's very close to what I want, but it would really
help to get vertical fine-tuning as well.
I've been searching the documentation and experimenting for two hours
with no luck. A minimal example appears below, including my function
(probably where the problem lies). I've commented out a tweak that
does what I want using extra-offset adjustment, but I couldn't figure
out how to use extra-offset in the function (I'm very new at this,
clearly...).
If anyone can point out my error and a solution I'd be most grateful.
Best,
Jonathan
--
Jonathan Kulp
http://www.jonathankulp.com
%%%%
\version "2.11.51"
fingerOffset =
#(define-music-function (parser location offsetX offsetY) (number?
number?)
#{
\once \override Fingering #'X-offset = $offsetX
\once \override Fingering #'Y-offset = $offsetY
#})
% \fingerOffset #'-0.2 #'-0.3 % moves fingering .2 spaces left and .3
down
\relative c''' {
\override Fingering #'staff-padding = #'()
\set fingeringOrientations = #'(down)
\fingerOffset #0.7 #-3.5
%\once \override Fingering
% #'extra-offset = #'(0.7 . -0.6)
<c-4>4
\fingerOffset #'0.7 #'0.0
<g-3>
\fingerOffset #'0.7 #'3.0
<d-2>2
}
%%%%
_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user