summaryrefslogtreecommitdiff
path: root/input
diff options
context:
space:
mode:
authorMike Solomon <mike@apollinemike.com>2012-08-31 09:27:17 +0200
committerMike Solomon <mike@apollinemike.com>2012-08-31 09:27:17 +0200
commitd8dfa746ead381a80901106b9c9b079dc9b5d004 (patch)
tree6b38c8583ef9dbae8da06f0302edc462e1692565 /input
parent97b66b1443a8907763d0e6c5e3ee9c1834bb02b5 (diff)
Uses a heuristic to determine if chord tremolos collide with accidentals.
This heuristic makes several assumptions about when a chord tremolo will collide with accidentals. It must be between whole notes, it must be in the staff, and it must be an ascending major third or lower. The heuristic is entirely contained in Beam::whole_note_close_chord_tremolo, which should be modified if other cases involving chord tremolos arise.
Diffstat (limited to 'input')
-rw-r--r--input/regression/chord-tremolo-accidental.ly18
1 files changed, 18 insertions, 0 deletions
diff --git a/input/regression/chord-tremolo-accidental.ly b/input/regression/chord-tremolo-accidental.ly
new file mode 100644
index 0000000000..f5a89cb6fb
--- /dev/null
+++ b/input/regression/chord-tremolo-accidental.ly
@@ -0,0 +1,18 @@
+\version "2.17.2"
+
+\header {
+ texidoc = "Chord tremolos adapt to the presence of accidentals.
+"
+}
+
+{
+ \repeat tremolo 16 { c''32 d'' }
+ \repeat tremolo 16 { c''32 <dis''> }
+ \repeat tremolo 16 { c''32 <dis'' fis''> }
+ \repeat tremolo 8 { c''32 d'' }
+ \repeat tremolo 8 { c''32 <dis''> }
+ \repeat tremolo 8 { c''32 <dis'' fis''> }
+ \repeat tremolo 4 { c''32 d'' }
+ \repeat tremolo 4 { c''32 <dis''> }
+ \repeat tremolo 16 { b''32 <cis'''> }
+} \ No newline at end of file