On Sun, 15 Oct 2006, Nicolas Sceaux wrote:
Juergen Reuter <address@hidden> 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
Thanks, I will look into it!
Greetings,
Juergen