Le vendredi 28 avril 2023 à 15:08 +0200, Gianmaria Lari a écrit : > Dear Robin, > made some more tests. > Your code works well but it doesn't solve the problem because it returns the > "absolute" location of the notes while on the other hand in the variable > where you write the dynamic you use a relative location. For example if I > want to put a dynamic on the quarter number 3 and on the quarter number 17 I > can't write > > > > s4*3\p > > s4*17\f > > > but I have to write > > > > > s4*3\p > > s4*20\f > > > I'm sorry but it's my fault. I proposed a possible solution that was simply > not correct. And now I understand better the reason for the thread Kieren > linked. > > I probably have to go back to study the edition engraver :)
What about just putting all the expressions in parallel rather than in sequence? For example: ``` \version "2.24.1" mus = \repeat unfold 5 { c'4 d'4 f'4 g'4 } dyns = << % { s4*3 <>\p } % { s4*17 <>\p } % The above can also be written: \after 4*3 \p <> \after 4*17 \p <> >> \new Staff << \mus \dyns >> ```
signature.asc
Description: This is a digitally signed message part