Class Pitch

java.lang.Object
org.audiveris.proxymusic.Pitch

public class Pitch extends Object
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 Details

    • step

      protected Step step
    • alter

      protected BigDecimal alter
    • octave

      protected int octave
  • Constructor Details

    • Pitch

      public Pitch()
  • Method Details

    • getStep

      public Step getStep()
      Gets the value of the step property.
      Returns:
      possible object is Step
    • setStep

      public void setStep(Step value)
      Sets the value of the step property.
      Parameters:
      value - allowed object is Step
    • getAlter

      public BigDecimal getAlter()
      Gets the value of the alter property.
      Returns:
      possible object is BigDecimal
    • setAlter

      public void setAlter(BigDecimal value)
      Sets the value of the alter property.
      Parameters:
      value - allowed object is BigDecimal
    • getOctave

      public int getOctave()
      Gets the value of the octave property.
    • setOctave

      public void setOctave(int value)
      Sets the value of the octave property.