lilypond-devel
[Top][All Lists]
Advanced

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

context id


From: Milan
Subject: context id
Date: Mon, 14 Dec 2015 16:46:32 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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 } >>

Thanks,
Milan




reply via email to

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