lilypond-user
[Top][All Lists]
Advanced

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

Re: beam-settings for triplets and sixtuplets


From: Stefan Thomas
Subject: Re: beam-settings for triplets and sixtuplets
Date: Mon, 5 Jan 2009 23:06:06 +0100

Dear Trevor,
thanks for Your advice! It works now!

2009/1/5 Trevor Daniels <address@hidden>:
> Stefan
>
> The default behaviour is to end 1/8 triplets at 1/4 beats in 4 4 time.
> So to beam sextuplets you need to revert the default beaming rules
> which end 1/12 notes at the 1/4 and 3/4 beats.
>
> The relevant default rules are (see scm/auto-beam.scm):
>
>   ((end * * 4 4) . ,(ly:make-moment 1 2))
>   ((end 1 12 4 4) . ,(ly:make-moment 1 4))
>   ((end 1 12 4 4) . ,(ly:make-moment 3 4))
>
> so I think this will do what you wanted:
>
> AT = #(define-music-function (parser location x) (ly:music?)
> #{
> %  #(override-auto-beam-setting '(end 1 12 * *) 1 4 'Staff)
> %  #(override-auto-beam-setting '(end 1 12 * *) 2 4 'Staff)
> %  #(override-auto-beam-setting '(end 1 12 * *) 3 4 'Staff)
>  \set tupletSpannerDuration = #(ly:make-moment 1 4 )
>  \times 2/3 { $x } \unset tupletSpannerDuration
>  #(revert-auto-beam-setting '(end 1 12 4 4) 1 4 'Staff)
> %  #(revert-auto-beam-setting '(end 1 12 * *) 2 4 'Staff)
>  #(revert-auto-beam-setting '(end 1 12 4 4) 3 4 'Staff)
> #})
>
> Trevor
>
> ----- Original Message ----- From: "Stefan Thomas"
> <address@hidden>
> To: "lilypond-user" <address@hidden>
> Sent: Monday, January 05, 2009 3:06 PM
> Subject: beam-settings for triplets and sixtuplets
>
>
>> Dear Lilypond-users,
>> in the following snippet I changed succesfully the beam-settings for
>> 8th-triplet.
>> But I couldn't revert it, for the sixputplets.
>>
>> Here the example:
>>
>> \version "2.12.0"
>> AT = #(define-music-function (parser location x) (ly:music?)
>> #{
>>
>>  #(override-auto-beam-setting '(end 1 12 * *) 1 4 'Staff)
>>  #(override-auto-beam-setting '(end 1 12 * *) 2 4 'Staff)
>>  #(override-auto-beam-setting '(end 1 12 * *) 3 4 'Staff)
>>  \set tupletSpannerDuration = #(ly:make-moment 1 4 )
>>  \times 2/3 { $x } \unset tupletSpannerDuration
>>  #(revert-auto-beam-setting '(end 1 12 * *) 1 4 'Staff)
>>  #(revert-auto-beam-setting '(end 1 12 * *) 2 4 'Staff)
>>  #(revert-auto-beam-setting '(end 1 12 * *) 3 4 'Staff)
>> #})
>>
>> \new Staff \relative { \time 4/4    \AT { d 8 e f g f e f e d  f e d}
>> %the beams behave like expected
>> \times 4/6 { c8 d e f e d } \times 4/6 { e f g a g f} %the beams,
>> unfortunatley, don't behave like expected
>> }
>>
>>
>> _______________________________________________
>> 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]