Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-03 Thread Volodymyr Prokopyuk
Hi Jean, It worked! I managed to move from a Nunjucks macro to a LilyPond music function for creating custom shaped slurs. Thank you very much for your substantial support! It would be much more difficult if ever possible for me without your help! Thank you, Vlad On Sun, Jul 2, 2023 at 9:44 PM

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-02 Thread Jean Abou Samra
Le dimanche 02 juillet 2023 à 18:47 +0200, Volodymyr Prokopyuk a écrit : > Thank you very much for multiple options! I've decided to try the first one. I > still have two difficulties > * How to create alist from the components ax, ay, ... (see comment in the code > below)? The control-points

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-02 Thread Volodymyr Prokopyuk
Hi Jean, Thank you very much for multiple options! I've decided to try the first one. I still have two difficulties - How to create alist from the components ax, ay, ... (see comment in the code below)? - How would I call this function? I guess c'4 \shapedSlur fu #'((bs . 3.0) (ht .

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-02 Thread Jean Abou Samra
Le dimanche 02 juillet 2023 à 14:28 +0200, Volodymyr Prokopyuk a écrit : > I wonder if there is a **way to define a music function with default > parameters** and be able to selectively specify some parameters using the > **parameters names** leaving all other parameters with their default

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-02 Thread Volodymyr Prokopyuk
Good afternoon, Jean and Valentin, Thank you very much for the up to the point explanation, working function, as well as alternatives syntax for object properties using Scheme metaprogramming! Lilypond is quite flexible, but with its own quirks as the handling of default parameters to a music

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread David Kastrup
Valentin Petzel writes: > Am Samstag, 1. Juli 2023, 18:48:31 CEST schrieb David Kastrup: >> The funny thing is that I suspect Han-Wen might still be surprised to >> hear what Staff.property "actually means". >> >> It's been around for quite longer than its "actual meaning". But of >> course I

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread Valentin Petzel
Am Samstag, 1. Juli 2023, 18:48:31 CEST schrieb David Kastrup: > The funny thing is that I suspect Han-Wen might still be surprised to > hear what Staff.property "actually means". > > It's been around for quite longer than its "actual meaning". But of > course I should be the last person to

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread David Kastrup
Valentin Petzel writes: > Hello Vlad, > > in addition to Jean’s answer it might be helpful to understand what > > Staff.property > > actually means. This get’s parsed to a list of the symbols 'Staff and > 'property. So you can in fact simply remain with scheme, and directly enter > #(list

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread Valentin Petzel
Hello Vlad, in addition to Jean’s answer it might be helpful to understand what Staff.property actually means. This get’s parsed to a list of the symbols 'Staff and 'property. So you can in fact simply remain with scheme, and directly enter #(list scope 'property) like this % \version

Re: Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread Jean Abou Samra
Le samedi 01 juillet 2023 à 16:42 +0200, Volodymyr Prokopyuk a écrit : > I'm trying to define a music function as below, however I've faced > difficulties with parameter predicates, visibility of the Staff object, and > flexibility of the solution ideally without code duplication > > **Desired

Music function to manage a moment and beat for the Staff and the Voice

2023-07-01 Thread Volodymyr Prokopyuk
Hi, I'm trying to define a music function as below, however I've faced difficulties with parameter predicates, visibility of the Staff object, and flexibility of the solution ideally without code duplication *Desired music function* (the code is not working) momentBeat =