Re: Modify flat flag appearance like beamed notes

2022-12-20 Thread Pierre Perol-Schneider
Le mar. 20 déc. 2022 à 11:09, Jean Abou Samra  a écrit :
...

> OK, here is another solution using an actual beam:
>
 ...
Very clever Jean! Thanks for the tip!!
Cheers,
Pierre


Re: Modify flat flag appearance like beamed notes

2022-12-20 Thread Jean Abou Samra



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


Re: Modify flat flag appearance like beamed notes

2022-12-20 Thread Jean Abou Samra

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:

\version "2.24.0"

\relative g' {
    \override Flag.stencil = #(straight-flag 0.5 0.8 0 1.0 0 1.0)
    \override Stem.length = 6.1
    r8. 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


Modify flat flag appearance like beamed notes

2022-12-19 Thread William Rehwinkel

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.


Thanks,

-Will


\version "2.24.0"
\relative g' {
    \override Flag.stencil = #flat-flag
    r8. g16 g g g g
    \override Beam.beam-thickness = #0.6 \override Beam.length-fraction 
= #1.0

    r8. g16 g g g g
}


--
William Rehwinkel


OpenPGP_signature
Description: OpenPGP digital signature