lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: glissando between two notes not joint


From: Trevor Daniels
Subject: Re: glissando between two notes not joint
Date: Sat, 3 Apr 2010 15:36:47 +0100

Hi Eluze

I was thinking of something like this, which works
as long as the fingering is directly above the note:

{
 \once \override Glissando #'(bound-details left Y) = #4
 \once \override Glissando #'(bound-details right Y) = #5.3
 g''2-1 \glissando <<{s} \\ {e''}>> b''-1
}

It might need a bit more fiddling with voices and hidden
notes if you really need chord-based fingering though.
Padding can be adjusted if you want to change the distance
of the end points from the fingering.

Trevor

----- Original Message ----- From: "-Eluze" <address@hidden>
To: <address@hidden>
Sent: Saturday, April 03, 2010 2:07 PM
Subject: Re: glissando between two notes not joint




Trevor Daniels wrote:


There's a fair bit on fiddling with glissando lines in Section
5.4.6 of the Notation Reference under Using the line spanner
interface.  If you've not seen this maybe it will help.


thanks Trevor!

i had read it before and reread it now - and still i feel a bit
uncomfortable when using textSpanners for this purpose.

to illsutrate what i meant i have added the code of the various steps i went
thru:


\version "2.13.16"

% i have added a parameter - padleft - to simplify coding:

gliss = #(define-music-function (parser location shift pad padleft) (pair?
number? number?) #{
 \once \override TextSpanner #'style = #'line
\once \override TextSpanner #'bound-details #'left #'padding = #$padleft \once \override TextSpanner #'bound-details #'right #'padding = #1
 \once \override TextSpanner #'extra-offset = #$shift
 \override TextSpanner #'(bound-details right Y) = #$pad
 \once \override TextSpanner #'bound-details #'right #'text = #'()
#})

{\gliss #'(0 . -2 ) #'1.0 #'1.0 <g''-1>2 \startTextSpan e'' <b''-1>
\stopTextSpan}

% now shift with extra-offset vertically up by -1 to have the glissando on
the fingering height

{\gliss #'(0 . -1.0) #'1.0 #'1.0 <g''-1>2 \startTextSpan e'' <b''-1>
\stopTextSpan}
% this works - but the left padding is to small

% augment the left padding to 1.1
{\gliss #'(0 . -1.0) #'1.0 #'1.1 <g''-1>2 \startTextSpan e'' <b''-1>
\stopTextSpan}
% this is still to near to the fingering indication

% augment the left padding to 1.4
{\gliss #'(0 . -1.0) #'1.0 #'1.4 <g''-1>2 \startTextSpan e'' <b''-1>
\stopTextSpan}
% the text spanner falls down between the notes!

% does it help to change the extra-offset now? note that it has to be raised
now!
{\gliss #'(0 . .5) #'1.0 #'1.4 <g''-1>2 \startTextSpan e'' <b''-1>
\stopTextSpan}
% i found that .5 looks good - although i had expected a value of approx. 1
(staff spaces?!) to fit.

could this be achieved in a simpler way?


--
View this message in context: http://old.nabble.com/glissando-between-two-notes-not-joint-tp28051494p28126795.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.



_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user








reply via email to

[Prev in Thread] Current Thread [Next in Thread]