]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix post_events list order for chord repetitions.
authorNeil Puttock <n.puttock@gmail.com>
Sat, 15 May 2010 20:48:24 +0000 (21:48 +0100)
committerNeil Puttock <n.puttock@gmail.com>
Sat, 15 May 2010 20:48:24 +0000 (21:48 +0100)
* lily/parser.yy (event_chord):

  reverse post_events arg to chord repetition syntax constructor

input/regression/chord-repetition-script-stack.ly [new file with mode: 0644]
lily/parser.yy

diff --git a/input/regression/chord-repetition-script-stack.ly b/input/regression/chord-repetition-script-stack.ly
new file mode 100644 (file)
index 0000000..dbbd867
--- /dev/null
@@ -0,0 +1,11 @@
+\version "2.13.22"
+
+\header {
+  texidoc = "Post events such as fingerings and scripts added to a
+chord repetition follow the same basic stacking order as chords.
+"
+}
+
+\relative c' {
+  <c e g>2-1-2-3 q_"q"-1-2-3
+}
index 8e29cc904bdc82cb6057cb8ee0c9a42425f6d33f..d296086193ccab190827d438a36bd0101ba4a28a 100644 (file)
@@ -1480,7 +1480,7 @@ event_chord:
                $$ = MAKE_SYNTAX ("repetition-chord", i,
                                  PARSER->lexer_->chord_repetition_.last_chord_,
                                  PARSER->lexer_->chord_repetition_.repetition_function_,
-                                 $2, $3);
+                                 $2, scm_reverse_x ($3, SCM_EOL));
        }
        | MULTI_MEASURE_REST optional_notemode_duration post_events {
                Input i;