Package org.audiveris.proxymusic
Class KeyOctave
java.lang.Object
org.audiveris.proxymusic.KeyOctave
The key-octave type specifies in which octave an element of a key signature appears. The content specifies the octave value using the same values as the display-octave element. The number attribute is a positive integer that refers to the key signature element in left-to-right order. If the cancel attribute is set to yes, then this number refers to the canceling key signature specified by the cancel element in the parent key element. The cancel attribute cannot be set to yes if there is no corresponding cancel element within the parent key element. It is no by default.
Java class for key-octave complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="key-octave">
<simpleContent>
<extension base="<>octave">
<attribute name="number" use="required" type="{http://www.w3.org/2001/XMLSchema}positiveInteger" />
<attribute name="cancel" type="{}yes-no" />
</extension>
</simpleContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the cancel property.Gets the value of the number property.intgetValue()Octaves are represented by the numbers 0 to 9, where 4 indicates the octave started by middle C.voidSets the value of the cancel property.voidsetNumber(BigInteger value) Sets the value of the number property.voidsetValue(int value) Sets the value of the value property.
-
Field Details
-
value
protected int value -
number
-
cancel
-
-
Constructor Details
-
KeyOctave
public KeyOctave()
-
-
Method Details
-
getValue
public int getValue()Octaves are represented by the numbers 0 to 9, where 4 indicates the octave started by middle C. -
setValue
public void setValue(int value) Sets the value of the value property. -
getNumber
Gets the value of the number property.- Returns:
- possible object is
BigInteger
-
setNumber
Sets the value of the number property.- Parameters:
value- allowed object isBigInteger
-
getCancel
Gets the value of the cancel property.- Returns:
- possible object is
YesNo
-
setCancel
Sets the value of the cancel property.- Parameters:
value- allowed object isYesNo
-