bug-lilypond
[Top][All Lists]
Advanced

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

Re: Dropped MIDI Instruments


From: Will Oram
Subject: Re: Dropped MIDI Instruments
Date: Sat, 11 Jun 2005 16:24:29 -0500

I also forgot to try this on the .30 version...this fixes the bug below. So, it can be ignored. Any idea what was going on, though?

Will

On Jun 11, 2005, at 2:51 PM, Will Oram wrote:

This is very odd. All instruments are printed as expected. In MIDI, though, some instruments are dropped (as in, no MIDI player acknowledges its existence)...but this happens in only one movement!

Let's go through the process. This is what the trouble movement outline looks like (two instruments are commented out because I haven't written them, so they are not included):

        \score {
            \simultaneous {
                \new StaffGroup <<
                        \new Staff <<
                                \set Staff.instrument = \markup { "Flauti" }
                                \set Staff.instr = \markup { Fl. }
                                \set Staff.midiInstrument = #"flute"
                                \parameters
                                \barlinesthree
                                \spacingthree
                                \new Voice { \Flutethree }
                        >>
                        
                    \new Staff <<
                                \set Staff.instrument = \markup { "Oboi" }
                                \set Staff.instr = \markup { Ob. }
                                \set Staff.midiInstrument = #"oboe"
                                \barlinesthree
                                \partcombine
                                        \relative g'' { \OboeOnethree }
                                        \relative b' { \OboeTwothree }
                        >>
                                
                        \new Staff <<
                                \set Staff.instrument = \markup { "Fagotti" }
                                \set Staff.instr = \markup { "Fg." }
                                \set Staff.midiInstrument = #"bassoon"
                                \barlinesthree
                                \new Voice { \Bassoonthree }
                        >>
                >>
        
                \new StaffGroup <<
                    \new Staff {
                                \set Staff.instrument = \markup { Corni in
                                        \column { \line {G} \line {Sol} } }
                                \set Staff.instr = \markup { "Cor." }
                                \set Staff.midiInstrument = #"french horn"
                                \new Voice { \Hornthree }
                        }
                >>
                
                \new Staff {
                        \set Staff.instrument = \markup { Timpani in
                                \column { \line {D   G} \line {Re Sol} } }
                        \set Staff.instr = \markup { "Timp." }
                        \set Staff.midiInstrument = #"timpani"
                        \new Voice { \Timpanithree }
                }
        
                \new StaffGroup <<
                    \new GrandStaff <<
                                \new Staff <<
                                        \set Staff.instrument = \markup { "Violino 
I" }
                                        \set Staff.instr = \markup { "Vl. I" }
                                        \set Staff.midiInstrument = #"string 
ensemble 1"
                                        \barlinesthree
                                        \new Voice { \ViolinIthree }
                                >>
                
                                \new Staff <<
                                    \set Staff.instrument = \markup { "Violino 
II" }
                                    \set Staff.instr = \markup { "Vl. II" }
                                    \set Staff.midiInstrument = #"string ensemble 
1"
                                    \barlinesthree
                                    \new Voice { \ViolinIIthree }
                                >>
                    >>
        
        
                    \new Staff <<
                                \set Staff.instrument = \markup { "Viola" }
                                \set Staff.instr = \markup { "Vla." }
                                \set Staff.midiInstrument = #"string ensemble 1"
                                \barlinesthree
                                \new Voice { \Violathree }
                    >>
                >>
                
            }
        
            \layout {
                \context { \RemoveEmptyStaffContext }
\context { \Score \override InstrumentName #'space-alist = #'((left-edge . (extra-space . 2))) }
            }
            \midi { \tempo 4 = 138 }
        }

%%% END %%%

When compiled in lily .29 OS X binary, every instrument appears in print: flute, oboe, bassoon, horn, trumpet, timpani, violin 1/2, viola, cello/bass. When played in timidity, though, it's clear oboe and timpani are not playing. Indeed, timidity does not even recognise them:

Format: 1  Tracks: 7  Divisions: 384
Text: Creator: GNU LilyPond 2.5.27
Text: Generated automatically by: GNU LilyPond 2.5.27
Text: at Wed Jun  8 01:58:20 2005
Text: at Wed Jun  8 01:58:20 2005
Sequence: Track 0
Instrument: flute
Track name: \new
Instrument: bassoon
Track name: \new
Instrument: french horn
Track name: \new
Instrument: string ensemble 1
Track name: \new
Instrument: string ensemble 1
Track name: \new
Instrument: pizzicato strings
Instrument: string ensemble 1
Instrument: string ensemble 1
Track name: \new
Instrument: pizzicato strings
Instrument: string ensemble 1

It's confirmed by opening the .mid in Sibelius...timpani and oboe are not there.

Next I tried rebuilding the code in the fink-built lily .23. And...the instruments are back again.

Format: 1  Tracks: 9  Divisions: 384
Text: Creator: GNU LilyPond 2.5.23
Text: Generated automatically by: GNU LilyPond 2.5.23
Text: at Sat Jun 11 13:15:23 2005
Text: at Sat Jun 11 13:15:23 2005
Sequence: Track 0
Instrument: flute
Track name: \new
Instrument: oboe
Track name: \new
Instrument: bassoon
Track name: \new
Instrument: french horn
Track name: \new
Instrument: timpani
Track name: \new
Instrument: string ensemble 1
Track name: \new
Instrument: string ensemble 1
Track name: \new
Instrument: pizzicato strings
Instrument: string ensemble 1
Instrument: string ensemble 1
Track name: \new
Instrument: pizzicato strings
Instrument: string ensemble 1

Therefore there is some problem -- I'm guessing -- in .23 < x < .29 that is causing instruments to be excluded from the MIDI.

Will Oram // Genius @ Large // AIM spamguy21
spamguy (at) foxchange (dot) com // wro1 (at) cwru (dot) edu


Will Oram // Genius @ Large // AIM spamguy21
spamguy (at) foxchange (dot) com // wro1 (at) cwru (dot) edu





reply via email to

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