]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/quoting-another-voice.ly
Snippets: Replace \set Staff.instrumentName
[lilypond.git] / Documentation / snippets / quoting-another-voice.ly
index cbc1ce7534b4b55b32c934422e4206e89403ccf5..40963ab6a9c1971871c158f102a8cbe104bc888f 100644 (file)
@@ -1,10 +1,11 @@
-%% DO NOT EDIT this file manually; it is automatically
-%% generated from LSR http://lsr.di.unimi.it
-%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
-%% and then run scripts/auxiliar/makelsr.py
-%%
-%% This file is in the public domain.
-\version "2.18.0"
+% DO NOT EDIT this file manually; it is automatically
+% generated from Documentation/snippets/new
+% Make any changes in Documentation/snippets/new/
+% and then run scripts/auxiliar/makelsr.py
+%
+% This file is in the public domain.
+%% Note: this file works from version 2.19.56
+\version "2.19.56"
 
 \header {
   lsrtags = "staff-notation"
@@ -27,7 +28,8 @@ the Internals Reference.
 
 quoteMe = \relative c' {
   fis4 r16 a8.-> b4\ff c
-}
+} % begin verbatim
+
 \addQuote quoteMe \quoteMe
 
 original = \relative c'' {
@@ -37,18 +39,18 @@ original = \relative c'' {
 }
 
 <<
-  \new Staff {
-    \set Staff.instrumentName = #"quoteMe"
-    \quoteMe
-  }
-  \new Staff {
-    \set Staff.instrumentName = #"orig"
-    \original
+  \new Staff \with { instrumentName = "quoteMe" }
+  \quoteMe
+
+  \new Staff \with { instrumentName = "orig" }
+  \original
+
+  \new Staff \with {
+    instrumentName = "orig+quote"
+    quotedEventTypes = #'(note-event articulation-event)
   }
-  \new Staff \relative c'' <<
-    \set Staff.instrumentName = #"orig+quote"
-    \set Staff.quotedEventTypes =
-      #'(note-event articulation-event)
+  \relative c''
+  <<
     \original
     \new Voice {
       s4