]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/quoting-another-voice.ly
New upstream version 2.19.65
[lilypond.git] / Documentation / snippets / new / quoting-another-voice.ly
diff --git a/Documentation/snippets/new/quoting-another-voice.ly b/Documentation/snippets/new/quoting-another-voice.ly
new file mode 100644 (file)
index 0000000..1eece94
--- /dev/null
@@ -0,0 +1,54 @@
+\version "2.19.56"
+
+\header {
+  lsrtags = "staff-notation"
+
+  texidoc = "
+The @code{quotedEventTypes} property determines the music event types
+which should be quoted.  The default value is @code{(note-event
+rest-event tie-event beam-event tuplet-span-event)}, which means that
+only the notes, rests, ties, beams and tuplets of the quoted voice will
+appear in the @code{\\quoteDuring} expression. In the following
+example, a 16th rest is not quoted since @code{rest-event} is not in
+@code{quotedEventTypes}.
+
+For a list of event types, consult the @qq{Music classes} section of
+the Internals Reference.
+
+"
+  doctitle = "Quoting another voice"
+} % begin verbatim
+
+quoteMe = \relative c' {
+  fis4 r16 a8.-> b4\ff c
+}
+\addQuote quoteMe \quoteMe
+
+original = \relative c'' {
+  c8 d s2
+  \once \override NoteColumn.ignore-collision = ##t
+  es8 gis8
+}
+
+<<
+  \new Staff \with { instrumentName = "quoteMe" }
+  \quoteMe
+
+  \new Staff \with { instrumentName = "orig" }
+  \original
+
+  \new Staff \with {
+    instrumentName = "orig+quote"
+    quotedEventTypes = #'(note-event articulation-event)
+  }
+  \relative c''
+  <<
+    \original
+    \new Voice {
+      s4
+      \set fontSize = #-4
+      \override Stem.length-fraction = #(magstep -4)
+      \quoteDuring #"quoteMe" { \skip 2. }
+    }
+  >>
+>>