]> git.donarmstrong.com Git - lilypond.git/commitdiff
Chord tremolos: Add regtests for articulations on notes
authorReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 14 Jul 2010 00:14:45 +0000 (02:14 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Wed, 14 Jul 2010 00:20:37 +0000 (02:20 +0200)
input/regression/chord-tremolo-articulations.ly [new file with mode: 0644]
input/regression/repeat-tremolo-one-note-articulation.ly [new file with mode: 0644]

diff --git a/input/regression/chord-tremolo-articulations.ly b/input/regression/chord-tremolo-articulations.ly
new file mode 100644 (file)
index 0000000..7b862fc
--- /dev/null
@@ -0,0 +1,22 @@
+\version "2.12.0"
+
+\header{
+texidoc="
+Articulations on chord tremolos should not confuse the time-scaling of the
+notes. In particular, only the number of real notes should be considered.
+"
+}
+
+\context Voice \relative c' {
+  \repeat "tremolo" 4 { d16\f e-. }
+  \repeat "tremolo" 4 { d16-> e } | \barNumberCheck #2
+  \repeat "tremolo" 4 { d16 e\f }
+  \repeat "tremolo" 8 { d32\> e\! } | \barNumberCheck #3
+  \repeat "tremolo" 2 { d8\trill e }
+  \repeat "tremolo" 2 { d8\sfz e } | \barNumberCheck #4
+
+  \time 2/4
+  \repeat "tremolo" 8 { d32^"Markup" e } | \barNumberCheck #5
+  c4 c4
+}
+
diff --git a/input/regression/repeat-tremolo-one-note-articulation.ly b/input/regression/repeat-tremolo-one-note-articulation.ly
new file mode 100644 (file)
index 0000000..5b5d620
--- /dev/null
@@ -0,0 +1,19 @@
+\version "2.13.28"
+
+\header {
+  texidoc = "A tremolo repeat containing only one note (no sequential music)
+  shall not be scaled. An articulation or dynamic sign on the note should not
+  confuse lilypond."
+}
+
+\paper { ragged-right = ##t }
+\score {
+  \new Staff \relative c'' {
+    \repeat tremolo 4 { a16 }
+    \repeat tremolo 4 { a16\f }
+    \repeat tremolo 4 a16
+    \repeat tremolo 4 a16\f |
+    \repeat tremolo 4 a16\f-> 
+    c2. |
+  }
+}