-\version "2.9.16"
-\sourcefilename "music-box.ly"
-
+\version "2.7.39"
\include "deutsch.ly"
% possible rename to scheme- something. -gp
% TODO: ask if it needs to have so many empty bars in the middle. -gp
(recurse (cdr elts))
)))))
music
- ))
+ ))
#(define ((trans pitches) music)
(let* ((es (ly:music-property music 'elements))
music))
+
+
+
+\version "2.7.39"
+
pat = \transpose c c' \repeat unfold 2 {
<< { \context Staff = "up" {r8 e16 f g e f g } }
{ \context Staff = "down" <<
endb = {\stemUp \tieUp r16 c,8.~c,4~c,2 r16 h,,8.~h,,4~h,,2 c,1 \bar "|."}
endc = {\stemDown \tieDown c,,2~c,, c,,~c,, c,,1_\fermata }
-
-prelude =
-#(define-music-function (parser location patterns) (ly:music?)
- (transform patterns))
-
-
\score {
\transpose c c' \context PianoStaff <<
\new Staff = "up" { \clef "G" }
\new Staff = "down" { \clef "F" }
- { \prelude {
+ { \applyMusic #transform {
\pat {c e g c' e' }
\pat {c d a d' f' }
}
-
+
%{
%Etc.
%}
}
>>
-
+
\layout {
\context {
\PianoStaff
}
line-width = 18.0 \cm
}
-
- \midi {
- \context {
- \Score
- tempoWholesPerMinute = #(ly:make-moment 80 4)
- }
- }
-
-
+ \midi {
+ \tempo 4 = 80
+ }
}