Thanks Aaron.

Looking at 
http://lilypond.org/doc/v2.18/Documentation/notation/visibility-of-objects#index-_005comit
I would have expected the syntax to be 
   \new NullVoice \with { \omit Score.ParenthesesItem } { \music }
and I would have expected that to eliminate the parentheses in _all_ voices – 
but only the NullVoice is affected.  This is of course wonderful for my case, 
but I don’t understand why it works that way.

I need to become less scared of the Internals Reference.

Regards,
Mogens

From: Aaron Hill
Sent: December 2, 2019 21:41
To: [email protected]
Subject: Re: Ddoubled parentheses

On 2019-12-02 9:04 pm, Mogens Lemvig Hansen wrote:
> Hi,
> 
> The NullVoice in the example below generates its own set of
> parentheses so that I get two pairs – see attached.
> Same problem with \new NullVoice \with { \remove
> "Parenthesis_engraver" }{ \music }
> Same problem in \version "2.19.82"
> 
> 
> \version "2.18.2"
> 
> music = \relative {
>   c' e \parenthesize g c
> }
> 
> \score {
>   \new Staff <<
>     \new Voice { \music }
>     \new NullVoice { \music }
>   >>
> }
> 
> 
> Suggestions for removing the extra pair – other than by removing the
> NullVoice altogether?

The default location for the Parenthesis_engraver is the Score context, 
that is why removing it from the NullVoice has no effect.

The simplest option I see is this:

%%%%
\version "2.18.2"

music = \relative {
   c' e \parenthesize g c
}

\score {
   \new Staff <<
     \new Voice { \music }
     \new NullVoice \with { \omit ParenthesesItem } { \music }
   >>
}
%%%%


-- Aaron Hill


Reply via email to