Jump to content

Glissando: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 3: Line 3:
The engraver does no time-keeping, so it involves some trickery to get <code>&lt;&lt; { s8 s8 s4 } { c4 \gliss d4 } &gt;&gt;</code> working correctly.
The engraver does no time-keeping, so it involves some trickery to get <code>&lt;&lt; { s8 s8 s4 } { c4 \gliss d4 } &gt;&gt;</code> working correctly.


<lilypond version="2.24.0" full>
<lilypond version="2.24" full>
%% http://lsr.di.unimi.it/LSR/Item?id=215
%% http://lsr.di.unimi.it/LSR/Item?id=215



Revision as of 18:52, 16 November 2025

Between notes, there may be simple glissando lines. Here, the first two glissandi are not consecutive.

The engraver does no time-keeping, so it involves some trickery to get << { s8 s8 s4 } { c4 \gliss d4 } >> working correctly.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=215

\paper { tagline = ##f }

%here starts the snippet:

\layout{
  line-width = 50\mm
  indent = 0
}

\new Staff 
\relative c''{
  \override Glissando.breakable = ##t
  %% gliss non gliss and 
  c4 \glissando d e \glissando f \glissando 
  \break
  %% consecutive 
  c \glissando d, \glissando e'
  << 
    { \stemUp e8 \glissando g8 }
    \context Voice = VB 
    {\stemDown \repeat unfold 4 d16 } 
  >>
  \override Glissando.style = #'zigzag
  c4 \glissando c,, \glissando c' \glissando d
  \break
  \override Glissando.style = #'trill
  c4 \glissando c,, \glissando c' \glissando d
}