Thx David,
I feel it's getting close, but I'm stuck waiting for help because I don't understand the Scheme code. :)
Thank you!
Pierre

Le 22-10-2014 18:12, David Nalesnik a écrit :
Hi,

On Wed, Oct 22, 2014 at 8:59 AM, Les Editions Valmajour <p...@editions-valmajour.fr <mailto:p...@editions-valmajour.fr>> wrote:

    Hi Kieren,
    I thought about this option, and I found how to add a counter in
    the shortInstrumentName; http://lsr.di.unimi.it/LSR/Item?id=543
    (and it works and give the perfect placement I want) but I don't
    know how to link it to the number of the bar beginning the system :)
    Thanks anyway,
    Best regards,
    Pierre

    Le 22-10-2014 15:55, Kieren MacMillan a écrit :

        Bonjour, Pierre!

            I would like to position the bar numbers for a piano
            system in front of and centered on StartSystem Brace. Like
            if it was in the place of the Instrument Name (or Short
            Instrument Name).

        The best way, I imagine, would be for shortInstrumentName to
        actually *be* a call-back function that displays the bar number.


Interesting idea to hook onto instrument names since that would handle the positioning.

See my experiments in the attached file.

I first tried an engraver, but you can see the problem! The bar number text is set once and for all to 21--which is the last measure LilyPond sees (one beyond the 100 of the score).

I next tried a callback for InstrumentName.after-line-breaking. It works, but there's no way I know of to get the bar number, so you have to add it to the list that the function is called with.

Maybe the best way is to write something to change the positioning of BarNumber, but I need to work on something other than LilyPond for the time being, so any takers welcome!

Hope this helps.

Best,
David

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to