]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/midi/quantize-duration-2.ly
Imported Upstream version 2.14.2
[lilypond.git] / input / regression / midi / quantize-duration-2.ly
diff --git a/input/regression/midi/quantize-duration-2.ly b/input/regression/midi/quantize-duration-2.ly
new file mode 100644 (file)
index 0000000..26f7d65
--- /dev/null
@@ -0,0 +1,65 @@
+% Lily was here -- automatically converted by out/bin/midi2ly from /home/janneke/testmidi.mid
+\version "2.14.0"
+
+\layout {
+  \context {
+    \Voice
+    \remove "Note_heads_engraver"
+    \consists "Completion_heads_engraver"
+    \remove "Rest_engraver"
+    \consists "Completion_rest_engraver"
+  }
+}
+\midi {
+  \context {
+    \Score
+    midiChannelMapping = #'instrument
+  }
+}
+
+\header {
+texidoc="midi2ly @code{--duration-quant} preserves first note length (16)"
+options="--duration-quant=16"
+}
+
+trackAchannelA = {
+
+
+  \key a \major
+    
+  % [TEXT_EVENT] Nokia Tune
+  
+  \tempo 4 = 120 
+  
+
+  \key a \major
+  
+  \time 3/8 
+  
+}
+
+trackA = <<
+  \context Voice = voiceA \trackAchannelA
+>>
+
+
+trackBchannelB = \relative c {
+  e'''4*41/192 r4*7/192 d4*41/192 r4*7/192 fis,4*89/192 r4*7/192 gis4*89/192 
+  r4*7/192 
+  | % 2
+  cis4*41/192 r4*7/192 b4*41/192 r4*7/192 d,4*89/192 r4*7/192 e4*89/192 
+}
+
+trackB = <<
+  \context Voice = voiceA \trackBchannelB
+>>
+
+
+\score {
+  <<
+    \context Staff=trackB \trackA
+    \context Staff=trackB \trackB
+  >>
+  \layout {}
+  \midi {}
+}