Here is the relevant section in the docs:

https://lilypond.org/doc/v2.22/Documentation/snippets/pitches#pitches-transposing-pitches-with-minimum-accidentals-_0028_0022smart_0022-transpose_0029

-David

----- Original Message -----
> From: "Kenneth Flak" <kennethf...@protonmail.com>
> To: "bobroff" <bobr...@centrum.is>
> Cc: "Lillypond Users Mailing List" <lilypond-user@gnu.org>
> Sent: Saturday, February 4, 2023 11:47:52 AM
> Subject: Re: how to avoid double sharps in \transpose?

> Great, thanks! Just what I need :-)
> 
> Roosna & Flak
> Contemporary Dance & Music
> https://roosnaflak.com
> 
> -------- Original Message --------
> On Feb 4, 2023, 13:30, bobr...@centrum.is wrote:
> 
>> Do a search for “smart transpose.” I did this recently. I’m not home at the
>> moment but I’ll dig it up and post it when I get back. -David ----- Kenneth
>> Flak  wrote: > Hi list, > > I have this: > > \version "2.24.0" > > \language
>> english > > > patright = { > 2  | > } > > patleft = { > g2 c > } > > right = 
>> {
>> > \patright > \transpose c df \patright > \transpose c d \patright > 
>> > \transpose
>> c ef \patright > \transpose c e \patright > \transpose c f \patright >
>> \transpose c fs \patright > \transpose c g \patright > \transpose c gs
>> \patright > \transpose c a \patright > \transpose c bf \patright > 
>> \transpose c
>> b \patright > } > > left = { > \clef bass > \patleft > \transpose c df 
>> \patleft
>> > \transpose c d \patleft > \transpose c ef \patleft > \transpose c e 
>> > \patleft
>> > \transpose c f \patleft > \transpose c fs \patleft > \transpose c g 
>> > \patleft
>> > \transpose c gs \patleft > \transpose c a \patleft > \transpose c bf 
>> > \patleft
>> > \transpose c b \patleft > } > > \score { > \new PianoStaff > \new Staff =
>> "right" \right > \new Staff = "left" \left > >> > } > > It gives me a few
>> instances of double sharps as well as some e sharps. How can I do that? Also,
>> the programmer in me squeals upon seeing all these duplications, so I was
>> curious how to reduce this to something a bit more sensible? > > Best, >
>> Kenneth > > -- > Roosna & Flak - Contemporary Dance & Music > Web:
>> roosnaflak.com > Code: {github,gitlab}.com/kflak > Mastodon: 
>> @k...@sonomu.club >
> > >

Reply via email to