lilypond-devel
[Top][All Lists]
Advanced

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

Re: context id


From: David Kastrup
Subject: Re: context id
Date: Mon, 14 Dec 2015 17:55:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Milan <address@hidden> writes:

> Hello All,
>
> I'm trying to return the context id for a voice.
> I'm using ly:translator-context to get the 
> context from the engraver and the function ly:context-id  
> to get the ID. However, if i display the id it prints: \new.
> displaying the parent context results in:
> #<Global_context Global 
> (#<Context Score=\new
>  (#<Context Staff (#<Context Voice=first () > #
> <Context Voice=second () >) >) >) >
>
> The input:
> \new Staff <<
>   \new Voice = "first"
>     { \voiceOne a }
>   \new Voice= "second"
>     { \voiceTwo d } >>

That code does not output a context id.  Without actually showing the
code you use for referencing ly:context-id, one cannot say what you do
wrong here.

-- 
David Kastrup



reply via email to

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