I didn't try your version Yoshiaki because it was a bit too much complex. Thank you anyway for your help, I saved it for future reference (you never know:)).
Regarding the last version with \shape: thank you Knute, it works well for me except that as you said is a solution "case-by-case" and not very clean. To simplify the code, isn't there a way to disregard the presence of the flat, so that LilyPond prints the tie as if the flat weren't there? Thanks!!!! Gianmaria On Sat, 22 Feb 2025 at 00:29, Yoshiaki Onishi <i...@yoshionishi.com> wrote: > ... I tried to use \shape #'(alist) Tie option when I was crafting my > solution, but I suppose I wasn't patient enough here. Good to know that > \shape indeed works. To be fair, mine does allow the overlapping of the > tie/slur over accidentals, but my solution isn't elegant. > > On Fri, Feb 21, 2025 at 5:55 PM Knute Snortum <ksnor...@gmail.com> wrote: > >> On Fri, Feb 21, 2025 at 10:37 AM Gianmaria Lari <gianmarial...@gmail.com> >> wrote: >> >>> Would it be possible to overlap the flat and the tie? Like in the >>> attached picture. >>> >> >> Yes, but it would have to be case-by-case with a \shape command (at least >> I don't know of another way.) >> >> %%% >> \version "2.24.4" >> >> \fixed c' >> { >> \once \override Tie.minimum-length = 5 >> \shape #'((0 . 0) (0 . 0) (1 . 0) (1 . 0)) Tie >> <e g>2^~ >> <e g ces> >> } >> %%% >> >> >> -- >> Knute Snortum >> >>