lilypond-user
[Top][All Lists]
Advanced

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

Re: Autobeaming in 3/8 time


From: Damian leGassick
Subject: Re: Autobeaming in 3/8 time
Date: Wed, 16 May 2007 11:27:42 +0100

fwiw i think the default is right - what's being asked for is (to be pedantic) 6/16 beaming

anyway... if there aren't too may of them you could use a function like this

\version "2.11.23"
alt =
#(define-music-function (parser location music1 music2 music3 music4) (ly:music? ly:music? ly:music? ly:music?)
        #{              
                $music1
                \set stemLeftBeamCount = #1
                \set stemRightBeamCount = #2
                $music2
                \set stemLeftBeamCount = #2
                $music3
                $music4
                
        #})
{
        \time 3/8
        \alt  c'8[ c'16 c' c']
        
}

cheers

Damian

On 16 May 2007, at 10:35, Mats Bengtsson wrote:

You can use
\set Timing.beatLength = #(ly:make-moment 3 8)
but then you will get a funny looking result if you have the rhythm c8 c16 c16 c8 for example. I'm actually not convinced that LilyPond does what it should in these situations. There is a property subDivideBeams which seems to work
in some situations like
{
 \time 2/4
 b16 b b b b16 b b b
 \set subdivideBeams = ##t
 \set Score.beatLength = #(ly:make-moment 1 8)
 b16 b b b b16 b b b
}

but in 3/8 time, we get subdivided beams even if this property is set to false
(which it is by default).

  /Mats

Laura Conrad wrote:
Lily (version 2.10.20 on Ubuntu Linux) seems to have an odd default
for the autobeaming in 3/8 time.  When there's a dotted 8th note
followed by three 16th notes, it seems to me that the default behavior
should be to beam the three 16ths together with a double beam.  In
other words, what I want is for all the notes to be beamed together,
with a single beam between the dotted eighth and the first sixteenth,
and a double beam connecting the three sixteenth notes.

What Lily's doing is beaming the dotted eighth to the first sixteenth
note with a beam that has two bars on the right and one on the left,
a single beam between the first and second sixteenth notes, and a
double beam between the second and third sixteenth notes.
I have worked around this problem with the following code:

    es8. [ \set stemLeftBeamCount = #1
\set stemRightBeamCount = #2
c16 \set stemLeftBeamCount = #2
es g ]

Is there a more automated way to fix the problem in general?  I've
always found the documentation about the automatic beaming behavior
somewhat cryptic.  And if someone can figure out the way to automate
this case, can it become the default without breaking the rest of the
automatic beaming for 3/8 time, which is fine?



--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user





reply via email to

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