bug-lilypond
[Top][All Lists]
Advanced

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

Re: \transposition + partcombine + midi


From: Mark Pim
Subject: Re: \transposition + partcombine + midi
Date: Thu, 3 Jul 2008 12:15:06 -0700 (PDT)

(Resending as I wasn't a member of the list before. Apologies if this appears 
twice)

OK, accepted, but the basic bug still stands (as I see it); my sample file 
causes the flute part (which is not transposed) to be affected by the 
\transposition command in the partcombined music.

Compare the MIDI output of the following two files, the first one produces {bes 
bes c c} in the flute part (WRONG) the second produces {c c d d} (CORRECT) and 
the only difference is the order of commands in my \transposed variable.

This does not happen if \partcombine is not used.

Mark

-------------
% BROKEN

\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{ }
}
----------------
%% CORRECT

\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'' {

%%% ORDER HERE HAS CHANGED ***

        \transposition bes

\set Staff.midiInstrument = "trumpet"

        \key d \major

        R1*2
}

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



>> 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.
>
>Please read the page about \transposition in the 2.11 docs.  This
>command does not influence pdf output.
>
>Cheers,
>- Graham



      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.html



      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at 
Yahoo! http://uk.docs.yahoo.com/ymail/new.html




reply via email to

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