Re: Markup and Score from scheme function

2018-10-14 Thread Thomas Morley
Am So., 14. Okt. 2018 um 12:57 Uhr schrieb Sebastian Käppler : > > Finally, I found that the given answers satisfy all my needs as of now. Thank > you very much! Glad you like it. > > Sebastian Käppler schrieb am Sa., 13. Okt. > 2018, 09:26: >> >> Add-text is even better. Well, 'add-text' is

Re: Markup and Score from scheme function

2018-10-14 Thread Sebastian Käppler
Finally, I found that the given answers satisfy all my needs as of now. Thank you very much! Sebastian Käppler schrieb am Sa., 13. Okt. 2018, 09:26: > Add-text is even better. Still curious if it's possible to get the > "context" inside the function. Isn't that what the location parameter is > f

Re: Markup and Score from scheme function

2018-10-13 Thread Sebastian Käppler
Add-text is even better. Still curious if it's possible to get the "context" inside the function. Isn't that what the location parameter is for? Thomas Morley schrieb am Fr., 12. Okt. 2018, 10:29: > Am Fr., 12. Okt. 2018 um 08:10 Uhr schrieb Jan-Peter Voigt < > jp.vo...@gmx.de>: > > > > Hello Se

Re: Markup and Score from scheme function

2018-10-12 Thread Thomas Morley
Am Fr., 12. Okt. 2018 um 08:10 Uhr schrieb Jan-Peter Voigt : > > 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 usin

Re: Markup and Score from scheme function

2018-10-12 Thread Sebastian Käppler
Thanks for your help, I found the add-score function to work in the way I want it to. Never stumbled across it in the documentation, though... Jan-Peter, I want to add both the markup and the score immediately. Another question, is it possible to determine inside the function if it is called from

Re: Markup and Score from scheme function

2018-10-11 Thread Jan-Peter Voigt
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.

Re: Markup and Score from scheme function

2018-10-11 Thread Aaron Hill
On 2018-10-11 1:22 am, Sebastian Käppler wrote: 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 scr

Markup and Score from scheme function

2018-10-11 Thread 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 be