On 8/15/10 12:57 AM, "Stefan Thomas" <kontrapunktste...@googlemail.com> 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 _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user