lilypond-user
[Top][All Lists]
Advanced

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

Re: Shorten ledger lines


From: Colin Campbell
Subject: Re: Shorten ledger lines
Date: Sun, 13 Jul 2014 13:03:09 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 14-07-13 01:46 AM, Pierre Perol-Schneider wrote:
2014-07-13 5:38 GMT+02:00 Paul Morris <address@hidden>:
 
Here we go:

Nice Paul !
And here's a complement to get rid of the gap between startStaff and stopStaff :

\version "2.18.2"

{
  g d c d
  c d
  \once\hide Staff.BarLine \bar "|"
  \stopStaff
  \startStaff
  \override Staff.LedgerLineSpanner.length-fraction = #0.1
  \override Staff.LedgerLineSpanner.minimum-length-fraction = #0.1
  g d
  c d c d
  c d
  \once\hide Staff.BarLine \bar "|"
  \stopStaff
  \startStaff
  \override Staff.LedgerLineSpanner.length-fraction = #1
  \override Staff.LedgerLineSpanner.minimum-length-fraction = #1
  g d
  c d c d
}


Would you mind if I put it in the LSR ?
Cheers,
Pierre


How about tucking the overrides into variables, so they could be put into an \include library?

\version "2.18.2"


sledger = { % shorten ledger lines

\once\hide Staff.BarLine \bar "|"

\stopStaff

\startStaff

\override Staff.LedgerLineSpanner.length-fraction = #0.1

\override Staff.LedgerLineSpanner.minimum-length-fraction = #0.1

}


lledger = { % lengthen ledger lines

\once\hide Staff.BarLine \bar "|"

\stopStaff

\startStaff

\override Staff.LedgerLineSpanner.length-fraction = #1

\override Staff.LedgerLineSpanner.minimum-length-fraction = #1

}


\score {

\relative c' {

g d c d

c d

\sledger

g d

c d c d

c d

\lledger

g d

c d c d

}

\layout {}

}


Cheers,
Colin

-- 
I've learned that you shouldn't go through life with a catcher's mitt on both hands. You need to be able to throw something back. 
-Maya Angelou, poet (1928- )

reply via email to

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