lilypond-user
[Top][All Lists]
Advanced

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

Re: How to catch post-events inside chords in an event listener?


From: Valentin Petzel
Subject: Re: How to catch post-events inside chords in an event listener?
Date: Sun, 06 Feb 2022 20:57:37 +0100

Hello Lukas,

one could try something like this.

Valentin

Am Sonntag, 6. Februar 2022, 16:31:31 CET schrieb Lukas-Fabian Moser:
> Folks,
> 
> probably I'm being stupid:
> 
> \version "2.22"
> 
> #(define (test_engraver ctx)
>     (make-engraver
>      (listeners
>       ((tie-event engraver event)
>        (format #t "Tie encountered at ~a.\n" (ly:context-current-moment
> ctx))))))
> 
> \layout {
>    \context {
>      \Voice
>      \consists #test_engraver
>    }
> }
> 
> {
>    a4~
>    <a~ g'> % this one is not seen by the engraver
>    a~
>    a
> }
> 
> What do I have to do to make my custom engraver also see post-events
> (here, a tie, but in my context it's a custom event type) used inside
> chords?
> 
> Lukas

Attachment: tie.ly
Description: Text Data

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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