]> git.donarmstrong.com Git - lilypond.git/commitdiff
Midi: add staff-mapping test.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 13 Mar 2011 11:26:05 +0000 (12:26 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 13 Mar 2011 15:51:04 +0000 (16:51 +0100)
input/regression/midi/staff-map.ly [new file with mode: 0644]

diff --git a/input/regression/midi/staff-map.ly b/input/regression/midi/staff-map.ly
new file mode 100644 (file)
index 0000000..a159f43
--- /dev/null
@@ -0,0 +1,45 @@
+\version "2.13.53"
+
+\header {
+texidoc="Midi2ly remaps voices are corectly to staves.  TODO: pianostaff"
+options=""
+}
+
+\score {
+%% TODO:PIANOSTAFF  \context PianoStaff <<
+  <<
+    \context Staff = "treble" <<
+      \set Score.midiChannelMapping = #'voice
+      \context Voice="one" \relative c'' {
+       \time 4/4
+       \key c \minor
+       \voiceOne
+%comes
+%7
+       f8 es16 d c16 bes ! as g f8 as' g f 
+%8     es8 d es f b, c d b |
+       f,16 g as4 g16 f e2 |
+      }
+      \context Voice="two" \relative c'' {
+       \voiceTwo
+%dux
+%7
+       c4 r4 r8 f es d |
+%8     r8 as g f g f16 es f8 d | 
+       <b, d>8 r <b d> r <g c>2 |
+      }
+    >>
+    \context Staff = "bass" <<
+      \context Voice="three" \relative c' {
+       \key c \minor
+       \clef bass
+%7
+       r8 c16 b c8 g as c16 b c8 d |
+%8     g8 c16 b c8 d f,16 g as4 g16 f | 
+       <c,, c'>1
+      }
+    >>
+  >>
+  \layout {}
+  \midi {}
+}