[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Y-coordinates don't work in offset function
From: |
Jonathan Kulp |
Subject: |
Y-coordinates don't work in offset function |
Date: |
Thu, 10 Jul 2008 23:33:22 -0500 |
User-agent: |
Thunderbird 2.0.0.14 (X11/20080505) |
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
}
%%%%
- Y-coordinates don't work in offset function,
Jonathan Kulp <=