lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Convert chord mode into multi-voice mode


From: Frédéric
Subject: Re: Convert chord mode into multi-voice mode
Date: Tue, 31 Dec 2024 18:49:18 +0100

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!

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 am not very familiar yet with the ly library so not sure this is
really correctly done.
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.

Thanks,

F

Le dim. 22 déc. 2024 à 01:40, Knute Snortum <ksnortum@gmail.com> a écrit :
>
> On Fri, Dec 20, 2024 at 1:40 PM Knute Snortum <ksnortum@gmail.com> wrote:
>>
>> Since you're going to write a Python script, I figure I can share what I've 
>> done so far on mine.
>
>
> I made a lot of improvements to my Python script (one of the advantages of 
> being retired) and I thought I'd share it, even if it never gets used.  It 
> deals with:
>
> * chords that don't have two notes in them (it leaves them alone)
> * adding dotted length and articulations and slurs, etc. to each voice (but 
> stops if there is a space)
> * deals with chords that aren't separated by spaces
> * automatically changes \relative blocks to absolute
>
> It certainly could be cleaner, but I'll share what I have now:
>
> --
> Knute Snortum
>

Attachment: chord2voice3.py
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]