On Tue, Dec 31, 2024 at 9:49 AM Frédéric <ufosp...@gmail.com> wrote:
> Hi Knute, > > Please let me first thank you so much for what you shared on this > topic of converting chords to multivoices. Thanks to you, I discovered > there exists a python lexer for lilypond files; this is really > awesome! > Agreed! On my side, I worked in a different direction, starting from your > first script. I wanted to have a unique << { } \\ { } >> if possible > and not repeat that at each chord. Here is where I am currently. Not > yet perfect but on the following music: > \times 4/6 { r16 <re fa>-.[( <fa sib>-. <sib re>-.-> <fa sib>-. <re > fa>-.)] } > I get what I expect: > \times 4/6 { r16 << { > fa-.[( sib-. re-.-> sib-. fa-.)] > } \\ { > re-.[( fa-. sib-.-> fa-. re-.)] > } >> > } I noticed that the third chord goes from high to low instead of low to high. That will mean your voices cross for that chord. Was that intended? Also, it doesn't look like << { } \\ { } >> works very well inside a tuplet (times). These kinds of things will have to be dealt with by hand. > I am not very familiar yet with the ly library so not sure this is > really correctly done. > Looks good to me. I am new to this library too. > I see that you worked on the relative/absolute issue. I have not the > time right now to dig into that. I will certainly later but I still > wanted to share what I did. > You could change relative to absolute in Frescobaldi before running the Python script. Otherwise, it's not going to get the correct octaves. -- Knute Snortum