[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Markup and Score from scheme function
From: |
Thomas Morley |
Subject: |
Re: Markup and Score from scheme function |
Date: |
Fri, 12 Oct 2018 10:28:10 +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