]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/applying-note-head-styles-depending-on-the-step-of-the-scale.ly
Removes '-signs from vectors
[lilypond.git] / Documentation / snippets / applying-note-head-styles-depending-on-the-step-of-the-scale.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 = "editorial-annotations, pitches"
11
12   texidoc = "
13 The @code{shapeNoteStyles} property can be used to define various note
14 head styles for each step of the scale (as set by the key signature or
15 the @code{tonic} property). This property requires a set of symbols,
16 which can be purely arbitrary (geometrical expressions such as
17 @code{triangle}, @code{cross}, and @code{xcircle} are allowed) or based
18 on old American engraving tradition (some latin note names are also
19 allowed).
20
21 That said, to imitate old American song books, there are several
22 predefined note head styles available through shortcut commands such as
23 @code{\\aikenHeads} or @code{\\sacredHarpHeads}.
24
25 This example shows different ways to obtain shape note heads, and
26 demonstrates the ability to transpose a melody without losing the
27 correspondence between harmonic functions and note head styles.
28
29 "
30   doctitle = "Applying note head styles depending on the step of the scale"
31 } % begin verbatim
32
33
34 fragment = {
35   \key c \major
36   c2 d
37   e2 f
38   g2 a
39   b2 c
40 }
41
42 \new Staff {
43   \transpose c d
44   \relative c' {
45     \set shapeNoteStyles = ##(do re mi fa
46                                #f la ti)
47     \fragment
48   }
49
50   \break
51
52   \relative c' {
53     \set shapeNoteStyles = ##(cross triangle fa #f
54                                mensural xcircle diamond)
55     \fragment
56   }
57 }