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