summaryrefslogtreecommitdiff
path: root/Documentation/snippets/printing-note-names-with-and-without-an-octave-marker.ly
diff options
context:
space:
mode:
authorGraham Percival <graham@percival-music.ca>2010-06-02 13:56:46 +0100
committerGraham Percival <graham@percival-music.ca>2010-06-02 13:56:46 +0100
commit162b5d842f34770c92b173878348a0afcc81f281 (patch)
treece9351efa642e949923b909159d628a20638ede2 /Documentation/snippets/printing-note-names-with-and-without-an-octave-marker.ly
parent013c439908ccf9940846a3ec3a7a5962eb7ec9e9 (diff)
LSR: update.
Diffstat (limited to 'Documentation/snippets/printing-note-names-with-and-without-an-octave-marker.ly')
-rw-r--r--Documentation/snippets/printing-note-names-with-and-without-an-octave-marker.ly40
1 files changed, 40 insertions, 0 deletions
diff --git a/Documentation/snippets/printing-note-names-with-and-without-an-octave-marker.ly b/Documentation/snippets/printing-note-names-with-and-without-an-octave-marker.ly
new file mode 100644
index 0000000000..34f396b231
--- /dev/null
+++ b/Documentation/snippets/printing-note-names-with-and-without-an-octave-marker.ly
@@ -0,0 +1,40 @@
+%% Do not edit this file; it is automatically
+%% generated from LSR http://lsr.dsi.unimi.it
+%% This file is in the public domain.
+\version "2.13.16"
+
+\header {
+ lsrtags = "tweaks-and-overrides"
+
+ texidoc = "
+The @code{NoteNames} context can be used to print the text value of
+notes. The @code{printOctaveNames} property turns on or off the
+representation of the octave of the note.
+
+"
+ doctitle = "Printing note names with and without an octave marker"
+} % begin verbatim
+
+scale = \relative c' {
+ a4 b c d
+ e4 f g a
+}
+
+\new Staff {
+ <<
+ \scale
+ \context NoteNames {
+ \set printOctaveNames = ##f
+ \scale
+ }
+ >>
+ R1
+ <<
+ \scale
+ \context NoteNames {
+ \set printOctaveNames = ##t
+ \scale
+ }
+ >>
+}
+