[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Modify flat flag appearance like beamed notes
From: |
Jean Abou Samra |
Subject: |
Re: Modify flat flag appearance like beamed notes |
Date: |
Tue, 20 Dec 2022 10:54:54 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 |
Le 20/12/2022 à 10:53, Jean Abou Samra a écrit :
Le 20/12/2022 à 06:23, William Rehwinkel a écrit :
Dear list,
In the following tiny example, I override some variables to do with
how beamed notes are rendered, and also configure to use the
flat-flag stencil. I was wondering if it was possible to modify how
the unbeamed flag stencil was rendered so that it would look
identical to the lines rendered for beams? My apologies, wasn't able
to find anything for this when looking at the flag reference.
In the source code, flat-flag is defined as (straight-flag 0.55 1.0 0
1.0 0 1.0) here:
https://gitlab.com/lilypond/lilypond/-/blob/master/scm/flag-styles.scm#L125
You can modify those parameters as well as Stem.length to your liking:
OK, here is another solution using an actual beam:
\version "2.24.0"
\relative g' {
\override Flag.stencil = #flat-flag
r8. \set stemLeftBeamCount = 0 g16[] g g g g
\override Beam.beam-thickness = #0.6 \override Beam.length-fraction
= #1.0
r8. g16 g g g g
}
Best,
Jean
OpenPGP_signature
Description: OpenPGP digital signature