]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/changing-the-interval-of-lines-on-the-stave.ly
Merge branch 'lilypond/translation' of ssh://git.sv.gnu.org/srv/git/lilypond into...
[lilypond.git] / Documentation / snippets / changing-the-interval-of-lines-on-the-stave.ly
1 %% Do not edit this file; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% This file is in the public domain.
4 \version "2.13.20"
5
6 \header {
7   lsrtags = "pitches"
8
9   texidoc = "
10 @code{staffLineLayoutFunction} is used to change the position of notes.
11 This snippet shows setting its value to @code{ly:pitch-semitones} in
12 order to produce a chromatic scale with the distance between each space
13 and line of the stave equal to one semitone.
14
15 "
16   doctitle = "Changing the interval of lines on the stave"
17 } % begin verbatim
18
19 scale = \relative c' {
20   a4 ais b c
21   cis4 d dis e
22   f4 fis g gis
23   a1
24 }
25
26 \new Staff \with {
27   \remove "Accidental_engraver"
28   staffLineLayoutFunction = #ly:pitch-semitones
29 }
30 {
31   <<
32     \scale
33     \context NoteNames {
34       \set printOctaveNames = ##f
35       \scale
36     }
37   >>
38 }