]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/midi/voice-2.ly
Midi2ly: refactoring: initial support for instrument<->channel mapping.
[lilypond.git] / input / regression / midi / voice-2.ly
1 % Lily was here -- automatically converted by ../../../scripts/midi2ly.py from out-www/voice-2.midi
2 \version "2.13.53"
3
4 \layout {
5   \context {
6     \Voice
7     \remove "Note_heads_engraver"
8     \consists "Completion_heads_engraver"
9     \remove "Rest_engraver"
10     \consists "Completion_rest_engraver"
11   }
12 }
13
14 % included from ./out-www/voice-2.header
15 \header {
16 texidoc="midi2ly maps two voices nicely on once staff as \voiceOne, \voiceTwo"
17 options=""
18 }
19 % end
20
21 trackAchannelA = {
22   
23   % [SEQUENCE_TRACK_NAME] control track
24   
25   % [TEXT_EVENT] creator: 
26   
27   % [TEXT_EVENT] GNU LilyPond 2.13.54          
28   
29   \time 4/4 
30   
31   \tempo 4 = 60 
32   
33 }
34
35 trackA = <<
36   \context Voice = voiceA \trackAchannelA
37 >>
38
39
40 trackBchannelA = \relative c {
41   \voiceOne
42   
43   \set Staff.instrumentName = ":1"
44   e''4 e e e 
45   | % 2
46   
47 }
48
49 trackBchannelB = \relative c {
50   \voiceTwo
51   f' f f f 
52   | % 2
53   
54 }
55
56 trackB = <<
57   \context Voice = voiceA \trackBchannelA
58   \context Voice = voiceB \trackBchannelB
59 >>
60
61
62 \score {
63   <<
64     \context Staff=trackB \trackA
65     \context Staff=trackB \trackB
66   >>
67   \layout {}
68   \midi {}
69 }