lilypond-user
[Top][All Lists]
Advanced

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

Re: A challenging music transformation...


From: David Kastrup
Subject: Re: A challenging music transformation...
Date: Thu, 26 Aug 2021 04:11:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Gordon Bower <grb@taigabridge.net> writes:

> Your problem is simpler in one essential way: you are neither adding nor
> subtracting any notes, just repitching existing notes. I feel fairly
> confident I could solve yours -- use map-some-music to find every
> NoteEvent, and for each one, read the old pitch, look up the corresponding
> new pitch, and write the new pitch.
>
> The writers of \addNote and \pitchChange found ways to deal with having the
> replacement have more notes than the original did. "Convert a note into a
> chord with all the same slurs, dots, etc etc hanging off it" still eludes
> me. It seems that articulations get stored in two different places
> according to whether they apply to a note or to a chord.

LilyPond will typeset articulations placed into the 'articulations
property of an EventChord even though that is not the "correct" way to
write them.  That makes it somewhat easier to arrive at working
transformations.

-- 
David Kastrup



reply via email to

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