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:22:22 -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!


If you really want use a music function, you might do the following (after
reverting all the predefined rules):

VIIeights = 
#(define-music-function (parser location beat-grouping) (list?)
    (set-time-signature 7 8 beat-grouping))

HTH,

Carl




reply via email to

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