X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=input%2Fregression%2Fmidi%2Fstaff-map-voice.ly;fp=input%2Fregression%2Fmidi%2Fstaff-map-voice.ly;h=baa1f75bc63824d4424cdbecac856e32a5696d41;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=0000000000000000000000000000000000000000;hpb=a8c9e8a7ca320ab0df5fd32e717fd62cd7635ce6;p=lilypond.git diff --git a/input/regression/midi/staff-map-voice.ly b/input/regression/midi/staff-map-voice.ly new file mode 100644 index 0000000000..baa1f75bc6 --- /dev/null +++ b/input/regression/midi/staff-map-voice.ly @@ -0,0 +1,45 @@ +\version "2.14.0" + +\header { +texidoc="Midi2ly remaps voices correctly to staves in MIDI-files that use voice<->channel mapping when combined with staff<->track mapping. 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 | + 8 r r 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 | + 1 + } + >> + >> + \layout {} + \midi {} +}