|
From: | Sebastian Käppler |
Subject: | Re: Markup and Score from scheme function |
Date: | Sat, 13 Oct 2018 09:26:17 +0200 |
Am Fr., 12. Okt. 2018 um 08:10 Uhr schrieb Jan-Peter Voigt <address@hidden>:
>
> Hello Sebastian,
>
> what do you mean with "return"? Do want to add the score immediatly or
> do you want to return an object containing both?
> You used the parser-location arguments in your scheme-function, so I
> guess you are using stable (2.18). I created an example for 2.18
> (incomplete) and one for 2.19.82. For three possible functions.
>
> HTH
> Jan-Peter
Hi,
for immediate addings, why not the simpler:
example =
#(define-void-function (mrkp scr) (markup? ly:score?)
(add-text mrkp)
(add-score scr))
\example
\markup \bold "Test"
\score { c'4 }
\example
\markup \italic "Test"
\score { cis'4 }
Cheers,
Harm
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user
[Prev in Thread] | Current Thread | [Next in Thread] |