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