lilypond-user
[Top][All Lists]
Advanced

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

Re: function for combined meters


From: Carl Sorensen
Subject: Re: function for combined meters
Date: Sun, 15 Aug 2010 09:19:29 -0600

On 8/15/10 12:57 AM, "Stefan Thomas" <address@hidden>
wrote:

> Dear community,
> I want to create variables for combined meters, which allows one to choose,
> how these measures are beamed.
> For example, an 7 eigths bar can be beamed in 223 or 232, etc.
> I would like to type something like
> \VIIeights #2 #2 #3
> I tried it with:
> VIIeights = #(define-music-function (parser location ONE TWO  )
> (number? number?   )
> 
>  #{ 
>        #(set-time-signature 7 8 '( $ONE $TWO ))
>        #(revert-auto-beam-setting '(end * * 7 8) $ONE 8 'Score )
> #(revert-auto-beam-setting '(end * * 7 8)  $ONE + $TWO 8 'Score )
>     #(revert-auto-beam-setting '(end * * 7 8) 5 8 'Score )
> #}
>   )
> Unfortunately this doesn't work!


IIRC, 2.12 uses beatGrouping to set beaming quite easily, as long as there
are no predefined beam endings.

So you might want to try looking in scm/auto-beam.scm and reverting all
rules for 7/8 time.  Then you would just do

\time 7/8
\set Score.beatGrouping = #'(2 2 3)

or alternatively

#(set-time-signature 7 8 '(2 2 3))

which is probably easier than messing with a music function.

HTH,
Carl
 




reply via email to

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