[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Assign Dynamics Context to PianoStaff for MIDI
From: |
David Kastrup |
Subject: |
Re: Assign Dynamics Context to PianoStaff for MIDI |
Date: |
Fri, 10 Nov 2017 11:14:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Gianmaria Lari <address@hidden> writes:
> I simplified the code but this also does not create any dynamics:
>
> \version "2.19.80"
>
> dynamics = {s4\ppppp \< s4 s4 s4 s4 s4 s4 s4 \!\fffff}
> music = \fixed c' {c d e f c d e f}
>
> \score {
> \new Staff {<<\music \dynamics>>}
> \midi { }
> \layout {}
> }
In ly/performer-init.ly I read
\context {
\type "Performer_group"
\name Voice
\consists "Dynamic_performer"
\consists "Tie_performer"
\consists "Piano_pedal_performer"
\consists "Note_performer"
\consists "Beam_performer"
\consists "Slur_performer"
}
so dynamics are performed at Voice level, but you change them in a
_different_ Voice.
Try \new Staff { \new Voice <<\music \dynamics>>} instead in order to
get the dynamics into the same voice.
--
David Kastrup