lilypond-user
[Top][All Lists]
Advanced

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

Re: Displaying the first bar number


From: Daniel Johnson
Subject: Re: Displaying the first bar number
Date: Thu, 29 Sep 2005 15:15:47 -0700
User-agent: Mozilla Thunderbird 1.0.2 (X11/20050713)

Erik Sandberg wrote:

>On Thursday 29 September 2005 22.38, Daniel Johnson wrote:
>  
>
>>Dear list,
>>
>>Because I am typesetting a fragment of a larger work, I would like to
>>display the bar number on the first line.  By default Lilypond does not
>>do so, but begins displaying it on line 2.  In ly/engraver-init.ly, we
>>encounter the following line:
>>    barNumberVisibility = #default-bar-number-visibility
>>and in scm/output-lib.scm we see this:
>>    (define-public (default-bar-number-visibility barnum) (> barnum 1))
>>So, it seemed like I should be able to do the following:
>>    \set Score.barNumberVisibility = ##t
>>but this has no effect.  I also tried this:
>>    #(define-public (default-bar-number-visibility barnum) (#t))
>>but, as expected, it didn't work either.
>>    
>>
>
>You can look at the tips&tricks, grep for barNumberVisibility.
>
Hmm. Everything I see there (bar-number-every-five-reset and
bar-number-regular-interval) has to do with setting the printing of bar
numbers every n bars, which is not really what I want.  I want the bar
number to appear at the start of the first staff, as it does for all
subsequent staves.  Even doing this:
    \set Score.barNumberVisibility = #(every-nth-bar-number-visible 1)
puts the bar number on every bar *except* the first.

I'm starting to believe that barNumberVisibility is a red herring here,
and that deeper wizardry is required.  I'm trying to find my way around
the source code now, but any hints would be welcome.  I'm looking at
bar-number-engraver.cc but it has me stumped.

--Daniel





reply via email to

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