openlilylib / lilypond-export

LilyPond export API to write Humdrum, MusicXML and more
GNU General Public License v3.0
22 stars 8 forks source link

Fix accidentals to correctly work with chords. #3

Closed rshura closed 5 years ago

rshura commented 5 years ago

My original code was wrong. When accidental was encountered, it kept it in the tree with bar/moment. The problem was that if the chord happens at that moment, all the notes would get that same accidental. So the solution is to accumulate pitch-accidental pairs for every time accidental occurs.

jpvoigt commented 5 years ago

well, I didn't notice that ... sorry and thanks!