lilypond-user
[Top][All Lists]
Advanced

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

Re: Glissando to a rest


From: Mats Bengtsson
Subject: Re: Glissando to a rest
Date: Sun, 05 May 2013 22:26:00 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130329 Thunderbird/17.0.5


On 05/05/2013 12:01 AM, address@hidden wrote:
This should work. You just have to make sure the space between the two notes
isn't too tight or the glissando won't print. In this case it happens if you
omit the \break.

\relative c''
{
   es4*1/2->\glissando
   \hideNotes
   es,
   \unHideNotes
   r4 r2 | \break
   es1
}
Here are two more alternatives where you don't have to play any tricks with the durations (the settings for Glissando are to ensure that the resulting glissando gets sufficient horizontal width, otherwise LilyPond complains that the right edge comes before the left edge and doesn't typeset the glissando at all, at least not in this example. The idea comes from http://lsr.dsi.unimi.it/LSR/Item?id=826).

\relative c''
\new Voice {
  \override Glissando #'minimum-length = #4
  \override Glissando #'springs-and-rods =
                          #ly:spanner::set-spacing-rods
  es4->\glissando
  \grace{\hideNotes
  es,
  \unHideNotes}
  r4 r2 |
  es1
}

\relative c''
\new Staff {
  \override Glissando #'minimum-length = #4
  \override Glissando #'springs-and-rods =
                          #ly:spanner::set-spacing-rods
  es4->\glissando

  << {\hideNotes
  es,
  \unHideNotes} \new Voice b' \rest>> r2 |
  es,1
}

   /Mats

--
=============================================
        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.ee.kth.se/~mabe
=============================================




reply via email to

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