]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/positioning-grace-notes-with-floating-space.ly
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / snippets / positioning-grace-notes-with-floating-space.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 = "rhythms"
11
12   texidoc = "
13 Setting the property @code{'strict-grace-spacing} makes the musical
14 columns for grace notes 'floating', i.e., decoupled from the non-grace
15 notes: first the normal notes are spaced, then the (musical columns of
16 the) graces are put left of the musical columns for the main notes.
17
18 "
19   doctitle = "Positioning grace notes with floating space"
20 } % begin verbatim
21
22 \relative c'' {
23   <<
24     \override Score.SpacingSpanner.strict-grace-spacing = ##t
25     \new Staff \new Voice {
26       \afterGrace c4 { c16[ c8 c16] }
27       c8[ \grace { b16 d } c8]
28       c4 r
29     }
30     \new Staff {
31       c16 c c c c c c c c4 r
32     }
33   >>
34 }