lilypond-user
[Top][All Lists]
Advanced

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

Re: reducing gap between vertical volta lines


From: Werner LEMBERG
Subject: Re: reducing gap between vertical volta lines
Date: Sat, 20 May 2023 09:04:26 +0000 (UTC)

>> As the attached image shows (Henle, Beethoven's violin sonatas
>> vol. 1), the vertical lines of the volta repeat are very near, much
>> nearer than what LilyPond produces by default.  What is the best
>> way to achieve this layout?
> 
> Is `shorten-pair` enough for you?
> 
> ```
> \version "2.24.1"
> 
> \repeat volta 2 {
>   c'1
>   \alternative {
>     \volta 1 {
>       \once \override Score.VoltaBracket.shorten-pair = #'(0 . -0.6)
>       c'1
>     }
>     \volta 2 { c'1 }
>   }
> }
> ```

Thanks for your solution.  Unfortunately, it doesn't work globally: as
soon as the barline becomes wider, this offset must be adjusted anew,
see attached image for the following example.

```
\version "2.24.1"

\repeat volta 2 {
  c'1
  \alternative {
    \volta 1 {
      \once \override Score.VoltaBracket.shorten-pair = #'(0 . -0.6)
      c'1
    }
    \volta 2 {
      \repeat volta 2 { c'1 }
    }
  }
}
```

Perhaps a new property for `VoltaBracket` is needed, say,
`edge-distance`:

* If set to `#f`, position the right vertical line of the left volta
  bracket at the left side of the barline (which is the default
  behaviour right now).
* If set to a numeric value, it specifies the distance between the
  right vertical line of the left volta bracket to the left vertical
  line of the right volta bracket (the position of the latter is
  fixed).

Shall I open an issue?


    Werner

PNG image


reply via email to

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