Skip to main content
Topic: Question for musicxml experts: representation of flow directions (Read 99 times) previous topic - next topic

Re: Question for musicxml experts: representation of flow directions

Reply #1
Dear opagust,

When you open Musescore, add some "Repeats and Jumps" and export it as a musicxml file, the following code can be found in the file. It seems that the more exotic directions are just a combination of <words> and <sound> tags:

Code: [Select · Download]
      <direction placement="above">
        <direction-type>
          <segno default-x="-8.00" relative-y="20.00"/>
          </direction-type>
        <sound segno="segno"/>
        </direction>
Code: [Select · Download]
      <direction placement="above">
        <direction-type>
          <words relative-y="20.00">D.S. al Fine</words>
          </direction-type>
        <sound dalsegno="segno"/>
        </direction>
Code: [Select · Download]
      <direction placement="above">
        <direction-type>
          <words relative-y="20.00">Fine</words>
          </direction-type>
        <sound fine="yes"/>
        </direction>

Hope this helps.
Bart


Re: Question for musicxml experts: representation of flow directions

Reply #3
Well, it seems I did kwew it back in 2021 :o .
Here's what I found in the coding I wrote for the musicxml to Noteworthy  convertor:

Code: [Select · Download]
def convert_tag_direction_end(element):
    object_line = {
        'dynamic': '|Dynamic|Style:mp|Pos:7',
        'dynamic_variance-sfz': '|DynamicVariance|Style:Sforzando|Pos:7',
        'dynamic_variance-rfz': '|DynamicVariance|Style:Rinforzando|Pos:7',
        'dynamic_variance_text': '|Text|Text:sfp|Pos:7',
        'segno': '|Flow|Style:Segno|Pos:8',
        'coda': '|Flow|Style:Coda|Pos:8',
        'D.C. al Fine': '|Flow|Style:DCalFine|Pos:8|Justify:Right',
        'D.S. al Fine': '|Flow|Style:DSalFine|Pos:8|Justify:Right',
        'D.C. al Coda': '|Flow|Style:DCalCoda|Pos:8|Justify:Right',
        'D.S. al Coda': '|Flow|Style:DSalCoda|Pos:8|Justify:Right',
        'To Coda': '|Flow|Style:ToCoda|Pos:8|Justify:Right',
        'D.C.': '|Flow|Style:DaCapo|Pos:8|Justify:Right',
        'fine': '|Flow|Style:Fine|Pos:8',
        'pedal': '|SustainPedal|Pos:-11|Wide:Y'

    }
    ...
Always look on the bright side of life!