lilypond-user
[Top][All Lists]
Advanced

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

Re: Add blank space before a note?


From: Christopher Meredith
Subject: Re: Add blank space before a note?
Date: Sun, 12 Sep 2010 23:03:35 -0500

On Sun, Sep 12, 2010 at 10:21 PM, Nick Payne
<address@hidden> wrote:
> On 13/09/10 12:22, Christopher Meredith wrote:
>>
>> Searched the manual and LSR to no avail. I'm using words for stanza
>> numbers and they end up on top of the barline. I want to space over
>> the first note in the measure to give some extra room but don't know
>> how. Is there something equivalent to /hspace I can use in the voice
>> context to just add extra empty space before a note?
>>
>
> You can modify the amount of horizontal space the barline uses. eg:
>
> \version "2.13.33"
>
> barspace = #(define-music-function (parser location extent) (pair?) #{
>    \once \override Staff.BarLine #'extra-spacing-width = #$extent
> #})
>
> \relative c'' {
>    \repeat unfold 2 { c4 c c c }
>    \barspace #'(0 . 3)
>    c c c c
>    \barspace #'(-3 . 5)
>    c c c c
> }
>
> Nick

This is genius, thanks!

In my application, the space I needed to create is in the first
measure of the system so the BarLine didn't work. I changed
"Staff.BarLine" to "Staff.Clef" and bingo, I'm all set. Thanks again!



reply via email to

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