]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/midi/quantize-duration-2.ly
Run scripts/auxiliar/update-with-convert-ly.sh
[lilypond.git] / input / regression / midi / quantize-duration-2.ly
1 % Lily was here -- automatically converted by out/bin/midi2ly from /home/janneke/testmidi.mid
2 \version "2.19.21"
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 \midi {
14   \context {
15     \Score
16     midiChannelMapping = #'instrument
17   }
18 }
19
20 \header {
21 texidoc="@code{midi2ly}'s option @option{--duration-quant} preserves first note length (16)."
22 options="--duration-quant=16"
23 }
24
25 trackAchannelA = {
26
27
28   \key a \major
29     
30   % [TEXT_EVENT] Nokia Tune
31   
32   \tempo 4 = 120 
33   
34
35   \key a \major
36   
37   \time 3/8 
38   
39 }
40
41 trackA = <<
42   \context Voice = voiceA \trackAchannelA
43 >>
44
45
46 trackBchannelB = \relative {
47   e'''4*41/192 r4*7/192 d4*41/192 r4*7/192 fis,4*89/192 r4*7/192 gis4*89/192 
48   r4*7/192 
49   | % 2
50   cis4*41/192 r4*7/192 b4*41/192 r4*7/192 d,4*89/192 r4*7/192 e4*89/192 
51 }
52
53 trackB = <<
54   \context Voice = voiceA \trackBchannelB
55 >>
56
57
58 \score {
59   <<
60     \context Staff=trackB \trackA
61     \context Staff=trackB \trackB
62   >>
63   \layout {}
64   \midi {}
65 }