[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Straight-Slurs
From: |
Phil Raynaud |
Subject: |
Re: Straight-Slurs |
Date: |
Sat, 13 Oct 2007 21:28:25 +0000 (UTC) |
User-agent: |
Loom/3.14 (http://gmane.org/) |
>
Hi David,
I may have an answer to your question:
Just test this example, it does'nt need much explanation
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.11.34"
\paper {
#(set-paper-size "a4")
%#(set-paper-size "letter")
line-width = 184\mm
#(ly:set-option 'point-and-click #f)
}
%%%%%%%%%%%%%%%%%%%% DEFINITIONS
SLURHLIM = #(define-music-function (parser location beg-end) (number?)
#{ \once \override Slur #'height-limit = #$beg-end #})
SLURPOS = #(define-music-function (parser location beg-end) (pair?)
#{ \once \override Slur #'positions = #$beg-end #})
SLUREXO = #(define-music-function (parser location beg-end) (pair?)
#{ \once \override Slur #'extra-offset = #$beg-end #})
%%%%%%%%%%%%%%%%%%%% END DEFINITIONS
piano = \relative c'' {
\clef treble
<c g'>1( <c f>1)
\SLURHLIM #'0.0 <c g'>1( <c f>1)
\SLURPOS #'(0 . 3.5) \SLURHLIM #'0.0 <c g'>1( <c f>1)
\SLUREXO #'( 0 . 2) \SLURPOS #'(0 . 3.5) \SLURHLIM #'0.0 <c g'>1( <c f>1)
}
\score {
\new Staff = "up" \piano
\layout { }
}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
I'd better use identifiers, so I have just to adapt the values.
The first slur is normal.
The second is flat : this is the result of "height-limit" set to (0 . 0)
But it is inclined: this is to correct with "positions" : a positive value
takes it away from the note, at left (left value) or at right (right value).
If you think it is too close to the notes, then use "extra-offset"
to correct it: but there the left value means to the right (positive)
or to the left (negative), and you have just to use the second value:
positive means higher, negative lower.
When the slur is down the note it is the same but down:
it is always the distance of the slur from the note.
David Bobroff <bobroff <at> centrum.is> writes:
>
> pounderd <at> lineone.net wrote:
> > Hi,
> >
> > Is there a way to slur two notes with a straight line, as is often
> > seen in Scottish fiddle music? I can make them go up, go down, even go
> > dotted - but can't see how to get a straight slur.
> >
> > Would be grateful for any pointers to the part of the manual I've
> > missed.
>
> Try section 6.6.6 Glissandos. Maybe that's what you're after.
>
> -David
>