<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!DOCTYPE score-partwise PUBLIC "-//Recordare//DTD MusicXML 3.0 Partwise//EN" "http://www.musicxml.org/dtds/partwise.dtd"> <score-partwise version="3.0"> <part-list> <score-part id="P1"> <part-name>Piano</part-name> </score-part> </part-list> <part id="P1"> <measure number="1"> <!-- 第一小节 --> <attributes> <divisions>256</divisions> <key> <fifths>0</fifths> <!-- C 大调 --> </key> <time> <beats>4</beats> <beat-type>4</beat-type> </time> <clef> <sign>G</sign> <line>2</line> </clef> </attributes> <note> <pitch> <step>C</step> <!-- 主音 --> <octave>4</octave> </pitch> <duration>1024</duration> <type>whole</type> </note> </measure> <measure number="2"> <!-- 第二小节 --> <attributes> <key> <fifths>2</fifths> <mode>major</mode> <!-- D 大调 --> </key> </attributes> <note> <pitch> <step>D</step> <octave>4</octave> <!-- 主音 --> </pitch> <duration>1024</duration> <type>whole</type> </note> </measure> <measure number="3"> <!-- 第三小节 --> <attributes> <key> <fifths>2</fifths> <mode>minor</mode> <!-- b 小调 --> </key> </attributes> <note> <pitch> <step>B</step> <octave>4</octave> <!-- 主音 --> </pitch> <duration>1024</duration> <type>whole</type> </note> </measure> <measure number="4"> <!-- 第四小节 --> <attributes> <key> <fifths>-6</fifths> <mode>major</mode> <!-- bD 大调 --> </key> </attributes> <note> <pitch> <step>D</step> <alter>-1</alter> <!-- 主音 --> <octave>4</octave> </pitch> <duration>1024</duration> <type>whole</type> </note> </measure> </part> </score-partwise>
效果图: