Juergen Reuter <[EMAIL PROTECTED]> writes:

> By the way, do we have a generic substitution function that you can
> pass an event type and some replacement expression to?  Maybe
> something like
>
> (replace-for-all-matches
>   #(define-matching-expression (any-music-event-of-type 'NoteEvent))
>   Music
>   #(define-replacement-expression
>     (original-match) (... <an expression in terms of original-match that
>     is used as replacement for original-match> ...))),

There is some kind of music pattern matcher in scm/display-lily.scm: the
with-music-match macro, which is not exported from this module however.

nicolas


_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to