On 14-07-13 01:46 AM, Pierre Perol-Schneider wrote:
2014-07-13 5:38 GMT+02:00 Paul Morris <[email protected] <mailto:[email protected]>>:

    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- )

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to