Lilypond output: Add dynamic notations in the right order