lessons/harmonic_minor: harmonic-scale.ly

File harmonic-scale.ly, 1.5 KB (added by uri, 12 years ago)

Гамма гармонического a-moll, исходник в LilyPond

Line 
1\version "2.14.2"
2
3\header {
4    title = "ГарЌПМОческОй A-moll"
5}
6
7% European system (A B H C D E F G)
8\include "deutsch.ly"
9
10% Ajust size
11#(set-global-staff-size 30)
12
13global = {
14  \key c \major
15}
16
17% Some magic here (for spanning string numbers)
18stringNumberSpanner =
19#(define-music-function (parser location StringNumber) (string?)
20  #{
21    \override TextSpanner #'style = #'dashed-line
22    \override TextSpanner #'dash-period = #1
23    \override TextSpanner #'font-size = #-5
24    \override TextSpanner #'(bound-details left stencil-align-dir-y) = #CENTER
25    \override TextSpanner #'(bound-details left text) = \markup { \circle \number $StringNumber }
26    \override TextSpanner #'(bound-details right text) = \markup { \draw-line #'( 0 . .5) }
27  #})
28
29\score {
30  \new Staff
31  \relative c' {
32    \stringNumberSpanner "6"
33    \textSpannerDown
34    a-1
35    \startTextSpan
36    h-3
37    c-4
38    \stopTextSpan
39    \stringNumberSpanner "5"
40    d-1
41    \startTextSpan
42    e-3
43    f-4
44    \stopTextSpan
45    \stringNumberSpanner "4"
46    gis-2
47    \startTextSpan
48    a-4
49    \stopTextSpan
50    \stringNumberSpanner "3"
51    h-1
52    \startTextSpan
53    c-2
54    d-4
55    \stopTextSpan
56    \stringNumberSpanner "2"
57    e-2
58    \startTextSpan
59    f-3
60    \stopTextSpan
61    \stringNumberSpanner "1"
62    gis-1
63    \startTextSpan
64    a-2
65    \stopTextSpan
66  }
67  \layout{
68    \context{
69      \Staff
70      \remove Time_signature_engraver
71      \remove "Bar_number_engraver"
72      \remove Bar_engraver
73   }
74  }
75  \midi{}
76
77}