|
From: | Madoka Machitani |
Subject: | Re: scheme function help |
Date: | Mon, 6 May 2013 19:39:16 +0900 |
Madoka Machitani <address@hidden> writes:Why wouldn't you do
> Now, is it correct to assume you are trying to achieve something like
> this? \insMark "a" musical-sequence
>
> If so, the function would be:
>
> insMark =
> #(define-music-function (parser location mark mus)
> (markup? ly:music?)
> (set! (ly:music-property mus 'elements)
> (cons (make-music 'MarkEvent 'label mark)
> (ly:music-property mus 'elements)))
> mus)
>
> This is a crude example and won't work with single note events like c'4
#{ \mark #mark #mus #})
insMark =
#(define-music-function (parser location mark mus)
(markup? ly:music?)
instead? Note that depending on the version, #mark and/or #mus might
need to be $mark or $mus instead.
--
David Kastrup
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user
[Prev in Thread] | Current Thread | [Next in Thread] |