lilypond-user
[Top][All Lists]
Advanced

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

Re: Transparent ledger lines


From: Ari Torhamo
Subject: Re: Transparent ledger lines
Date: Wed, 18 Mar 2009 21:40:00 +0200

ke, 2009-03-18 kello 06:13 -0600, Carl D. Sorensen kirjoitti:
> 
> 
> On 3/17/09 7:17 PM, "Ari Torhamo" <address@hidden> wrote:
> 
> > ti, 2009-03-17 kello 18:43 -0600, Carl D. Sorensen kirjoitti:
> >> 
> >> 
> >> On 3/17/09 6:37 PM, "Ari Torhamo" <address@hidden> wrote:
> >> 
> >>> Hello,
> >>> 
> >>> I have been wrestling with a problem for a while. I'm using these two
> >>> lines
> >>> 
> >>>    \override Voice.NoteHead #'transparent = ##t
> >>>    \override Voice.Stem #'transparent = ##t
> >>> 
> >>> to make certain note heads and stems transparent. This works fine, but
> >>> the problem is that the ledger lines connected to them stay visible. I
> >>> have tried several things to get rid of the ledger lines too, but
> >>> haven't found the solution.
> >>> 
> >>> I think these are what I have tried so far:
> >>> 
> >>> \override Staff.LedgerLine #'transparent = ##t
> >>> \override Staff.Ledger #'transparent = ##t
> >>> \override Staff.LedgerLineSpanner #'transparent = ##t
> >>> \override Voice.LedgerLineSpanner #'transparent = ##t
> >>> \override Voice.LedgerLine #'transparent = ##t
> >>> \override Voice.Ledger #'transparent = ##t
> >>> \override LedgerLineSpanner #'transparent = ##t
> >>> \override NoteHead #'no-ledgers = ##t
> >> 
> >> 
> >>> From the command hideNotes (which is found in the file 
> >>> ly/property-init.ly)
> >> I found that the property you want to use is
> >> 
> >> \override NoteHead #'no-ledgers = ##t
> >> 
> >> Carl
> > 
> > Thanks Carl. I actually tried this already, as you can see from my list
> > above, but it's good that you took this up again, because it seems that
> > I wasn't looking at the error message I got close enough. The "override"
> > part goes well, but when I try to set the ledger lines back to visible
> > with
> > 
> > \revert Voice.NoteHead #'no-ledgers = ##t
> > 
> > I get this:
> > 
> > Kr.kirk.ly:39:39: virhe: syntax error, unexpected '='
> >    \revert Voice.NoteHead #'no-ledgers
> >                                        = ##t
> > 
> > I need transparency for the ledger lines only temporarily, so I'd like
> > to know how to revert the change. Any ideas?
> 
> Just use
> 
> \revert Voice.NoteHead #'no-ledgers
> 
> When you use \revert, you don't give a value; the value is the default
> value.
> 
> You could also use 
> 
> \override Voice.NoteHead #'no-ledgers = ##f


This worked. Thanks very much, Carl :-)

-Ari-







reply via email to

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