NullVoice + modern-voice-cautionary -> spurious cancellation

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

NullVoice + modern-voice-cautionary -> spurious cancellation

Dan Eble
> I'm not top-posting.

\version "2.18.0"

notes = \relative ces' {
  ces1 | c |
}

\new Staff <<
  \accidentalStyle modern-voice-cautionary
  \new Voice \notes
  \new NullVoice = "null" \notes
>>



_______________________________________________
bug-lilypond mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-lilypond
Reply | Threaded
Open this post in threaded view
|

Re: NullVoice + modern-voice-cautionary -> spurious cancellation

Eluze
Dan Eble wrote
> I'm not top-posting.

\version "2.18.0"

notes = \relative ces' {
  ces1 | c |
}

\new Staff <<
  \accidentalStyle modern-voice-cautionary
  \new Voice \notes
  \new NullVoice = "null" \notes
>>
NR http://lilypond.org/doc/v2.19/Documentation/notation-big-page#specialist-notation: Polyphony with shared lyrics

"The NullVoice context must be placed within a Staff context and contain notes that are already being displayed in that staff and that are also in the same octave. Otherwise the NullVoice may interact with the printed voices in unexpected ways. For example, arbitrary notes in the NullVoice may cause accidentals to appear (or disappear) on the staff."

check where your accidentalStyle should go!

Eluze
Reply | Threaded
Open this post in threaded view
|

Re: NullVoice + modern-voice-cautionary -> spurious cancellation

Dan Eble
Eluze <eluzew <at> gmail.com> writes:

> NR
> http://lilypond.org/doc/v2.19/Documentation/notation-big-page#specialist-notation:
> /Polyphony with shared lyrics/
>
> "The NullVoice context must be placed within a Staff context and contain
> notes that are already being displayed in that staff and that are also in
> the same octave. Otherwise the NullVoice may interact with the printed
> voices in unexpected ways. For example, arbitrary notes in the NullVoice may
> cause accidentals to appear (or disappear) on the staff."
>
> check where your accidentalStyle should go!
>
> Eluze

Thank you.  In my example, the NullVoice is inside a Staff, and the NullVoice
contains the very same notes as the displayed Voice, so I don't think that
passage in the NR explains the problem.

I am also following the NR on the use of accidentalStyle:

"There are many different conventions on how to typeset accidentals.
LilyPond provides a function to specify which accidental style to use.
This function is called as follows:
     \new Staff <<
       \accidentalStyle voice
       { ... }
>>
The accidental style applies to the current Staff by default (with the
exception of the styles piano and piano-cautionary, which are explained
below)."
-
Dan


_______________________________________________
bug-lilypond mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-lilypond
Reply | Threaded
Open this post in threaded view
|

Re: NullVoice + modern-voice-cautionary -> spurious cancellation

Eluze
Reply | Threaded
Open this post in threaded view
|

Re: NullVoice + modern-voice-cautionary -> spurious cancellation

Dan Eble
> I'm not top-posting.

Here is a simpler example.
Explicit cautionary accidentals are enough to trigger the problem.

\version "2.18.0"

notes = \relative c' {
  ces?4 c? cis? cisis?
}

\new Staff <<
  \new Voice \notes
  \new NullVoice = "null" \notes
>>



_______________________________________________
bug-lilypond mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/bug-lilypond