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