]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/applying-noteheads-styles-depending-on-the-step-of-the-scale.ly
Add a TODO comment re grace note spacing.
[lilypond.git] / input / lsr / applying-noteheads-styles-depending-on-the-step-of-the-scale.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.35"
4
5 \header {
6   lsrtags = "pitches, editorial-and-educational-use"
7  texidoc = "
8 The shapeNoteStyles property gives you the ability to define various
9 note heads styles for each step of the scale (as defined by the key
10 signature or the \"tonic\" property).
11
12 This property requires a set of symbols, which can be purely arbitrary
13 (geometrical expressions such as triangle, cross, xcircle etc. are
14 allowed) or based on old American engraving tradition (you can use some
15 latin note names as well). 
16
17 That said, if you're trying to imitate old American song books, you may
18 also want to try LilyPond's predefined note heads styles, through
19 shortcut commands such as \\aikenHeads or \\sacredHarpHeads.
20
21 This exemple shows different ways to obtain shape note heads, and
22 demonstrates the ability to transpose a melody without losing the
23 correspondance between harmonic functions and note heads styles.
24 " }
25 % begin verbatim
26 fragment = {
27   \key c \major
28   c1 d e f g a b c
29   \break
30 }
31
32 \score {
33   \new Staff {
34     \transpose c d 
35     \relative {
36       \set shapeNoteStyles = ##(do re mi fa #f la ti)
37       \fragment \break
38     }
39     
40     \relative {
41       \set shapeNoteStyles  = ##(cross triangle fa #f mensural xcircle diamond)
42       \fragment
43     }
44   }
45 }
46