Hello,

Is there a way to get Lilypond to output a file with variables and functions applied? For example, if I have a file like:

-----
\version "2.24.3"

stuff = { c4 c4 c4 c4 | }

\stuff
\stuff
\transpose c4 d4 { \stuff }
\stuff
-----

then is there a way to get Lilypond to output something like the following?

-----
\version "2.24.3"

stuff = { c4 c4 c4 c4 | }

c4 c4 c4 c4 |
c4 c4 c4 c4 |
d4 d4 d4 d4 |
c4 c4 c4 c4 |
-----

My use case is that I want to manually change the accidentals of some specific pitches that were re-pitched using transpose for better readability.

Thank you!
~Dmitri

Reply via email to