lilypond-user
[Top][All Lists]
Advanced

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

Re: problem with microtones and ties


From: Stefan Thomas
Subject: Re: problem with microtones and ties
Date: Tue, 27 Oct 2009 19:51:06 +0100

Dear Patrick,
thanks very much!
I've added Your code to my "stefansmikrotoene.ly"

2009/10/27 Patrick McCarty <address@hidden>
Hi,

On 2009-10-25, Stefan Thomas wrote:
> Dear community,
> how can I avoid, that the accidentals are printed after the tie and the
> barline in the below quoted example?
> \include "stefansMikrotoene.ly"
> { cih1 ~ cih }

The default stencil procedure (ly:accidental-interface::print)
implements checks for ties, so you could write a custom stencil
procedure with these checks, and then use ly:text-interface::print if
a tie is not found.

Here is a simplified version with only one of the checks:


   \override Accidental #'stencil =
   #(lambda (grob)
      (let ((tie (ly:grob-object grob 'tie)))
        (if (ly:grob? tie)
            (begin (ly:grob-suicide! grob) '())
            (ly:text-interface::print grob))))


HTH,
Patrick


reply via email to

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