]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/printing-note-names-with-and-without-an-octave-marker.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[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.di.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.18.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 scale = \relative c' {
22   a4 b c d
23   e4 f g a
24 }
25
26 \new Staff {
27   <<
28     \scale
29     \context NoteNames {
30       \set printOctaveNames = ##f
31       \scale
32     }
33   >>
34   R1
35   <<
36     \scale
37     \context NoteNames {
38       \set printOctaveNames = ##t
39       \scale
40     }
41   >>
42 }