[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Chord repetition: \relative mode (issue164096)
From: |
nicolas . sceaux |
Subject: |
Re: Chord repetition: \relative mode (issue164096) |
Date: |
Sun, 06 Dec 2009 17:23:13 +0000 |
Hi,
I've uploaded a second patch set, which introduces a chord memorization
function.
When dealing with a simple_chord_element (simple notes, rests, etc) or a
note_chord_element (chord with several notes), the parser updates the
memorized chord by calling a user-settable memorization function (see
parser.yy).
In this implementation, two memorization functions are provided: a
default one which makes no check (memorize whatever element is given to
it), and an other one which memorizes chords that have more than one
note. See ly/chord-repetition-init.ly.
The default chord repetition function, in ly/chord-repetition-init.ly,
has also been improved: remove cautionary accidentals, check whether a
chord has been memorized in the same music block, fix origin of the
repeated chord.
Example (when using the memorization function for chords with more than
one note):
lilypond /Users/nicolas/tmp/bug.ly
GNU LilyPond 2.13.9
Traitement de << /Users/nicolas/tmp/bug.ly >>
Analyse...
/Users/nicolas/tmp/bug.ly:9:12: No memorized chord in music block before
chord repetition
{ d''2\rest
q4 q8 d'' }
http://codereview.appspot.com/164096