Sebastien Gross <[EMAIL PROTECTED]> writes:

> The question is how to factorise an expression like:
> \tag #'tab {<ees bes' d>4} tag #'score {<ees bes' d>8 ~ <ees bes' d>}
> to something like:
>
> \tabRhythme {<ees bes' d>} #'(4) #'(8 8)
>
> I thought to write a function like:
>
> tabRhythme = #(define-music-function (parser location music tab score)
>       (ly:music? integer? integer?)
>       ...
>       )


The first thing to do is to observe what the input music looks like, and
what the output of your function should look like, using
\displayMusic. The purpose of your function will then be to transform
one into the other.

  \displayMusic <ees bes' d>4
  \displayMusic { \tag #'tab {<ees bes' d>4}
                  \tag #'score {<ees bes' d>8 ~ <ees bes' d>} }

nicolas


_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to