Is it possible to set the volume of the midi tracks for each different track?

Till now I have:

one = { a b c d }
two = { d e f g }
global = { \key b \minor }
\score {
 \new Staff <<
   \new Voice = vone { \voiceOne << \global \one >> }
   \new Voice = vtwo { \voiceTwo << \global \two >> }
 >>
 \midi {
   \context { \Staff \remove "Staff_performer" }
   \context { \Voice \consists "Staff_performer" }
 }
}


I think I found a way to do this:

\score {
 \new Staff <<
   \new Voice = vone { \voiceOne << \global s8\pppp \one >> }
   \new Voice = vtwo { \voiceTwo << \global s8\ffff \two >> }
 >>
 \midi {
   \context { \Staff \remove "Staff_performer" }
   \context { \Voice \consists "Staff_performer" }
 }
}

I would be happy to hear about "cleaner" ways to achieve the same effect (for instance to set the volume of individual tracks/voices in the \midi block).

Best,

--ghe

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to