Hi Phil,
Thank you for the hint. No I had not tried \new Dynamics, but now I have. And sorry, that works even worse. Now there is no dynamic difference, even with no name on the \Music voice. It's a pity, because when you put the question I got the feeling that, this of course is the answer, the developers had snapped the problem and put the solution into the \new Dynamics concept.
/Kaj

On 2016-05-30 10:38, Phil Holmes wrote:
Have you tried \new Dynamics { \Dynamics } instead of \new Voice ?

--
Phil Holmes

    ----- Original Message -----
    *From:* [email protected] <mailto:[email protected]>
    *To:* Lilypond-User Mailing List <mailto:[email protected]>
    *Sent:* Monday, May 30, 2016 9:28 AM
    *Subject:* MIDI and template for dynamics

    Hi all,

    Using a template for dynamics is a convenient way of writing, when
    dealing with voices following the same dynamics pattern. Basically
    it works very well for producing beautiful scores, and also
    controlling MIDI. But now I have found something that might be a
    bug, even if I hope it is just a mistake of mine. Here is a small
    example:

    |\version "2.18.2"||
    ||||
    ||Music = {||
    ||  a'4 a' a' a'||
    ||  a'4 a' a' a'||
    ||}||
    ||||
    ||Dynamics = { ||
    ||  s4\ppp s s s||
    ||  s4\fff s s s||
    ||}||
    ||||
    ||\score {||
    ||   \new Staff <<||
    ||     \new Voice { \Music }||
    ||     \new Voice { \Dynamics }||
    ||   >>||
    ||||
    ||  \layout {}||
    ||  \midi {}||
    ||}|

    It produces a nice score and also the MIDI reflects the dynamics.
    But, if I name one of the Voices, which I need to for Lyrics, the
    score is still fine, but in the MIDI file nothing of dynamics can
    be heard. Just one level all the time.

    |\version "2.18.2"||
    ||||
    ||Music = {||
    ||  a'4 a' a' a'||
    ||  a'4 a' a' a'||
    ||}||
    ||||
    ||Dynamics = { ||
    ||   s4\ppp s s s||
    ||   s4\fff s s s||
    ||}||
    ||||
    ||\score {||
    ||  \new Staff <<||
    ||    \new Voice = "SA" { \Music }||  % <-- named voice
    ||    \new Voice { \Dynamics }||
    ||  >>||
    ||||
    ||   \layout {}||
    ||   \midi {}||
    ||}||
    |||

    As you see the above examples are written for version 2.18.2, the
    latest stable, but I have tested also in version 2.19.42 without
    any difference.

    /Kaj

    ------------------------------------------------------------------------
    _______________________________________________
    lilypond-user mailing list
    [email protected]
    https://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to