]> git.donarmstrong.com Git - lilypond.git/commit
Issue #768: Chord repetition shortcut
authorNicolas Sceaux <nicolas.sceaux@free.fr>
Wed, 11 Nov 2009 18:59:09 +0000 (19:59 +0100)
committerNicolas Sceaux <nicolas.sceaux@free.fr>
Sun, 15 Nov 2009 10:52:41 +0000 (11:52 +0100)
commite26f468ce5bdb4738bb34d6ad200cd888c6011ac
treed59ea35e63af445b748e5beada7a90e823f471a1
parent73cb322149a8fea9aee2b6c5b5281207a34cfe3c
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 Werner). The function copies the
pitches, but not articulations.
12 files changed:
Documentation/changes.tely
Documentation/notation/simultaneous.itely
input/regression/chord-repetition.ly [new file with mode: 0644]
input/regression/quote-kill-cues.ly
lily/include/lily-lexer.hh
lily/lexer.ll
lily/lily-lexer.cc
lily/lily-parser-scheme.cc
lily/parser.yy
ly/chord-repetition-init.ly [new file with mode: 0644]
ly/declarations-init.ly
scm/ly-syntax-constructors.scm