Re: Combining notes and articualtions

2021-12-22 Thread Valentin Petzel
Hello Leo, You could use for-some-music, but this would require us to handle lots of different cases to properly count the time. So we rather want to keep using ly:music-length to determine the actual length of a bit of music. Rather I suggest doing it like before, but calling the method recurs

Re: Combining notes and articualtions

2021-12-22 Thread Leo Correia de Verdier
Hi Valentin! Thanks very much for your help! How would I go about to make the function climb the music tree? (There are nested sequential music expressions, needed for another function to work) Could I use for-some-music in some way? > 21 dec. 2021 kl. 00:15 skrev Valentin Petzel : > > Hello

Re: Combining notes and articualtions

2021-12-21 Thread Leo Correia de Verdier
Sorry, It was my mistake, I was confusing what of my own code I was trying it on. > 21 dec. 2021 kl. 09:03 skrev Jean Abou Samra : > > Le 21/12/2021 à 00:12, Leo Correia de Verdier a écrit : >> Thanks a lot! >> >> It’s a perfect solution for the typesetting, but I wonder if it would be >> poss

Re: Combining notes and articualtions

2021-12-21 Thread Valentin Petzel
Hello Jean, That is not correct. You’re getting this message because you didn’t specify a direction for the Script. Basically the default direction of most articulations depends on the stem direction, and thus the calculation of the direction requires the presence of a proper direction-source,

Re: Combining notes and articualtions

2021-12-21 Thread Jean Abou Samra
Le 21/12/2021 à 00:12, Leo Correia de Verdier a écrit : Thanks a lot! It’s a perfect solution for the typesetting, but I wonder if it would be possible to process them earlier, so I could have them work with the articulate script or at least consistently affect midi playback. It may well be

Re: Combining notes and articualtions

2021-12-21 Thread Jean Abou Samra
Le 21/12/2021 à 01:20, Valentin Petzel a écrit : Hello Jean! That is a nice solution, but it has some issues. For one thing this will case problem if we have a Script on a skip that is used for something like spacing a markup (resulting in a compile error if a skip has both a script and for exam

Re: Combining notes and articualtions

2021-12-20 Thread Valentin Petzel
Hello Jean! That is a nice solution, but it has some issues. For one thing this will case problem if we have a Script on a skip that is used for something like spacing a markup (resulting in a compile error if a skip has both a script and for example a markup). I rather suggest to perform the c

Re: Combining notes and articualtions

2021-12-20 Thread Valentin Petzel
Hello Leo, Maybe something like this? Here we create a time table of articulations, and then apply these articulations on music. This method does only handle flat music for now. If there are nested constructs of consecutive music we’d need to modify the function to basically walk the full music

Re: Combining notes and articualtions

2021-12-20 Thread Leo Correia de Verdier
Thanks a lot! It’s a perfect solution for the typesetting, but I wonder if it would be possible to process them earlier, so I could have them work with the articulate script or at least consistently affect midi playback. Best wishes /Leo > 20 dec. 2021 kl. 23:36 skrev Jean Abou Samra : > >

Re: Combining notes and articualtions

2021-12-20 Thread Jean Abou Samra
Le 20/12/2021 à 22:28, Leo Correia de Verdier a écrit : Dear list! Could you help me with a clever way to copy/clone the articulations from simultaneous notes in one sequential expression to another? So that I could for instance enter the total articulations of a phrase as \version "2.23.3" <