MakeMusic
SmartMusic Finale Garritan MusicXML

Default value of "valign" attribute for "words" token

Moderator: Michael Good

Default value of "valign" attribute for "words" token

Postby SnakeZ » Wed Jun 22, 2016 5:14 am

1. Example Binchois.xml.

XML-code:
Code: Select all
     
     <direction placement="below">
        <direction-type>
          <words default-y="-70" relative-x="-46">T.(instr.)</words>
        </direction-type>
      </direction>


"valign" attribute is not specified here.

In Binchois.png this text is placed below staff. Staff height is 54 pixels i.e. interval between lines is 54 / 4 = 13.5 pixels or 10 units. Hence "-70" value must be 30 units below staff i.e. 3 * 13.5 = 40.5 pixels from upper edge of bottom line of staff. There is approximately upper horizontal line of "T" letter as if "T.(instr.)" text uses valign="top"

2. Example BeetAnGeSample.xml.

Code: Select all
     
      <direction placement="below">
        <direction-type>
          <words default-y="-73" font-size="10" font-style="italic">dim.</words>
        </direction-type>
        <offset>-25</offset>
        <staff>1</staff>
      </direction>


Also "valign" attribute is not specified here, and other parameters are very similar.

BeetAnGeSample.pdf in 200% scale has staff height 49 pixels (from upper pixel of top line and upper pixel of bottom line). I.e. 12.25 pixels per 10 units. Hence "-73" value must be 33 units below staff i.e. 3.3 * 12.25 = 40.4 pixels from upper edge of bottom line of staff. There is approximately base line of "d" letter as if "dim." text uses valign="bottom" or "baseline".

Explain me please this situation, how application should to derive what valign must be used?
SnakeZ
 
Posts: 1
Joined: June, 2016
Reputation: 0

Who is online

Users browsing this forum: No registered users and 2 guests

cron