Re: Y-coordinates don't work in offset function

2008-07-11 Thread Gilles THIBAULT



I couldn't figure out how
to use extra-offset in the function (I'm very new at this, 
clearly...).




Not so easy with extra-offset indeed, because the syntax
   #'extra-offset = #'($offsetX  $offsetY ) doen't work .
(don't know why !?!)
It seems to  work with the cons syntax


%%
fingerOffset = #(define-music-function (parser location offsetX offsetY) 
(number? number?)

  #{
\once \override Voice.Fingering #'extra-offset = #(cons $offsetX 
$offsetY )

  #})


\relative c''' {
   \override Fingering #'staff-padding = #'()
   \set fingeringOrientations = #'(down)
\fingerOffset #0.7 #-3.5
  c-44
\fingerOffset #'0.7 #'0.0
  g-3
\fingerOffset #'0.7 #'3.0
  d-22
}
 




___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Y-coordinates don't work in offset function

2008-07-11 Thread Trevor Daniels

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-44
\fingerOffset #'(0.7 . 0.0)
  g-3
\fingerOffset #'(0.7 . 3.0)
  d-22
}
- Original Message - 
From: Jonathan Kulp [EMAIL PROTECTED]

To: lilypond-user@gnu.org
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-44
\fingerOffset #'0.7 #'0.0
  g-3
\fingerOffset #'0.7 #'3.0
  d-22
}



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user





___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


[SOLVED] Re: Y-coordinates don't work in offset function

2008-07-11 Thread Jonathan Kulp
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-44
\fingerOffset #'(0.7 . 0.0)
  g-3
\fingerOffset #'(0.7 . 3.0)
  d-22
}
- Original Message - From: Jonathan Kulp [EMAIL PROTECTED]
To: lilypond-user@gnu.org
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-44
\fingerOffset #'0.7 #'0.0
  g-3
\fingerOffset #'0.7 #'3.0
  d-22
}



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user






--
Jonathan Kulp
http://www.jonathankulp.com


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: [SOLVED] Re: Y-coordinates don't work in offset function

2008-07-11 Thread Graham Percival
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 [EMAIL PROTECTED] 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-44
  \fingerOffset #'(0.7 . 0.0)
g-3
  \fingerOffset #'(0.7 . 3.0)
d-22
  }
  - Original Message - From: Jonathan Kulp
  [EMAIL PROTECTED] To: lilypond-user@gnu.org
  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-44
  \fingerOffset #'0.7 #'0.0
g-3
  \fingerOffset #'0.7 #'3.0
d-22
  }
  
 
 
  ___
  lilypond-user mailing list
  lilypond-user@gnu.org
  http://lists.gnu.org/mailman/listinfo/lilypond-user
 
  
  
 
 -- 
 Jonathan Kulp
 http://www.jonathankulp.com
 
 
 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 http://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Y-coordinates don't work in offset function

2008-07-10 Thread Jonathan Kulp

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-44
\fingerOffset #'0.7 #'0.0
  g-3
\fingerOffset #'0.7 #'3.0
  d-22
}



___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user