Hi. I have succeded in getting the midi files to separate voices into channels,
allowing me to produce separate audio voice-files for my choir  by doing 
something
I found in the list archives:

\midi {
        \context{ \Staff \remove "Staff_performer" }
        \context { \Voice \consists "Staff_performer" }
    }


This has been working great. It makes timidity play each voice in a separate 
channel, 
numbered according to its place in the score, and gives the channel the name of 
the 
voice. I can make separate audio files by doing

timidity -Q2,3,4 -Ow soprano.wav

But now for some reason I have *one* file where this doesn't work and I can't 
tell why. 
I don't see any difference at all.

Can anyone see what's going on? 
When I play the midi from mnoga_pokr_satb.ly, I get the desired result.
When I play the midi from panis_satb.ly,timidity says there are 9 tracks, the 
tracks are
not named after the voices, and the numbers don't match the tracks.

What's the difference? The results are consistent for all of my files except 
this one.
\version "2.10.5"

\header {
        title = "Многая Лета"
        composer = "М. Покровскïй" tagline = ""
        arranger = "сост. для см. хора Дж. Буром"
        }


global = { 
                \key c \major
                \autoBeamOff
                \set Score.midiChannelMapping=#'voice 
                
}

\score 
{ 
        \context ChoirStaff <<
                \context Staff <<
                        \context Voice = "soprano" \transpose c g' \relative c
                        { \voiceOne  \global \set Staff.midiInstrument = 
"violin"
                        c4( b c d e2. d4) c( d) e( f) g2 g 
                        g4( f) e( f) g2  a2( g2.) f4 
                        e( d g2) g g f4( e d2 e1 d c~ c) c \bar"||"
                        }
                              
                        \context Voice = "alto" \transpose c g' \relative c
                        { \voiceTwo \global \set Staff.midiInstrument = "flute"
                        c4( b c b e2. d4) c( d) c2 d c4( d) 
                        e( d) c( d) e2 e~ e2. f4 
                        c2.( d4) e( d) c2 
                        c1~( c a4 c b2 c b4 g a1) g
                        }

                                        >>

                \context Lyrics \lyricsto "soprano"
                {
                Мно -- га -- я __ ле -- 
                \once\override LyricExtender #'minimum-length = #4
                та, __   
                мно -- га -- я ле -- та,
                мно -- га -- я ле -- та.
                }

                \new Staff <<
                        \context Voice = "tenor" \transpose c g' \relative c,
                        { \clef "bass" \global  \set Staff.midiInstrument = 
"cello" \voiceOne
                        c2.( g'4 g1) g2 g g2 g g  g g 
                        %c4( d e g c2 b) c4( b) a2 b a4( b) 
                        { c~ c2. c4 bes!( a g2) c4( g) c,2 a'1( g f4 a g2 c, d4 
e f2 d) e1}
                        }

                        \context Voice = "bass" \transpose c g' \relative c,,
                        { \global  \set Staff.midiInstrument =
                        "bassoon" \voiceTwo
                        c4( d e g c2 b) c4( b) a2 b a4( b) 
                        c2 c c a( bes2.) a4 g( f e d) c( d) e2 
                        \once\override Slur #'positions = #'(-1 . -2)
                        f1( c d2 g c1~ c) <c c,>
                        }
                                        >>

                
                                >>


\layout {}
\midi {
        \context{ \Staff \remove "Staff_performer" }
        \context { \Voice \consists "Staff_performer" }
    }

}

Attachment: panis.tar
Description: Unix tar archive

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to