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

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-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-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

Changes to Notename - lost some functionality

2023-12-13 Thread Sebastian Käppler
Dear lilypond experts, I seem to have missed some changes to LilyPond between 2.19.82 and current versions. I use a quite big script to automatically generate some music theory tasks for my students (in German). I'll post the complete example below. However, my code for creating note names doesn't

Re: Changes to Notename - lost some functionality

2023-12-14 Thread Sebastian Käppler
Hello and thank you very much for your input on this topic. I will try to follow the suggestions and implement my own procedure for the note names. I'll report back if I have success or new questions. Again, thank you very much!

Bug in NoteName - Accidentals?

2023-12-14 Thread Sebastian Käppler
Hello again, following the Changes to Notename - topic, I have another question. Using printAccidentalNames seems to override the printNotesLanguage property by reverting it to the document language. Try the following example and comment out one of the two lines. Expected result would be to get c'

Can't call some functions from translation-functions

2023-12-16 Thread Sebastian Käppler
Hello, I'm trying to use some of the functions in translation-functions.scm to create my own note name markup. However, if I use note-name->lily-string or octave->lily-string, I get an "unbound variable" error for that function. I even tried to copy the whole note-name-markup code from the source

Re: Can't call some functions from translation-functions

2023-12-16 Thread Sebastian Käppler
And that did the trick. Thank you very much, now I can get to actually work on my markup... Am Sa., 16. Dez. 2023 um 14:28 Uhr schrieb Aaron Hill < lilyp...@hillvisions.com>: > On 2023-12-16 5:27 am, Aaron Hill wrote: > > On 2023-12-16 5:20 am, Sebastian Käppler wrote: &