| Re: [tablatures] tie bug in 2.13.10? | 
[ Thread Index | 
Date Index
| More lilynet.net/tablatures Archives
] 
On 1/12/10 9:41 AM, "Marc Hohl" <marc@xxxxxxxxxx> wrote:
> Federico Bruni schrieb:
>> Il 03/01/2010 00:25, Trevor Daniels ha scritto:
>>> It was caused by my changes.  Sorry :(
>>> I've just pushed a fix.
>> 
> Hi Federico,
> 
> Trevor has enabled a whiteout property, which has to be set to #f,
> so every appearance of
> 
> \once \override TabNoteHead #'transparent = ##t
> 
> should be followed by
> 
> \once \override TabNoteHead #'whiteout = ##f
> 
> in white-tabhead.ly
This seems to me to call for a new variable
hideTabNoteHead = {
  \once \override TabNoteHead #'transparent = ##t
  \once \override TabNoteHead #'whiteout = ##f
}
and to replace 
\once \override TabNoteHead #'transparent = ##t
with 
\hideTabNoteHead
> 
> and every
> 
> (ly:grob-set-property! right-tab-note-head 'transparent #t)
> 
> should be followed by
> 
> (ly:grob-set-property! right-tab-note-head 'whiteout #f)
> 
> in bend.ly.
Similarly, we should have
(define (hide-tab-note-head note-head)
  (ly:grob-set-property! note-head 'whiteout #f)
  (ly:grob-set-property! note-head 'transparent #t))
and replace
(ly:grob-set-property! right-tab-note-head 'transparent #t)
with 
(hide-tab-note-head right-tab-note-head)
On a related note, Marc, why do you want to use ly:grob-set-property!
instead of using an override function?
Thanks,
Carl