Am Fr., 12. Okt. 2018 um 08:10 Uhr schrieb Jan-Peter Voigt <jp.vo...@gmx.de>: > > 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 lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user