Class Note

java.lang.Object
org.audiveris.proxymusic.Note

public class Note extends Object
[JAXB: simplified definition]
Notes are the most common type of MusicXML data. The MusicXML format distinguishes between elements used for sound information and elements used for notation information (e.g., tie is used for sound, tied for notation). Thus grace notes do not have a duration element. Cue notes have a duration element, as do forward elements, but no tie elements. Having these two types of information available can make interchange easier, as some programs handle one type of information more readily than the other. The print-leger attribute is used to indicate whether leger lines are printed. Notes without leger lines are used to indicate indeterminate high and low notes. By default, it is set to yes. If print-object is set to no, print-leger is interpreted to also be set to no if not present. This attribute is ignored for rests. The dynamics and end-dynamics attributes correspond to MIDI 1.0's Note On and Note Off velocities, respectively. They are expressed in terms of percentages of the default forte value (90 for MIDI 1.0). The attack and release attributes are used to alter the starting and stopping time of the note from when it would otherwise occur based on the flow of durations - information that is specific to a performance. They are expressed in terms of divisions, either positive or negative. A note that starts a tie should not have a release attribute, and a note that stops a tie should not have an attack attribute. The attack and release attributes are independent of each other. The attack attribute only changes the starting time of a note, and the release attribute only changes the stopping time of a note. If a note is played only particular times through a repeat, the time-only attribute shows which times to play the note. The pizzicato attribute is used when just this note is sounded pizzicato, vs. the pizzicato element which changes overall playback between pizzicato and arco.

Java class for note complex type.

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

 <complexType name="note">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <sequence>
           <element name="grace" type="{}grace" minOccurs="0"/>
           <element name="cue" type="{}empty" minOccurs="0"/>
           <group ref="{}full-note"/>
           <group ref="{}duration" minOccurs="0"/>
           <element name="tie" type="{}tie" maxOccurs="2" minOccurs="0"/>
         </sequence>
         <element name="instrument" type="{}instrument" maxOccurs="unbounded" minOccurs="0"/>
         <group ref="{}editorial-voice"/>
         <element name="type" type="{}note-type" minOccurs="0"/>
         <element name="dot" type="{}empty-placement" maxOccurs="unbounded" minOccurs="0"/>
         <element name="accidental" type="{}accidental" minOccurs="0"/>
         <element name="time-modification" type="{}time-modification" minOccurs="0"/>
         <element name="stem" type="{}stem" minOccurs="0"/>
         <element name="notehead" type="{}notehead" minOccurs="0"/>
         <element name="notehead-text" type="{}notehead-text" minOccurs="0"/>
         <group ref="{}staff" minOccurs="0"/>
         <element name="beam" type="{}beam" maxOccurs="8" minOccurs="0"/>
         <element name="notations" type="{}notations" maxOccurs="unbounded" minOccurs="0"/>
         <element name="lyric" type="{}lyric" maxOccurs="unbounded" minOccurs="0"/>
         <element name="play" type="{}play" minOccurs="0"/>
         <element name="listen" type="{}listen" minOccurs="0"/>
       </sequence>
       <attGroup ref="{}font"/>
       <attGroup ref="{}optional-unique-id"/>
       <attGroup ref="{}printout"/>
       <attGroup ref="{}x-position"/>
       <attGroup ref="{}color"/>
       <attribute name="print-leger" type="{}yes-no" />
       <attribute name="dynamics" type="{}non-negative-decimal" />
       <attribute name="end-dynamics" type="{}non-negative-decimal" />
       <attribute name="attack" type="{}divisions" />
       <attribute name="release" type="{}divisions" />
       <attribute name="time-only" type="{}time-only" />
       <attribute name="pizzicato" type="{}yes-no" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Details

  • Constructor Details

    • Note

      public Note()
  • Method Details

    • getGrace

      public Grace getGrace()
      Gets the value of the grace property.
      Returns:
      possible object is Grace
    • setGrace

      public void setGrace(Grace value)
      Sets the value of the grace property.
      Parameters:
      value - allowed object is Grace
    • getCue

      public Empty getCue()
      Gets the value of the cue property.
      Returns:
      possible object is Empty
    • setCue

      public void setCue(Empty value)
      Sets the value of the cue property.
      Parameters:
      value - allowed object is Empty
    • getChord

      public Empty getChord()
      Gets the value of the chord property.
      Returns:
      possible object is Empty
    • setChord

      public void setChord(Empty value)
      Sets the value of the chord property.
      Parameters:
      value - allowed object is Empty
    • getPitch

      public Pitch getPitch()
      Gets the value of the pitch property.
      Returns:
      possible object is Pitch
    • setPitch

      public void setPitch(Pitch value)
      Sets the value of the pitch property.
      Parameters:
      value - allowed object is Pitch
    • getUnpitched

      public Unpitched getUnpitched()
      Gets the value of the unpitched property.
      Returns:
      possible object is Unpitched
    • setUnpitched

      public void setUnpitched(Unpitched value)
      Sets the value of the unpitched property.
      Parameters:
      value - allowed object is Unpitched
    • getRest

      public Rest getRest()
      Gets the value of the rest property.
      Returns:
      possible object is Rest
    • setRest

      public void setRest(Rest value)
      Sets the value of the rest property.
      Parameters:
      value - allowed object is Rest
    • getDuration

      public BigDecimal getDuration()
      Gets the value of the duration property.
      Returns:
      possible object is BigDecimal
    • setDuration

      public void setDuration(BigDecimal value)
      Sets the value of the duration property.
      Parameters:
      value - allowed object is BigDecimal
    • getTie

      public List<Tie> getTie()
      Gets the value of the tie 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 tie property.

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

          getTie().add(newItem);
       

      Objects of the following type(s) are allowed in the list Tie

    • getInstrument

      public List<Instrument> getInstrument()
      Gets the value of the instrument 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 instrument property.

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

          getInstrument().add(newItem);
       

      Objects of the following type(s) are allowed in the list Instrument

    • getFootnote

      public FormattedText getFootnote()
      Gets the value of the footnote property.
      Returns:
      possible object is FormattedText
    • setFootnote

      public void setFootnote(FormattedText value)
      Sets the value of the footnote property.
      Parameters:
      value - allowed object is FormattedText
    • getLevel

      public Level getLevel()
      Gets the value of the level property.
      Returns:
      possible object is Level
    • setLevel

      public void setLevel(Level value)
      Sets the value of the level property.
      Parameters:
      value - allowed object is Level
    • getVoice

      public String getVoice()
      Gets the value of the voice property.
      Returns:
      possible object is String
    • setVoice

      public void setVoice(String value)
      Sets the value of the voice property.
      Parameters:
      value - allowed object is String
    • getType

      public NoteType getType()
      Gets the value of the type property.
      Returns:
      possible object is NoteType
    • setType

      public void setType(NoteType value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is NoteType
    • getDot

      public List<EmptyPlacement> getDot()
      Gets the value of the dot 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 dot property.

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

          getDot().add(newItem);
       

      Objects of the following type(s) are allowed in the list EmptyPlacement

    • getAccidental

      public Accidental getAccidental()
      Gets the value of the accidental property.
      Returns:
      possible object is Accidental
    • setAccidental

      public void setAccidental(Accidental value)
      Sets the value of the accidental property.
      Parameters:
      value - allowed object is Accidental
    • getTimeModification

      public TimeModification getTimeModification()
      Gets the value of the timeModification property.
      Returns:
      possible object is TimeModification
    • setTimeModification

      public void setTimeModification(TimeModification value)
      Sets the value of the timeModification property.
      Parameters:
      value - allowed object is TimeModification
    • getStem

      public Stem getStem()
      Gets the value of the stem property.
      Returns:
      possible object is Stem
    • setStem

      public void setStem(Stem value)
      Sets the value of the stem property.
      Parameters:
      value - allowed object is Stem
    • getNotehead

      public Notehead getNotehead()
      Gets the value of the notehead property.
      Returns:
      possible object is Notehead
    • setNotehead

      public void setNotehead(Notehead value)
      Sets the value of the notehead property.
      Parameters:
      value - allowed object is Notehead
    • getNoteheadText

      public NoteheadText getNoteheadText()
      Gets the value of the noteheadText property.
      Returns:
      possible object is NoteheadText
    • setNoteheadText

      public void setNoteheadText(NoteheadText value)
      Sets the value of the noteheadText property.
      Parameters:
      value - allowed object is NoteheadText
    • getStaff

      public BigInteger getStaff()
      Gets the value of the staff property.
      Returns:
      possible object is BigInteger
    • setStaff

      public void setStaff(BigInteger value)
      Sets the value of the staff property.
      Parameters:
      value - allowed object is BigInteger
    • getBeam

      public List<Beam> getBeam()
      Gets the value of the beam 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 beam property.

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

          getBeam().add(newItem);
       

      Objects of the following type(s) are allowed in the list Beam

    • getNotations

      public List<Notations> getNotations()
      Gets the value of the notations 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 notations property.

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

          getNotations().add(newItem);
       

      Objects of the following type(s) are allowed in the list Notations

    • getLyric

      public List<Lyric> getLyric()
      Gets the value of the lyric 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 lyric property.

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

          getLyric().add(newItem);
       

      Objects of the following type(s) are allowed in the list Lyric

    • getPlay

      public Play getPlay()
      Gets the value of the play property.
      Returns:
      possible object is Play
    • setPlay

      public void setPlay(Play value)
      Sets the value of the play property.
      Parameters:
      value - allowed object is Play
    • getListen

      public Listen getListen()
      Gets the value of the listen property.
      Returns:
      possible object is Listen
    • setListen

      public void setListen(Listen value)
      Sets the value of the listen property.
      Parameters:
      value - allowed object is Listen
    • getPrintLeger

      public YesNo getPrintLeger()
      Gets the value of the printLeger property.
      Returns:
      possible object is YesNo
    • setPrintLeger

      public void setPrintLeger(YesNo value)
      Sets the value of the printLeger property.
      Parameters:
      value - allowed object is YesNo
    • getDynamics

      public BigDecimal getDynamics()
      Gets the value of the dynamics property.
      Returns:
      possible object is BigDecimal
    • setDynamics

      public void setDynamics(BigDecimal value)
      Sets the value of the dynamics property.
      Parameters:
      value - allowed object is BigDecimal
    • getEndDynamics

      public BigDecimal getEndDynamics()
      Gets the value of the endDynamics property.
      Returns:
      possible object is BigDecimal
    • setEndDynamics

      public void setEndDynamics(BigDecimal value)
      Sets the value of the endDynamics property.
      Parameters:
      value - allowed object is BigDecimal
    • getAttack

      public BigDecimal getAttack()
      Gets the value of the attack property.
      Returns:
      possible object is BigDecimal
    • setAttack

      public void setAttack(BigDecimal value)
      Sets the value of the attack property.
      Parameters:
      value - allowed object is BigDecimal
    • getRelease

      public BigDecimal getRelease()
      Gets the value of the release property.
      Returns:
      possible object is BigDecimal
    • setRelease

      public void setRelease(BigDecimal value)
      Sets the value of the release property.
      Parameters:
      value - allowed object is BigDecimal
    • getTimeOnly

      public String getTimeOnly()
      Gets the value of the timeOnly property.
      Returns:
      possible object is String
    • setTimeOnly

      public void setTimeOnly(String value)
      Sets the value of the timeOnly property.
      Parameters:
      value - allowed object is String
    • getPizzicato

      public YesNo getPizzicato()
      Gets the value of the pizzicato property.
      Returns:
      possible object is YesNo
    • setPizzicato

      public void setPizzicato(YesNo value)
      Sets the value of the pizzicato property.
      Parameters:
      value - allowed object is YesNo
    • 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
    • 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
    • getPrintDot

      public YesNo getPrintDot()
      Gets the value of the printDot property.
      Returns:
      possible object is YesNo
    • setPrintDot

      public void setPrintDot(YesNo value)
      Sets the value of the printDot property.
      Parameters:
      value - allowed object is YesNo
    • getPrintLyric

      public YesNo getPrintLyric()
      Gets the value of the printLyric property.
      Returns:
      possible object is YesNo
    • setPrintLyric

      public void setPrintLyric(YesNo value)
      Sets the value of the printLyric property.
      Parameters:
      value - allowed object is YesNo
    • getPrintSpacing

      public YesNo getPrintSpacing()
      Gets the value of the printSpacing property.
      Returns:
      possible object is YesNo
    • setPrintSpacing

      public void setPrintSpacing(YesNo value)
      Sets the value of the printSpacing property.
      Parameters:
      value - allowed object is YesNo
    • getPrintObject

      public YesNo getPrintObject()
      Gets the value of the printObject property.
      Returns:
      possible object is YesNo
    • setPrintObject

      public void setPrintObject(YesNo value)
      Sets the value of the printObject property.
      Parameters:
      value - allowed object is YesNo
    • 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
    • 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