]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/forcing-a-clef-symbol-to-be-displayed.ly
Imported Upstream version 2.14.2
[lilypond.git] / Documentation / snippets / forcing-a-clef-symbol-to-be-displayed.ly
diff --git a/Documentation/snippets/forcing-a-clef-symbol-to-be-displayed.ly b/Documentation/snippets/forcing-a-clef-symbol-to-be-displayed.ly
new file mode 100644 (file)
index 0000000..8952a2f
--- /dev/null
@@ -0,0 +1,32 @@
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.dsi.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.14.0"
+
+\header {
+  lsrtags = "pitches"
+
+  texidoc = "
+When a clef sign has already been displayed and it has not been changed
+to a different clef, then repeating the @code{\\clef} command will be
+ignored by LilyPond, since it is not a change of clef.  It is possible
+to force the clef to be redisplayed using the command @code{\\set
+Staff.forceClef = ##t}.
+
+"
+  doctitle = "Forcing a clef symbol to be displayed"
+} % begin verbatim
+
+\relative c' {
+  \clef treble
+  c1
+  \clef treble
+  c1
+  \set Staff.forceClef = ##t
+  c1
+  \clef treble
+  c1
+}