[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Combining notes and articualtions
From: |
Valentin Petzel |
Subject: |
Re: Combining notes and articualtions |
Date: |
Wed, 22 Dec 2021 17:17:25 +0100 |
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 recursively with some
offset for nested elements, somewhat like this. The appended file should work
for any nested music (although there can always be some cases I did not think
about). The make-time-table function still requires flat music.
Cheers,
Valentin
Am Mittwoch, 22. Dezember 2021, 16:12:01 CET schrieb 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 <valentin@petzel.at>:
> >
> > 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 tree.
> >
> > Cheers,
> > Valentin
apply-table-2.ly
Description: Text Data
signature.asc
Description: This is a digitally signed message part.