Tried to follow the thread and

- exported an arbitrary ly file using Frescobaldi experimental feature
as Jean described -> *.xml

- open *.xml file in MuseScore 3.0

(Translation: File xyz is no valid MusicXML file. Should I try to open
anyway?)

Error message:

Fatal error: Line 11 Column 29 element 'creator' is not defined in this
area/context (namespace?)

If I decide for "load anyway" I get a reasonable result in MuseScore (I
have to admit that I never used MuseScore before ;-) ) with only a few
header elements missing.

Am 04.10.2022 um 21:38 schrieb Jean Abou Samra:
Le 04/10/2022 à 21:15, Ella Yu a écrit :
Thanks Jean. So basically the resulting exported XML literally won't
open in MuseScore because it says it's not a valid XML file, so I
went and opened it in Finale Notepad and then re-exported it and the
notes were all wrong. [...]

Interesting. Would you mind sending the .ly file to me? I would like
to understand what is invalid about the generated MusicXML.

Thanks,
Jean





<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 2.0 Partwise//EN"
                                "http://www.musicxml.org/dtds/partwise.dtd";>
<score-partwise version="3.0">
  <movement-title>Pomp and Circumstance March No. 1</movement-title>
  <identification>
    <encoding>
      <software>Frescobaldi 3.1.3</software>
      <encoding-date>2022-10-04</encoding-date>
    </encoding>
    <creator type="composer">Edward Elgar 1901</creator>
    <opus>Op. 39, 1</opus>
    <subtitle>Land of Hope and Glory</subtitle>
    <tagline>https://lilypond.org/ Notensatz mit Lilypond - www.lilypond.org</tagline>
    <system-system-spacing />
  </identification>
  <part-list>
    <score-part id="P1">
      <part-name>Bass</part-name>
      <score-instrument id="P1-I1">
        <instrument-name>electric piano 1</instrument-name>
      </score-instrument>
      <midi-instrument id="P1-I1">
        <midi-channel>1</midi-channel>
        <midi-name>electric piano 1</midi-name>
      </midi-instrument>
    </score-part>
  </part-list>
  <part id="P1">
    <measure number="1">
      <attributes>
        <divisions>2</divisions>
        <key>
          <fifths>1</fifths>
          <mode>major</mode>
        </key>
        <time>
          <beats>2</beats>
          <beat-type>4</beat-type>
        </time>
        <clef>
          <sign>G</sign>
          <line>2</line>
        </clef>
      </attributes>
      <direction placement="above">
        <direction-type>
          <words>Largamente, cantabile</words>
        </direction-type>
      </direction>
      <note>
        <pitch>
          <step>G</step>
          <octave>4</octave>
        </pitch>
        <duration>2</duration>
        <voice>1</voice>
        <type>quarter</type>
        <lyric number="1">
          <syllabic>single</syllabic>
          <text>Land</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>G</step>
          <octave>4</octave>
        </pitch>
        <duration>2</duration>
        <voice>1</voice>
        <type>quarter</type>
        <lyric number="1">
          <syllabic>single</syllabic>
          <text>of</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>F</step>
          <alter>1</alter>
          <octave>4</octave>
        </pitch>
        <duration>1</duration>
        <voice>1</voice>
        <type>eighth</type>
        <accidental>sharp</accidental>
        <notations>
          <slur number="1" type="start" />
        </notations>
        <lyric number="1">
          <syllabic>single</syllabic>
          <text>hope</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>G</step>
          <octave>4</octave>
        </pitch>
        <duration>1</duration>
        <voice>1</voice>
        <type>eighth</type>
        <notations>
          <slur number="1" type="stop" />
        </notations>
        <lyric number="1">
          <syllabic>single</syllabic>
          <text>and</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>A</step>
          <octave>4</octave>
        </pitch>
        <duration>2</duration>
        <voice>1</voice>
        <type>quarter</type>
        <lyric number="1">
          <syllabic>begin</syllabic>
          <text>glo</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>E</step>
          <octave>4</octave>
        </pitch>
        <duration>4</duration>
        <voice>1</voice>
        <type>half</type>
        <lyric number="1">
          <syllabic>end</syllabic>
          <text>ry,</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>D</step>
          <octave>4</octave>
        </pitch>
        <duration>4</duration>
        <voice>1</voice>
        <type>half</type>
        <lyric number="1">
          <syllabic>begin</syllabic>
          <text>moth</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>C</step>
          <octave>4</octave>
        </pitch>
        <duration>2</duration>
        <voice>1</voice>
        <type>quarter</type>
        <lyric number="1">
          <syllabic>end</syllabic>
          <text>er</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>C</step>
          <octave>4</octave>
        </pitch>
        <duration>2</duration>
        <voice>1</voice>
        <type>quarter</type>
        <lyric number="1">
          <syllabic>single</syllabic>
          <text>of</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>B</step>
          <octave>3</octave>
        </pitch>
        <duration>1</duration>
        <voice>1</voice>
        <type>eighth</type>
        <notations>
          <slur number="1" type="start" />
        </notations>
        <lyric number="1">
          <syllabic>single</syllabic>
          <text>the</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>C</step>
          <octave>4</octave>
        </pitch>
        <duration>1</duration>
        <voice>1</voice>
        <type>eighth</type>
        <notations>
          <slur number="1" type="stop" />
        </notations>
        <lyric number="1">
          <syllabic>single</syllabic>
          <text>free,</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>D</step>
          <octave>4</octave>
        </pitch>
        <duration>2</duration>
        <voice>1</voice>
        <type>quarter</type>
        <lyric number="1">
          <syllabic>single</syllabic>
          <text>how</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>A</step>
          <octave>3</octave>
        </pitch>
        <duration>4</duration>
        <tie type="start" />
        <voice>1</voice>
        <type>half</type>
        <notations>
          <tied type="start" />
        </notations>
        <lyric number="1">
          <syllabic>single</syllabic>
          <text>shall</text>
        </lyric>
      </note>
      <note>
        <pitch>
          <step>A</step>
          <octave>3</octave>
        </pitch>
        <duration>2</duration>
        <tie type="stop" />
        <voice>1</voice>
        <type>quarter</type>
        <notations>
          <tied type="stop" />
        </notations>
        <lyric number="1">
          <syllabic>single</syllabic>
          <text>we</text>
        </lyric>
      </note>
      <note>
        <rest />
        <duration>2</duration>
        <voice>1</voice>
        <type>quarter</type>
      </note>
    </measure>
  </part>
</score-partwise>
\version "2.22.2"
date = #(strftime "%d.%m.%Y" (localtime (current-time)))

\header {
  title = "Pomp and Circumstance March No. 1"
  opus = "Op. 39, 1"
  subtitle = "Land of Hope and Glory"
  composer = "Edward Elgar 1901"
  copyright = \markup { \tiny \date }
  tagline = \markup {\with-url #"https://lilypond.org/"; { \small {"Notensatz mit Lilypond - www.lilypond.org" } }}
}

global = {
  %\clef soprano
  \set Score.markFormatter = #format-mark-box-alphabet
  \compressEmptyMeasures
}

bassNotes = \relative c'' {
  \global
  \dynamicUp
  % Die Noten folgen hier.
  \time 2/4
  \set Score.currentBarNumber = #115
  \set Timing.beamExceptions = #'()
  \set Timing.baseMoment = #(ly:make-moment 1/4)
  \set Timing.beatStructure = 1,1
  \key g \major
  \tempo "Largamente, cantabile"
  \set Score.currentBarNumber = #115
  \mark \markup { \box {\bold "I/K"} }

    g4 g fis8( g) a4 e2 d
    c4 c b8( c) d4 a2~4 r
%{
    b2 cis8 d4 e8 a2 d,2
    g4 4 g8( fis4) e8 d2~4 r4

    \mark \markup { \box {\bold "J/L"} }
    g4 g fis8( g) a4 e2 d
    c4 c b8( c) d4 a2~4 r
    b4. 8 cis8( d4) e8 a2 d,2 \breathe
    c'4 c c8( b4) a8 b2~4 r
    e,4. e8 fis8( g4) a8
    d,2 g4 r
    g, g c8( b4) a8 g2~4 r4
  \break
  \set Score.currentBarNumber = #260
  \key d \major
  \transpose g d'' {
    \relative {
    \tempo "Molto maestoso"
    g4\ff g fis8( g) a4 e2 d
    c4 c b8( c) d4 a2~4 r
    b2 cis8 d4 e8 a2 d,2
    g4 4 g8( fis4) e8 d2~4 r4

    \mark #19
    g4 g fis8( g) a4 e2 d
    c4 c b8( c) d4 a2~4 r
    b4. 8 cis8( d4) e8 a2 d,2 \breathe
    c'4^\markup {\italic "allargando"} c c8( b) a4 b2~4 r
    e,4. e8 fis8(^\markup {\italic "rit."} g4) a8
    d,2 g4 r
    <g, g'>2 <g g'> <c c'>4( <b b'>~<b b'>) <a a'> <g g'>4-. r4
    }
  }

  \bar "|."
%}
}

verse = \lyricmode {
  % Liedtext folgt hier.

  Land of hope and glo -- ry, moth -- er of the free,
  how shall we ex -- tol thee, who are born of thee?
  Wi -- der still and wid -- er shall thy bounds be set;
  God, who made thee migh -- ty, make thee migh -- tier yet,
  God, who made thee migh -- ty, make thee migh -- tier yet.

}

\book {
  \paper {
    #(set-paper-size "a4")
    system-system-spacing = #'((padding . 5) (basic-distance . 5))
  }
  \bookOutputSuffix "bass-a4"
  \score {
    \new Staff = "bassStaff" \with {
      instrumentName = "Bass"
      midiInstrument = "electric piano 1"
    } {
      <<
        \new Voice = "bassVoice" {
          \bassNotes
        }
        \new Lyrics \lyricsto "bassVoice" {
          \verse
          \verse
        }
      >>
    }
    \layout {
      #(layout-set-staff-size 25)
      \context {
        \Score
        \override SpacingSpanner.base-shortest-duration = #(ly:make-moment 1/32)
      }
    }
    \midi {}
  }
}

Reply via email to