lilypond-user
[Top][All Lists]
Advanced

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

Re: Slurs in lyrics


From: Mats Bengtsson
Subject: Re: Slurs in lyrics
Date: Tue, 27 Jan 2009 20:19:56 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090105)



Chris Snyder wrote:
Hi Mats,

Your solution works exceptionally well. The only issue I've had is
aligning the slurs with the ends and beginning of words (rather than the
center, where the hidden noteheads are). I can tweak this using
\override NoteHead #'X-offset commands.
At least if you attach your lyrics to some typeset line of notes,
it might be easier to set the alignment of the syllables, since
then the hidden note heads that the slurs are attached to,
will align with the corresponding note heads in the music.
Below, you can find an example.
Hmmm, at second thought, you probably don't want that
weird alignment of the syllables to the note heads, so it
wasn't such a bright solution.

\version "2.12.0"
\layout{
\context {
  \Lyrics
  \consists "Note_heads_engraver"
  \consists "Slur_engraver"
  \consists "Rhythmic_column_engraver"
  \consists "Pitch_squash_engraver"
  \override NoteHead #'transparent = ##t
  squashedPosition = #2
  % For slurs above the text, use the following line
%    \override Slur #'direction = #UP
}
}

% Shorthands:
rr = \override LyricText #'self-alignment-X = #RIGHT
ll = \override LyricText #'self-alignment-X = #LEFT

\score{
<<
\new Voice = v \relative c' {c d e f }
\new Lyrics <<
% The actual lyrics:
\lyricsto v \lyricmode{ Here's the \ll ly -- \rr rics }
% The slurs, attached to dummy notes
{ c2 c4 ( c ) }
>>
>>
}

   /Mats
Thanks so much for the tip! I'll put together a snippet for the LSR when
I get a chance.

-Chris

Mats Bengtsson wrote:
Here's one possibility. Since you can redefine contexts, you can add the
slur engraver to the Lyrics
context. However, it turns out that slurs need to be attached to note
heads, so there are a couple of
other engravers that have to be added as well. Then, you can add the
slurs attached to a line of
dummy notes.

\version "2.12.0"
\layout{
 \context {
   \Lyrics
   \consists "Note_heads_engraver"
   \consists "Slur_engraver"
   \consists "Rhythmic_column_engraver"
   \consists "Pitch_squash_engraver"
   \override NoteHead #'transparent = ##t
   squashedPosition = #2
   % For slurs above the text, use the following line
%    \override Slur #'direction = #UP
 }
}


\new Lyrics <<
 % The actual lyrics:
 \lyricmode{ Here's the ly -- rics }
 % The slurs, attached to dummy notes
 { c2 c4 ( c ) }
/Mats

Chris Snyder wrote:
I'm engraving a piece where I'd like to put dotted slurs directly in the
lyrics to instruct the singers to carry the note. I know there are other
ways to indicate this (such as dotted slurs over the notes, which is
what I've settled with currently), but I'd like to put the slurs over
the lyrics if possible.

Does anyone know of a way to do this? My hunch is that there isn't a way
to do it without modifying the code, but I figured I'd check first.
Thanks.

-Chris


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



--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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