bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

\transposition + partcombine + midi


From: Mark Pim
Subject: \transposition + partcombine + midi
Date: Wed, 2 Jul 2008 17:48:26 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

> I'm not top posting.

Summary
-------
When \set Staff.midiInstrument comes before \transposition in music that is fed
into \partcombine, the top staff of the score has that transposition applied to
it in the MIDI output only. PDF output is as expected.

Demo
----

\version "2.10.33"

\paper{ ragged-right=##t }

untransposed = \relative c'' {
        \key c \major
        \set Staff.midiInstrument = "flute"
        
        R1
        c4 c d d
}

transposed = \relative c'' {
        % Putting this midiInstrument command BEFORE the \transposition
        % causes the flute part above to be transposed
        % in the MIDI output (but not in the PDF output)
        \set Staff.midiInstrument = "trumpet"
        \transposition bes
        \key d \major

        R1*2
}

\score {
        <<
                        \new Staff \untransposed
                        \new Staff \partcombine \transposed \transposed
        >>
        \layout{ }
        \midi{ }
}





reply via email to

[Prev in Thread] Current Thread [Next in Thread]