lilypond-user
[Top][All Lists]
Advanced

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

Re: get an accidental to not print


From: Trevor Bača
Subject: Re: get an accidental to not print
Date: Sat, 10 Feb 2007 10:42:56 -0600

On 2/10/07, Carl Sorensen <address@hidden> wrote:
Han-Wen Nienhuys <hanwen <at> lilypond.org> writes:

>
> Adam Good escreveu:
> > Hi all,
> >
> > sorry if this has been addressed already, it's hard for me to find any
> > reference in the archive.
> >
> > ! = print the accidental manually
> > ? = print a cautionary accidental
> >
> > what about _don't_ print an accidental? like i write "cis" but don't
> > want it to print the accidental?
> >
> I think this is not possible; might be mistaken though.
>

The documentation says that accidentals use the item-interface.

The item-interface has the property break-visibility. One of the predefined
variables for break-visibility is all-invisible, which looks to me like it
should keep accidentals from printing.

But I'm not sure what syntak to use to set break-visibility for the
item-interface for accidentals.

break-visibility wants a vector and there are apparently a collection
of constants that expand into vectors, like this ...

%%% BEGIN %%%

\version "2.11.16"

\new Staff {
  \override Accidental #'break-visibility = #all-invisible
  cis'4
  cis'4
  cis'4
  cis'4
  \break
  cis'4
  cis'4
  cis'4
  cis'4
}

%%% END %%%

... which does appear to work, oddly enough. Note no tick before
all-invisible (or all-visible or whatever), just like no tick before
numbers and colors.


--
Trevor Bača
address@hidden

reply via email to

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