[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SOLVED] Re: Y-coordinates don't work in offset function
From: |
Graham Percival |
Subject: |
Re: [SOLVED] Re: Y-coordinates don't work in offset function |
Date: |
Fri, 11 Jul 2008 04:16:56 -0700 |
a) if this is inside the inspirational header, do whatever you
want.
b) if this is inside a snippet, do whatever you want, subject to
it making sense to people on -user.
c) if this is inside the main text, I'll actually go and read the
below discussion (which I've totally ignored), but I suspect that
I'd just end up saying "this belongs as a snippet instead of the
main text, so see point b)".
HTH,
- Graham
On Fri, 11 Jul 2008 06:10:52 -0500
Jonathan Kulp <address@hidden> wrote:
> Many thanks, Trevor and Gilles!! Both of those solutions work
> perfectly. Now the question is which one uses the syntax that would
> be most appropriate to appear in the GDP docs. My instinct is to use
> the one with #'(0.0 . 0.0) for the coordinates, since this is how
> I've seen X-Y coordinates specified most often. Graham, do you have
> a preference?
>
> Thanks again!
>
> Jon
>
> Trevor Daniels wrote:
> > 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
> >>
> >
> >
>
> --
> Jonathan Kulp
> http://www.jonathankulp.com
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user