简体   繁体   中英

How to add sustain to the whole song in MusicXML?

If we have a midi file, and we get the.musicxml file by some method, such as by using MuseScore. How do we make the whole song as if we pressed on the sustain pedal (of a piano)? Can we do it globally or must that be add it for each of the note?

I found an answer by having a piano piece without sustain, and then add sustain to the whole song, and then diff the two .musicxml files, and I found under this part:

  <part id="P1">
    <measure number="1" width="125.73">
      <print> ... </print>
      <attributes> ... </attributes>
      <direction placement="above"> ... </direction>

there is this new addition:

      <direction placement="below">
        <direction-type>
          <pedal type="start" line="yes" default-y="-65.00"/>
        </direction-type>
        <staff>1</staff>
      </direction>

There is also one for a <staff>2</staff> below as well that looks the same like above but just the staff is changed to 2 and it should be for the Bass Staff.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM