|
|
Issue #768: Chord repetition shortcut
In the lexer, add a chord repetition state, holding the repetition
symbol (like note names, but for chord repetition), the repetition
function used to copy the previous chord, and a slot to save the
previous chord. Use the repetition symbol to detect a chord
repetition when lexing.
In the parser, when a note chord is found, save it (it becomes
previous chord). When a chord repetition token is found, make a chord
using the repetition function and the previous chord.
The repetition symbol and function are initialized in
ly/chord-repetition-init.ly. The repetition symbol defaults to `q' (as
quote or qord -- as suggested by Werner). The function copies the
pitches, but not articulations.
Total comments: 3
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+125 lines, -5 lines) |
Patch |
 |
M |
Documentation/notation/simultaneous.itely
|
View
|
1
|
3 chunks |
+25 lines, -1 line |
0 comments
|
Download
|
 |
A |
input/regression/chord-repetition.ly
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
input/regression/quote-kill-cues.ly
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
lily/include/lily-lexer.hh
|
View
|
|
2 chunks |
+16 lines, -0 lines |
0 comments
|
Download
|
 |
M |
lily/lexer.ll
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
lily/lily-lexer.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
lily/lily-parser-scheme.cc
|
View
|
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
lily/parser.yy
|
View
|
|
3 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
 |
A |
ly/chord-repetition-init.ly
|
View
|
|
1 chunk |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ly/declarations-init.ly
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
|
scm/ly-syntax-constructors.scm
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
Total messages: 4
|