Jump to content

Creating slurs across voices: 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:
This example is measure 235 of the Ciaconna from Bach's 2nd Partita for solo violin, BWV 1004.
This example is measure 235 of the Ciaconna from Bach's 2nd Partita for solo violin, BWV 1004.


<lilypond version="2.24.0">
<lilypond version="2.24">
\relative c' {
\relative c' {
   <<
   <<

Revision as of 18:56, 16 November 2025

In some situations, it may be necessary to create slurs between notes from different voices. The solution is to add invisible notes to one of the voices, using \hideNotes.

This example is measure 235 of the Ciaconna from Bach's 2nd Partita for solo violin, BWV 1004.

\version "2.24"

\relative c' {
  <<
    {
      d16( a') s a s a[ s a] s a[ s a]
    }
    \\
    {
      \slurUp
      bes,16[ s e](
      \hideNotes a)
      \unHideNotes f[(
      \hideNotes a)
      \unHideNotes fis](
      \hideNotes a)
      \unHideNotes g[(
      \hideNotes a)
      \unHideNotes gis](
      \hideNotes a)
    }
  >>
}