]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/creating-slurs-across-voices.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / creating-slurs-across-voices.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "connecting-notes, expressive-marks, keyboards, real-music, unfretted-strings"
11
12   texidoc = "
13 In some situations, it may be necessary to create slurs between notes
14 from different voices.
15
16 The solution is to add invisible notes to one of the voices, using
17 @code{\\hideNotes}.
18
19 This example is measure 235 of the Ciaconna from Bach's 2nd Partita for
20 solo violin, BWV 1004.
21
22 "
23   doctitle = "Creating slurs across voices"
24 } % begin verbatim
25
26 \relative c' {
27   <<
28     {
29       d16( a') s a s a[ s a] s a[ s a]
30     }
31     \\
32     {
33       \slurUp
34       bes,16[ s e](
35       \hideNotes a)
36       \unHideNotes f[(
37       \hideNotes a)
38       \unHideNotes fis](
39       \hideNotes a)
40       \unHideNotes g[(
41       \hideNotes a)
42       \unHideNotes gis](
43       \hideNotes a)
44     }
45   >>
46 }