]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/printing-note-names-with-and-without-an-octave-marker.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / Documentation / snippets / printing-note-names-with-and-without-an-octave-marker.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.16.0"
8
9 \header {
10   lsrtags = "tweaks-and-overrides"
11
12   texidoc = "
13 The @code{NoteNames} context can be used to print the text value of
14 notes.  The @code{printOctaveNames} property turns on or off the
15 representation of the octave of the note.
16
17 "
18   doctitle = "Printing note names with and without an octave marker"
19 } % begin verbatim
20
21
22 scale = \relative c' {
23   a4 b c d
24   e4 f g a
25 }
26
27 \new Staff {
28   <<
29     \scale
30     \context NoteNames {
31       \set printOctaveNames = ##f
32       \scale
33     }
34   >>
35   R1
36   <<
37     \scale
38     \context NoteNames {
39       \set printOctaveNames = ##t
40       \scale
41     }
42   >>
43 }