Package org.audiveris.proxymusic
Class Pitch
java.lang.Object
org.audiveris.proxymusic.Pitch
Pitch is represented as a combination of the step of the diatonic scale, the chromatic alteration, and the octave.
Java class for pitch complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="pitch">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="step" type="{}step"/>
<element name="alter" type="{}semitones" minOccurs="0"/>
<element name="octave" type="{}octave"/>
</sequence>
</restriction>
</complexContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlter()Gets the value of the alter property.intGets the value of the octave property.getStep()Gets the value of the step property.voidsetAlter(BigDecimal value) Sets the value of the alter property.voidsetOctave(int value) Sets the value of the octave property.voidSets the value of the step property.
-
Field Details
-
step
-
alter
-
octave
protected int octave
-
-
Constructor Details
-
Pitch
public Pitch()
-
-
Method Details
-
getStep
Gets the value of the step property.- Returns:
- possible object is
Step
-
setStep
Sets the value of the step property.- Parameters:
value- allowed object isStep
-
getAlter
Gets the value of the alter property.- Returns:
- possible object is
BigDecimal
-
setAlter
Sets the value of the alter property.- Parameters:
value- allowed object isBigDecimal
-
getOctave
public int getOctave()Gets the value of the octave property. -
setOctave
public void setOctave(int value) Sets the value of the octave property.
-