Preventing a cautionary accidental

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

Preventing a cautionary accidental

David Sumbler
%%%%%%%%%%%%%%%%%%
\version "2.19.82"

\language "english"

\score {
  \new Staff \with { \accidentalStyle modern } {
    \relative {
      \time 9/8
      e''8 fs gs a b c d e fs | g8 fs e d c b a g fs |
      } } }
%%%%%%%%%%%%%%%%%%

In the above example, a cautionary natural is given to the penultimate
note.  However, here it is not only unnecessary but is actually a
little confusing.

What is the simplest way of preventing the accidental from being
printed?

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

example.ps (22K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Preventing a cautionary accidental

Malte Meyn-3


Am 17.09.18 um 23:38 schrieb David Sumbler:
> What is the simplest way of preventing the accidental from being
> printed?

\once \omit Accidental

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

Re: Preventing a cautionary accidental

Aaron Hill
In reply to this post by David Sumbler
On 2018-09-17 2:38 pm, David Sumbler wrote:

> %%%%%%%%%%%%%%%%%%
> \version "2.19.82"
>
> \language "english"
>
> \score {
>   \new Staff \with { \accidentalStyle modern } {
>     \relative {
>       \time 9/8
>       e''8 fs gs a b c d e fs | g8 fs e d c b a g fs |
>       } } }
> %%%%%%%%%%%%%%%%%%
>
> In the above example, a cautionary natural is given to the penultimate
> note.  However, here it is not only unnecessary but is actually a
> little confusing.
>
> What is the simplest way of preventing the accidental from being
> printed?

You could change the accidental style temporarily:

%%%%
   e''8 fs gs a b c d e fs | g8 fs e d c b a \once \accidentalStyle
forget g fs
%%%%

-- Aaron Hill

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