lilypond-user
[Top][All Lists]
Advanced

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

Re: Strange beamed-extreme-minimum-free-lengths behaviour etc.


From: Risto Vääräniemi
Subject: Re: Strange beamed-extreme-minimum-free-lengths behaviour etc.
Date: Wed, 10 Oct 2007 04:11:07 -0700 (PDT)

Hi Han-Wen,


Han-Wen Nienhuys-5 wrote:
> 
> No, the function seems to be almost the same as beamed-lengths, but
> adds the size of any tremolo and the heights of the beams to that as
> well.  It's not completely clear to me that these two are independent.
>  Unfortunately this code is old and very hairy.
> 
> Jan, can you comment?
> 

It's very likely that I've misunderstood and misused some of the parameters.
:-) However, may I try to clarify how I came to my assumptions and how I'm
using these parameters with one not-so-small snippet? Thanks.

The first staff / system  / line is printed using the default values:
nothing special there. For the next one the
beamed-extreme-minimum-free-lengths has been modified. This seems to
lengthen the stems, which are forced against the default direction and are
by default very short. The stems lengths of 1/8 and 1/16 notes are almost
identical. However the eighth stems on the middle line are shorter than the
1/16s (red oval).

If I twiddle with the beamed-minimum-free-lengths I can manage to get the
1/8 and 1/16 stems to match on the b-line. However this messes up the stems
in bar 13 (green oval).

When also the beamed-lengths is modified I get a result that pretty much
pleases me (except the case I introduced in my previous post).

If I increase just the beamed-minimum-free-lengths the forced short stems
are not affected but otherwise the stem lengths increase (blue ovals). It
also surprised me that in the define-grobs.scm file the
beamed-minimum-free-lengths were set smaller (shorter) than the
beamed-extreme-minimum-free-lengths. 

I don't try to argue with you since you wrote that file and certainly know
its contents better. It just seems to me that concerning stem lengths every
parameter seem to be closely linked to each other and they may cause
unexpected behaviour. Anyway, if I've been using them in a wrong way and
there is a better way to do the trick, please, let me know.


-Risto

http://www.nabble.com/file/p13133673/tweaked_beams.png Tweaked beams in PNG 

%%%%%%%%% Start %%%%%%%%%%
\version "2.11.32"

\paper{ indent = #(* mm 0)}

tweakLengthsI = {
    \override Stem #'details #'beamed-extreme-minimum-free-lengths =  #'(2.5
1.65 1.4)
}

tweakLengthsII = {
    \override Stem #'details #'beamed-minimum-free-lengths =  #'(3.1 1.8
1.4)
}

tweakLengthsIII = {
    \override Stem #'details #'beamed-minimum-free-lengths =  #'(2.8 1.8
1.4)
    \override Stem #'details #'beamed-lengths =  #'(3.2 3.2 1.5)
}

tweakLengthsIV = {
    \revert Stem #'details #'beamed-minimum-free-lengths
    \revert Stem #'details #'beamed-extreme-minimum-free-lengths
    \revert Stem #'details #'beamed-lengths
    \override Stem #'details #'beamed-minimum-free-lengths = #'(3.2 3.0 3.0)
}

one = \relative c' \context Voice = "I"
{
    \stemUp
    \time 2/4    
    
    e'8^\markup \left-align \small{Default settings} e e16 e e32 e e e
    b8 b b16 b b32 b b b
    a8 a a16 a a32 a a a 
    e8 e e16 e e32 e e e \break \tweakLengthsI    
    
    e'8^\markup \left-align \small{Tweaked only
beamed-extreme-minimum-free-lengths} 
        e e16 e e32 e e e
    b8 b b16 b b32 b b b 
    a8 a a16 a a32 a a a 
    e8 e e16 e e32 e e e \break \tweakLengthsII
    
    e'8^\markup \left-align \small{Tweaked also beamed-minimum-free-lengths} 
        e e16 e e32 e e e
    b8 b b16 b b32 b b b 
    a8 a a16 a a32 a a a
    e8 e e16 e e32 e e e \break \tweakLengthsIII
    
    e'8^\markup \left-align \small{Tweaked also beamed-lengths} 
        e e16 e e32 e e e
    b8 b b16 b b32 b b b 
    a8 a a16 a a32 a a a
    e8 e e16 e e32 e e e \break \tweakLengthsIV
    
    e'8^\markup \left-align \small{Tweaked only beamed-minimum-free-lengths} 
        e e16 e e32 e e e
    b8 b b16 b b32 b b b
    a8 a a16 a a32 a a a 
    e8 e e16 e e32 e e e 
}

two = \relative c' \context Voice = "II"
{
    \stemDown
    \time 2/4
    
    e'8 e e16 e e32 e e e
    b8 b b16 b b32 b b b
    a8 a a16 a a32 a a a 
    e8 e e16 e e32 e e e \break \tweakLengthsI
    
    e'8 e e16 e e32 e e e
    b8 b b16 b b32 b b b
    a8 a a16 a a32 a a a 
    e8 e e16 e e32 e e e \break \tweakLengthsII
    
    e'8 e e16 e e32 e e e
    b8 b b16 b b32 b b b 
    a8 a a16 a a32 a a a 
    e8 e e16 e e32 e e e \break \tweakLengthsIII
    
    e'8 e e16 e e32 e e e
    b8 b b16 b b32 b b b 
    a8 a a16 a a32 a a a
    e8 e e16 e e32 e e e \break \tweakLengthsIV
    
    e'8 e e16 e e32 e e e
    b8 b b16 b b32 b b b 
    a8 a a16 a a32 a a a
    e8 e e16 e e32 e e e 
}

\new Staff 
{
    <<
        \one
        \two
    >>
}
%%%%%%%%%% End %%%%%%%%%%

-- 
View this message in context: 
http://www.nabble.com/Strange-beamed-extreme-minimum-free-lengths-behaviour-etc.-tf4595137.html#a13133673
Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com.





reply via email to

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