Creating slurs across voices: Difference between revisions
Appearance
Import snippet from LSR |
mNo edit summary |
||
| (4 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
In some situations | In some situations it is necessary to create slurs between notes from different voices. The solution is to add invisible notes to one of the voices, using <code>\hideNotes</code>. | ||
This example is measure 235 of the Ciaconna from | This example is measure 235 of the Ciaconna from Bach’s second partita for solo violin, BWV 1004. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
\relative c' { | \relative c' { | ||
<< | << | ||
| Line 33: | Line 33: | ||
[[Category:Real music]] | [[Category:Real music]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 12:18, 9 December 2025
In some situations it is 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 second 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)
}
>>
}