bug-lilypond
[Top][All Lists]
Advanced

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

bar-extents in magnified staves and staff groups


From: Cameron Crowe
Subject: bar-extents in magnified staves and staff groups
Date: Wed, 06 Mar 2024 22:20:29 +0000

1. It might be nice

to have the

systemStartDelimiter

(or whatever it's called) of a

StaffGroup

extend out to the

bar-extent

.

Here is an example with exaggerated bar extents to make the point clear

:

\new

StaffGroup

<<

\new

DrumStaff

\with

{

\override

StaffSymbol.line-count =

#1

\override

BarLine.bar-extent =

#'(-2.5 . 2.5)

}

\drummode

{ sn4 sn

\bar

"|"

sn sn

\bar

"|."

}

\relative

{

d'

d

d

d

}

>>

2. Additionally, it might be nice to add bar-extent to the list of props to fix 
on cue-sized/magnified staves in the docs?  Maybe there are a million other 
such things I just haven't run into, yet.
https://lilypond.org/doc/v2.25/Documentation/notation/setting-the-staff-size

#(define bar-line-props

'((BarLine thick-thickness)

(BarLine bar-extent)

(BarLine hair-thickness)

(BarLine kern)))

Here's a slightly simplified version of the cow and ride example where it 
becomes relevant
https://lilypond.org/doc/v2.25/Documentation/snippets/rhythms_003a-cow-and-ride-bell-example

#(define bar-line-props-a

'((BarLine thick-thickness)

(BarLine bar-extent)

(BarLine hair-thickness)

(BarLine kern)))

#(define bar-line-props-b

'((BarLine thick-thickness)

(BarLine hair-thickness)

(BarLine kern)))

<<

\new

DrumStaff

\with

{

instrumentName =

"Good Cue"

\magnifyStaff

#0.63

\override

StaffSymbol.line-positions =

#'(-2 3)

\override

BarLine.bar-extent =

#'(-1.0 . 1.5)

clefPosition =

0

.

5

#(revert-props 'magnifyStaff 0 bar-line-props-a)

}

\drummode

{ hh4 hh

\bar

"|"

tomfh tomfh

\bar

"|."

}

\new

DrumStaff

\with

{

instrumentName =

"Bad Cue"

\magnifyStaff

#0.63

\override

StaffSymbol.line-positions =

#'(-2 3)

\override

BarLine.bar-extent =

#'(-1.0 . 1.5)

clefPosition =

0

.

5

#(revert-props 'magnifyStaff 0 bar-line-props-b)

}

\drummode

{ hh4 hh

\bar

"|"

tomfh tomfh

\bar

"|."

}

\new

DrumStaff

\with

{

instrumentName =

"Regular"

%\magnifyStaff #0.63

\override

StaffSymbol.line-positions =

#'(-2 3)

\override

BarLine.bar-extent =

#'(-1.0 . 1.5)

clefPosition =

0

.

5

}

\drummode

{ hh4 hh

\bar

"|"

tomfh tomfh

\bar

"|."

}

>>

% Thanks!

reply via email to

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