You are here: MusicXML Reference > Score Schema (XSD) > Elements > Element: principal-voice

Element: principal-voice

Description

The principal-voice element represents principal and secondary voices in a score, either for analysis or for square bracket symbols that appear in a score. The content of the principal-voice element is used for analysis and may be any text value. When used for analysis separate from any printed score markings, the symbol attribute should be set to "none".

Derived By

Type principal-voice

Attributes
Name  Type  Required?  Default  Description 
type  start-stop  Yes 
symbol  principal-voice-symbol  Yes  The symbol attribute indicates the type of symbol used at the start of the principal-voice.
default-x  tenths  No 
default-y  tenths  No 
relative-x  tenths  No 
relative-y  tenths  No 
font-family  comma-separated-text  No 
font-style  font-style  No 
font-size  font-size  No 
font-weight  font-weight  No 
color  color  No 
halign  left-center-right  No 
valign  valign  No  The valign attribute is used to indicate vertical alignment to the top, middle, bottom, or baseline of the text or image. Defaults are implementation-dependent.
Content Model

Contains text only.

Referenced By
Example

      <direction placement="above">
        <direction-type>
          <principal-voice type="start" symbol="plain" default-x="4" default-y="22" halign="center"/>
        </direction-type>
      </direction>
      <note>
        <rest measure="yes"/>
        <duration>8</duration>
        <voice>1</voice>
      </note>
    </measure>
    <!--=======================================================-->
    <measure number="2" width="305">
      <note>
        <rest measure="yes"/>
        <duration>8</duration>
        <voice>1</voice>
      </note>
      <direction placement="above">
        <direction-type>
          <principal-voice type="stop"/>
        </direction-type>
      </direction>

Definition

See direction-type

 

MusicXML Documentation Home
Last built 2/20/2015

7007 Winchester Circle, Suite 140

Boulder, CO 80301