]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/quoting-another-voice.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / quoting-another-voice.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.19.56
8 \version "2.19.56"
9
10 \header {
11   lsrtags = "staff-notation"
12
13   texidoc = "
14 The @code{quotedEventTypes} property determines the music event types
15 which should be quoted.  The default value is @code{(note-event
16 rest-event tie-event beam-event tuplet-span-event)}, which means that
17 only the notes, rests, ties, beams and tuplets of the quoted voice will
18 appear in the @code{\\quoteDuring} expression. In the following
19 example, a 16th rest is not quoted since @code{rest-event} is not in
20 @code{quotedEventTypes}.
21
22 For a list of event types, consult the @qq{Music classes} section of
23 the Internals Reference.
24
25 "
26   doctitle = "Quoting another voice"
27 } % begin verbatim
28
29 quoteMe = \relative c' {
30   fis4 r16 a8.-> b4\ff c
31 } % begin verbatim
32
33 \addQuote quoteMe \quoteMe
34
35 original = \relative c'' {
36   c8 d s2
37   \once \override NoteColumn.ignore-collision = ##t
38   es8 gis8
39 }
40
41 <<
42   \new Staff \with { instrumentName = "quoteMe" }
43   \quoteMe
44
45   \new Staff \with { instrumentName = "orig" }
46   \original
47
48   \new Staff \with {
49     instrumentName = "orig+quote"
50     quotedEventTypes = #'(note-event articulation-event)
51   }
52   \relative c''
53   <<
54     \original
55     \new Voice {
56       s4
57       \set fontSize = #-4
58       \override Stem.length-fraction = #(magstep -4)
59       \quoteDuring #"quoteMe" { \skip 2. }
60     }
61   >>
62 >>