[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: context id
From: |
David Kastrup |
Subject: |
Re: context id |
Date: |
Tue, 15 Dec 2015 11:40:50 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Milan van der Meer <address@hidden> writes:
> the code (frescobaldi):
>
> #(define (format-note engraver event)
> (let* (
> (context (ly:translator-context engraver))
> (ID (ly:context-id context))
> (parent (ly:context-parent context))
> (name (ly:context-name context) )
>
>
> )
> (display ID)
>
> (make-eventlist engraver event)
> )
> )
>
>
>
> \layout {
> \context {
> \Score
> \consists #(make-engraver
> (listeners
>
> (note-event . format-note)
>
> ))
Why would you expect getting a Voice context when calling
ly:translator-context on an engraver you instantiate in a Score context?
--
David Kastrup