]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/midi/staff-map-instrument.ly
Midi2ly: refactoring: initial support for instrument<->channel mapping.
[lilypond.git] / input / regression / midi / staff-map-instrument.ly
1 \version "2.13.53"
2
3 \header {
4 texidoc="Midi2ly remaps voices correctly to staves in MIDI-files that use instrument<->channel mapping when combined with voice<->track mapping.  TODO: pianostaff"
5 options=""
6 }
7
8 \score {
9 %% TODO:PIANOSTAFF  \context PianoStaff <<
10   <<
11     \context Staff = "treble" <<
12       %% the default
13       %% \set Score.midiChannelMapping = #'instrument
14       \context Voice="one" \relative c'' {
15         \time 4/4
16         \key c \minor
17         \voiceOne
18 %comes
19 %7
20         f8 es16 d c16 bes ! as g f8 as' g f 
21 %8      es8 d es f b, c d b |
22         f,16 g as4 g16 f e2 |
23       }
24       \context Voice="two" \relative c'' {
25         \voiceTwo
26 %dux
27 %7
28         c4 r4 r8 f es d |
29 %8      r8 as g f g f16 es f8 d | 
30         <b, d>8 r <b d> r <g c>2 |
31       }
32     >>
33     \context Staff = "bass" <<
34       \context Voice="three" \relative c' {
35         \key c \minor
36         \clef bass
37 %7
38         r8 c16 b c8 g as c16 b c8 d |
39 %8      g8 c16 b c8 d f,16 g as4 g16 f | 
40         <c,, c'>1
41       }
42     >>
43   >>
44   \layout {}
45   \midi {}
46 }