[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Markup and Score from scheme function
From: |
Jan-Peter Voigt |
Subject: |
Re: Markup and Score from scheme function |
Date: |
Fri, 12 Oct 2018 08:09:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
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
Am 11.10.2018 um 10:22 schrieb Sebastian Käppler:
> Hello,
>
> I wonder if it is possible to return markup AND score from a single
> scheme function, something like this:
>
> example = #(define-scheme-function (parser location) ()
> #{
> \markup "Test"
> \score {
> c'4
> }
> #}
> )
>
> I created some scripts for teaching and want to include task-markup
> before each score. Using markup and my functions outside of scheme
> works, but I couldn't get it to work from a single function.
>
> Kind regards
>
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
add-markup-and-score.ly
Description: Text Data
add-markup-and-score-2.18.ly
Description: Text Data