lilypond-user
[Top][All Lists]
Advanced

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

Re: Shorten ledger lines


From: Javier Ruiz-Alma
Subject: Re: Shorten ledger lines
Date: Sat, 12 Jul 2014 13:50:46 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Am 04.04.2014 12:35, schrieb Fredrik Wallberg:
Hi Urs,
you could try:

\override Staff.LedgerLineSpanner.length-fraction = 0.5

/ Fredrik

Thanks, that's exactly what I needed :-)

Somehow I thought this must be possible with a property override but wasn't bold enough to simply pretend I knew when asked ;-)
Best
Urs

_______
I'm trying to slightly reduce the extension of ledger lines with "length-fraction" and "minimum-length-fraction" in a dense passage, to increase available spacing in adjacent bars.
What is the proper usage for this override?  Below, I tried several values without any apparent change in ledger line length.


%%%%%%%%%%%%%%

\version "2.18.2"

\paper { indent = 0.0 ragged-right = ##t }

notes = { g8[ f e d c b c d e f] }

bars = { \repeat unfold 5 { \noBreak \notes } }

myScore = \relative c''''{

\time 5/4

r1 a4^"No override" \bars

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

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

r1 a4^"0.5 fraction" \bars

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

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

r1 a4^"0.1 fraction" \bars

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

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

r1 a4^"0.01 fraction" \bars

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

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

r1 a4^"2 fraction" \bars

}

\score {

\new Staff \with { \remove "Time_signature_engraver" }

\myScore

}




  


reply via email to

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