]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/changing-the-interval-of-lines-on-the-stave.ly
a8ebc77299f211adcc7416f2c5feed42c1602f7e
[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 %% Translation of GIT committish: 1cda7b7b8219cb97399b8e7b56c1115aaf82c002
13   texidocfr = "
14 @code{staffLineLayoutFunction} permet de changer le positionnement des
15 notes.  Dans cet exemple, la valeur qui lui est attribuée --
16 @code{ly:pitch-semitones} -- génère une gamme chromatique où l'écart
17 entre chaque ligne et interligne de la portée est ramené au demi ton.
18
19 "
20   doctitlefr = "Modification de l'intervalle des lignes de la portée"
21
22   texidoc = "
23 @code{staffLineLayoutFunction} is used to change the position of notes.
24 This snippet shows setting its value to @code{ly:pitch-semitones} in
25 order to produce a chromatic scale with the distance between each space
26 and line of the stave equal to one semitone.
27
28 "
29   doctitle = "Changing the interval of lines on the stave"
30 } % begin verbatim
31
32
33 scale = \relative c' {
34   a4 ais b c
35   cis4 d dis e
36   f4 fis g gis
37   a1
38 }
39
40 \new Staff \with {
41   \remove "Accidental_engraver"
42   staffLineLayoutFunction = #ly:pitch-semitones
43 }
44 {
45   <<
46     \scale
47     \context NoteNames {
48       \set printOctaveNames = ##f
49       \scale
50     }
51   >>
52 }
53