lilypond-user
[Top][All Lists]
Advanced

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

MIDI playback lacks polyphony


From: Javier Ruiz-Alma
Subject: MIDI playback lacks polyphony
Date: Thu, 21 Oct 2010 07:08:58 -0700 (PDT)

Hello Dear Gurus,
Lilypond is correctly engraving this score in .pdf, which has some sections of single-staff polyphony.  However, the MIDI playback on my PC plays one voice only.  I'm ignorant to where the problem is.   Is my lilypond syntax incorrect?  Is my PC (Win7/WMP10) not able to play multivoice MIDI? Is lilypond not adding the 2nd voice to the MIDI file?  Thank You, Javier
_______________________

\version "2.12.0"
\header {
}
global = {
 \key des \major
 \time 4/4
 \tempo "Moderato" 4 = 45
     }
upper = \relative c'' {
     \global
     \new Voice = "melody" {
     <des bes f>4     <f c aes>     <f des bes ges>     <ees c aes f>
    <<
    {
     \voiceOne
      r4 ees,16 ges bes8 bes8.  bes16~ bes16 f16 a8
    } 
    \new Voice {
    \voiceTwo
     <des bes ges ees>2 <f, c>2
    }
    >>
    \oneVoice
        <des' bes f>4     <f c aes>     <f des bes ges>     <ees c aes f>
        \time 2/4
     <<
    {
     \voiceOne
      r4 bes,16 des ees8
    } 
    \new Voice {
    \voiceTwo
     <des' bes ges ees>2
    }
    >>
    \time 4/4
    <ees, f>4 <ees f> <ees f> <ees f>
    <ees c a>  <ees c a>  <ees c a> f'16 c a f
   
         <<
    {
     \voiceOne
      r4 bes,16 c ees8 f4 f16 des aes8
    } 
    \new Voice {
    \voiceTwo
     <ees' c aes>2 <des aes>4 <des aes>
    }
    >>
   
     }
}
lower = \relative c {
     \global
      \new Voice = "bass" {   
     bes4     aes ges f
     ees2 f
     bes4     aes ges f
     ees4~ ees8. ees16
     f2~  f8  ges' f16 des8 des16
    <<  
     {
     \voiceOne
      r2 r4 <ees' c a>4
      } 
      \new Voice {
      \voiceTwo
      a,,1
      } 
    >>
    aes2 bes4 bes
   
    }    
  }
dynamics = {
}
pedal = {
}
\score {
     \new PianoStaff <<
     \new Staff = "upper" \upper
     \new Staff = "lower" <<
     \clef bass
     \lower
     >>
     >>
     \layout {
      \context {
       \type "Engraver_group"
       \name Dynamics
       \alias Voice % So that \cresc works, for example.
       \consists "Output_property_engraver"
      
       \override VerticalAxisGroup #'minimum-Y-extent = #'(-1 . 1)
       pedalSustainStrings = #'("Ped." "*Ped." "*")
       pedalUnaCordaStrings = #'("una corda" "" "tre corde")
      
       \consists "Piano_pedal_engraver"
       \consists "Script_engraver"
       \consists "Dynamic_engraver"
       \consists "Text_engraver"
      
       \override TextScript #'font-size = #2
       \override TextScript #'font-shape = #'italic
       \override DynamicText #'extra-offset = #'(0 . 2.5)
       \override Hairpin #'extra-offset = #'(0 . 2.5)
      
       \consists "Skip_event_swallow_translator"
      
       \consists "Axis_group_engraver"
      }
      \context {
       \PianoStaff
       \accepts Dynamics
      }
     }
}
\score {
     \new PianoStaff <<
     \new Staff = "upper" << \upper \dynamics >>
     \new Staff = "lower" << \lower \dynamics >>
     >>
     \midi {
      \context {
       \type "Performer_group"
       \name Dynamics
       \consists "Piano_pedal_performer"
      }
      \context {
       \PianoStaff
       \accepts Dynamics
      }
     }
}

reply via email to

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