lilypond-user
[Top][All Lists]
Advanced

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

Re: Bar numbers under the music rather than above?


From: Janek Warchoł
Subject: Re: Bar numbers under the music rather than above?
Date: Sun, 24 Nov 2013 17:59:58 +0100

Hi Ryan,

did you try adapting the function?  Did you run into some trouble?

best,
Janek

2013/11/19 Janek Warchoł <address@hidden>:
> Hi Ryan,
>
> 2013/11/19 ryanmichaelmcclure <address@hidden>:
>> Hi there Janek! I tried your Scheme and it worked WONDERFULLY!
>
> Great, you're welcome!
>
>> That's exactly
>> what I want for larger bar numbers at the beginning! I am clueless about how
>> to do Schemes...I could probably drop a bunch of rocks on my keyboard and
>> get a better result than if I were to try and use it.
>
> Don't fool yourself like this.  Programming in Scheme is a skill that
> can be learned.  When i wanted to write the function i sent you, i
> didn't know anything about Scheme - it took me over an hour to get
> this working, but i succeeded!  And now i can do write some really
> awesome Scheme stuff, much faster.
>
>> How would I go about
>> adding direction in this scheme?
>
> First, install newest version of Frescobaldi and use it.  This will
> give you syntax highlithing [1] which makes understanding any code -
> including Scheme - much easier.
> Then, look at the function i've sent you and determine where to change
> it to make it work with directions instead of font-size.
>
> Here's another example function that may help you in understanding how
> these things work:
>
> \override Score.BarNumber #'self-alignment-X =
> #(lambda (grob)
>     (let ((break-dir (ly:item-break-dir grob)))
>       (set! (ly:grob-property grob 'self-alignment-X)
>             (if (= break-dir RIGHT)
>                 RIGHT
>                 CENTER))))
>
> Don't be intimidated, this should be easy to do.  Ask if you get stuck.
>
> hth,
> Janek
>
> [1] http://en.wikipedia.org/wiki/Syntax_highlighting



reply via email to

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