Class Dynamics

java.lang.Object
org.audiveris.proxymusic.Dynamics

public class Dynamics extends Object
Dynamics can be associated either with a note or a general musical direction. To avoid inconsistencies between and amongst the letter abbreviations for dynamics (what is sf vs. sfz, standing alone or with a trailing dynamic that is not always piano), we use the actual letters as the names of these dynamic elements. The other-dynamics element allows other dynamic marks that are not covered here. Dynamics elements may also be combined to create marks not covered by a single element, such as sfmp. These letter dynamic symbols are separated from crescendo, decrescendo, and wedge indications. Dynamic representation is inconsistent in scores. Many things are assumed by the composer and left out, such as returns to original dynamics. The MusicXML format captures what is in the score, but does not try to be optimal for analysis or synthesis of dynamics. The placement attribute is used when the dynamics are associated with a note. It is ignored when the dynamics are associated with a direction. In that case the direction element's placement attribute is used instead.

Java class for dynamics complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="dynamics">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <choice maxOccurs="unbounded" minOccurs="0">
         <element name="p" type="{}empty"/>
         <element name="pp" type="{}empty"/>
         <element name="ppp" type="{}empty"/>
         <element name="pppp" type="{}empty"/>
         <element name="ppppp" type="{}empty"/>
         <element name="pppppp" type="{}empty"/>
         <element name="f" type="{}empty"/>
         <element name="ff" type="{}empty"/>
         <element name="fff" type="{}empty"/>
         <element name="ffff" type="{}empty"/>
         <element name="fffff" type="{}empty"/>
         <element name="ffffff" type="{}empty"/>
         <element name="mp" type="{}empty"/>
         <element name="mf" type="{}empty"/>
         <element name="sf" type="{}empty"/>
         <element name="sfp" type="{}empty"/>
         <element name="sfpp" type="{}empty"/>
         <element name="fp" type="{}empty"/>
         <element name="rf" type="{}empty"/>
         <element name="rfz" type="{}empty"/>
         <element name="sfz" type="{}empty"/>
         <element name="sffz" type="{}empty"/>
         <element name="fz" type="{}empty"/>
         <element name="n" type="{}empty"/>
         <element name="pf" type="{}empty"/>
         <element name="sfzp" type="{}empty"/>
         <element name="other-dynamics" type="{}other-text"/>
       </choice>
       <attGroup ref="{}placement"/>
       <attGroup ref="{}text-decoration"/>
       <attGroup ref="{}optional-unique-id"/>
       <attGroup ref="{}print-style-align"/>
       <attGroup ref="{}enclosure"/>
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Dynamics

      public Dynamics()
  • Method Details

    • getPOrPpOrPpp

      public List<javax.xml.bind.JAXBElement<?>> getPOrPpOrPpp()
      Gets the value of the pOrPpOrPpp property.

      This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the pOrPpOrPpp property.

      For example, to add a new item, do as follows:

          getPOrPpOrPpp().add(newItem);
       

      Objects of the following type(s) are allowed in the list JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<Empty> JAXBElement<OtherText>

    • getPlacement

      public AboveBelow getPlacement()
      Gets the value of the placement property.
      Returns:
      possible object is AboveBelow
    • setPlacement

      public void setPlacement(AboveBelow value)
      Sets the value of the placement property.
      Parameters:
      value - allowed object is AboveBelow
    • getUnderline

      public Integer getUnderline()
      Gets the value of the underline property.
      Returns:
      possible object is Integer
    • setUnderline

      public void setUnderline(Integer value)
      Sets the value of the underline property.
      Parameters:
      value - allowed object is Integer
    • getOverline

      public Integer getOverline()
      Gets the value of the overline property.
      Returns:
      possible object is Integer
    • setOverline

      public void setOverline(Integer value)
      Sets the value of the overline property.
      Parameters:
      value - allowed object is Integer
    • getLineThrough

      public Integer getLineThrough()
      Gets the value of the lineThrough property.
      Returns:
      possible object is Integer
    • setLineThrough

      public void setLineThrough(Integer value)
      Sets the value of the lineThrough property.
      Parameters:
      value - allowed object is Integer
    • getId

      public String getId()
      Gets the value of the id property.
      Returns:
      possible object is String
    • setId

      public void setId(String value)
      Sets the value of the id property.
      Parameters:
      value - allowed object is String
    • getValign

      public Valign getValign()
      Gets the value of the valign property.
      Returns:
      possible object is Valign
    • setValign

      public void setValign(Valign value)
      Sets the value of the valign property.
      Parameters:
      value - allowed object is Valign
    • getColor

      public String getColor()
      Gets the value of the color property.
      Returns:
      possible object is String
    • setColor

      public void setColor(String value)
      Sets the value of the color property.
      Parameters:
      value - allowed object is String
    • getFontFamily

      public String getFontFamily()
      Gets the value of the fontFamily property.
      Returns:
      possible object is String
    • setFontFamily

      public void setFontFamily(String value)
      Sets the value of the fontFamily property.
      Parameters:
      value - allowed object is String
    • getFontStyle

      public FontStyle getFontStyle()
      Gets the value of the fontStyle property.
      Returns:
      possible object is FontStyle
    • setFontStyle

      public void setFontStyle(FontStyle value)
      Sets the value of the fontStyle property.
      Parameters:
      value - allowed object is FontStyle
    • getFontSize

      public String getFontSize()
      Gets the value of the fontSize property.
      Returns:
      possible object is String
    • setFontSize

      public void setFontSize(String value)
      Sets the value of the fontSize property.
      Parameters:
      value - allowed object is String
    • getFontWeight

      public FontWeight getFontWeight()
      Gets the value of the fontWeight property.
      Returns:
      possible object is FontWeight
    • setFontWeight

      public void setFontWeight(FontWeight value)
      Sets the value of the fontWeight property.
      Parameters:
      value - allowed object is FontWeight
    • getDefaultX

      public BigDecimal getDefaultX()
      Gets the value of the defaultX property.
      Returns:
      possible object is BigDecimal
    • setDefaultX

      public void setDefaultX(BigDecimal value)
      Sets the value of the defaultX property.
      Parameters:
      value - allowed object is BigDecimal
    • getDefaultY

      public BigDecimal getDefaultY()
      Gets the value of the defaultY property.
      Returns:
      possible object is BigDecimal
    • setDefaultY

      public void setDefaultY(BigDecimal value)
      Sets the value of the defaultY property.
      Parameters:
      value - allowed object is BigDecimal
    • getRelativeX

      public BigDecimal getRelativeX()
      Gets the value of the relativeX property.
      Returns:
      possible object is BigDecimal
    • setRelativeX

      public void setRelativeX(BigDecimal value)
      Sets the value of the relativeX property.
      Parameters:
      value - allowed object is BigDecimal
    • getRelativeY

      public BigDecimal getRelativeY()
      Gets the value of the relativeY property.
      Returns:
      possible object is BigDecimal
    • setRelativeY

      public void setRelativeY(BigDecimal value)
      Sets the value of the relativeY property.
      Parameters:
      value - allowed object is BigDecimal
    • getHalign

      public LeftCenterRight getHalign()
      Gets the value of the halign property.
      Returns:
      possible object is LeftCenterRight
    • setHalign

      public void setHalign(LeftCenterRight value)
      Sets the value of the halign property.
      Parameters:
      value - allowed object is LeftCenterRight
    • getEnclosure

      public EnclosureShape getEnclosure()
      Gets the value of the enclosure property.
      Returns:
      possible object is EnclosureShape
    • setEnclosure

      public void setEnclosure(EnclosureShape value)
      Sets the value of the enclosure property.
      Parameters:
      value - allowed object is EnclosureShape