On 2023-04-06 2:26 pm, Dario Marrini wrote:
Thanks Aaron,
but, forgive me because I' wasn't clear in my request, my goal is to
get a
MIDI file performing the crescendo while making the right expression
inside
of it, then my request; if it'd be possible get it while keeping the
original writing it'd be better
I am not sure LilyPond is able to accurately perform this passage as
intended via MIDI.
If I were sequencing this, I would use a combination of CC messages for
both channel volume to perform the overall crescendo up to the
fortissimo and expression level to perform the swelling/damping of the
paired hairpins. (Channel or key aftertouch is another option, but that
requires a synth/patch that support it.) That is not to say this is the
only way to sequence this passage, but LilyPond is going to be limited
to note-on velocities.
----
The crescendo and decrescendo events are indeed in conflict and cannot
coexist on the same Voice. You could move the \cresc and terminating
\ff to another Voice or a Dynamics context (as shown below):
%%%%
<< { b\> g\! es\< g\! f\> es\! b\< es\! f2\) f-> f-> f-> }
\new Dynamics { s2*7\cresc s2\ff } >>
%%%%
Note that the \cresc above results in a dynamics line spanner which you
could remove:
%%%%
s2*7 -\tweak DynamicTextSpanner.style #'none \cresc
%%%%
Also note the fortissimo lives vertically aligned to the "cresc." text.
But a little tweak moves it closer to the note:
%%%%
s2 -\tweak Y-offset #1 \ff
%%%%
Of course, I think the line spanner helps clarify the passage, so I
would keep it and leave the \ff position alone.
-- Aaron Hill