Hi list,

I have a short Finale created (and by hand shortened) MusicXML file
(attached) that I wish to import to lilypond. I also attached what
musicxml2ly produces.

I'm using lilypond 2.19.21 on linux.

The main problem is in this block (similar for all other voices):
...
      \new Staff <<
        \set Staff.instrumentName = "Sopran 1"
        \context Staff <<
          \context Voice = "PartPOneVoiceOne" { \PartPOneVoiceOne }
          \new Lyrics \lyricsto "PartPOneVoiceOne"
\PartPOneVoiceOneLyricsOne
        >>
      >>
...

This results in an error. Changing it into
...
      \new Staff <<
        \set Staff.instrumentName = "Sopran 1"
          \new Voice = "PartPOneVoiceOne" { \PartPOneVoiceOne }
          \new Lyrics \lyricsto "PartPOneVoiceOne"
\PartPOneVoiceOneLyricsOne
        >>
...
(i.e. removing the \context Staff block and creating a Voice instead of
using the Voice context) creates the score I'd like to see.

Is this a bug in muxicxml or am I doing something stupid ?

The example xml file has removed 42 bars by manual editing for brevity.
The same problem occurs with the unedited larger file.

Best wishes,
Michael

--
 Michael Gerdau       email: [email protected]
 GPG-keys available on request or at public keyserver

Attachment: musicxml-test.xml
Description: XML document

\version "2.19.21"
% automatically converted by musicxml2ly from /home/mgd/Dokumente/mgd/Bachchor-St.Petri/Choräle-TD/musicxml-test.xml

\header {
  encodingsoftware = "Finale 2012 for Mac"
  encodingdate = "2015-06-04"
  composer = "Andreas Hammerschmidt (1611–1675)"
  title = "Wie lieblich sind deine Wohnungen"
}

\layout {
  \context {
    \Score
    skipBars = ##t
  }
}
PartPOneVoiceOne =  \relative g' {
  \clef "treble" \key f \major \time 4/2 r1 g1
}

PartPOneVoiceOneLyricsOne =  \lyricmode { Wie }
PartPTwoVoiceOne =  \relative g' {
  \clef "treble" \key f \major \time 4/2 r1 r2 g2
}

PartPTwoVoiceOneLyricsTwo =  \lyricmode { Wie }
PartPThreeVoiceOne =  \relative d' {
  \clef "treble" \key f \major \time 4/2 r2 d2 d2 ( c2 )
}

PartPThreeVoiceOneLyricsThree =  \lyricmode { Wie lieb -- }
PartPFourVoiceOne =  \relative c' {
  \clef "treble_8" \key f \major \time 4/2 R1*2
}

PartPFiveVoiceOne =  \relative d {
  \clef "bass" \key f \major \time 4/2 d1 es1
}

PartPFiveVoiceOneLyricsFive =  \lyricmode { Wie lieb -- }

% The score definition
\score {
  <<
    \new StaffGroup \with { \override SpanBar #'transparent = ##t }
    <<
      \new Staff <<
        \set Staff.instrumentName = "Sopran 1"
        \context Staff <<
          \context Voice = "PartPOneVoiceOne" { \PartPOneVoiceOne }
          \new Lyrics \lyricsto "PartPOneVoiceOne" \PartPOneVoiceOneLyricsOne
        >>
      >>
      \new Staff <<
        \set Staff.instrumentName = "Sopran 2"
        \context Staff <<
          \context Voice = "PartPTwoVoiceOne" { \PartPTwoVoiceOne }
          \new Lyrics \lyricsto "PartPTwoVoiceOne" \PartPTwoVoiceOneLyricsTwo
        >>
      >>
      \new Staff <<
        \set Staff.instrumentName = "Alt"
        \context Staff <<
          \context Voice = "PartPThreeVoiceOne" { \PartPThreeVoiceOne }
          \new Lyrics \lyricsto "PartPThreeVoiceOne" \PartPThreeVoiceOneLyricsThree
        >>
      >>
      \new Staff <<
        \set Staff.instrumentName = "Tenor"
        \context Staff <<
          \context Voice = "PartPFourVoiceOne" { \PartPFourVoiceOne }
        >>
      >>
      \new Staff <<
        \set Staff.instrumentName = "Bass"
        \context Staff <<
          \context Voice = "PartPFiveVoiceOne" { \PartPFiveVoiceOne }
          \new Lyrics \lyricsto "PartPFiveVoiceOne" \PartPFiveVoiceOneLyricsFive
        >>
      >>

    >>

  >>
  \layout {}
  \midi {}
}

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to