]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/changing-the-interval-of-lines-on-the-stave.ly
Update snippets from today's LSR with changed makelsr.py
[lilypond.git] / Documentation / snippets / changing-the-interval-of-lines-on-the-stave.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.14.2"
8
9 \header {
10   lsrtags = "pitches"
11
12   texidoc = "
13 @code{staffLineLayoutFunction} is used to change the position of notes.
14 This snippet shows setting its value to @code{ly:pitch-semitones} in
15 order to produce a chromatic scale with the distance between each space
16 and line of the stave equal to one semitone.
17
18 "
19   doctitle = "Changing the interval of lines on the stave"
20 } % begin verbatim
21
22
23 scale = \relative c' {
24   a4 ais b c
25   cis4 d dis e
26   f4 fis g gis
27   a1
28 }
29
30 \new Staff \with {
31   \remove "Accidental_engraver"
32   staffLineLayoutFunction = #ly:pitch-semitones
33 }
34 {
35   <<
36     \scale
37     \context NoteNames {
38       \set printOctaveNames = ##f
39       \scale
40     }
41   >>
42 }