]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/positioning-grace-notes-with-floating-space.ly
ae61dd1a9f1caaf04e747186bebfd0236013ee8c
[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.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.16.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
23 \relative c'' {
24   <<
25     \override Score.SpacingSpanner #'strict-grace-spacing = ##t
26     \new Staff \new Voice {
27       \afterGrace c4 { c16[ c8 c16] }
28       c8[ \grace { b16[ d] } c8]
29       c4 r
30     }
31     \new Staff {
32       c16 c c c c c c c c4 r
33     }
34   >>
35 }