Package org.audiveris.proxymusic
Class Beam
java.lang.Object
org.audiveris.proxymusic.Beam
Beam values include begin, continue, end, forward hook, and backward hook. Up to eight concurrent beams are available to cover up to 1024th notes. Each beam in a note is represented with a separate beam element, starting with the eighth note beam using a number attribute of 1.
Note that the beam number does not distinguish sets of beams that overlap, as it does for slur and other elements. Beaming groups are distinguished by being in different voices and/or the presence or absence of grace and cue elements.
Beams that have a begin value can also have a fan attribute to indicate accelerandos and ritardandos using fanned beams. The fan attribute may also be used with a continue value if the fanning direction changes on that note. The value is "none" if not specified.
The repeater attribute has been deprecated in MusicXML 3.0. Formerly used for tremolos, it needs to be specified with a "yes" value for each beam using it.
Java class for beam complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="beam">
<simpleContent>
<extension base="<>beam-value">
<attGroup ref="{}color"/>
<attGroup ref="{}optional-unique-id"/>
<attribute name="number" type="{}beam-level" default="1" />
<attribute name="repeater" type="{}yes-no" />
<attribute name="fan" type="{}fan" />
</extension>
</simpleContent>
</complexType>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Gets the value of the color property.getFan()Gets the value of the fan property.getId()Gets the value of the id property.intGets the value of the number property.Gets the value of the repeater property.getValue()The beam-value type represents the type of beam associated with each of 8 beam levels (up to 1024th notes) available for each note.voidSets the value of the color property.voidSets the value of the fan property.voidSets the value of the id property.voidSets the value of the number property.voidsetRepeater(YesNo value) Sets the value of the repeater property.voidSets the value of the value property.
-
Field Details
-
value
-
number
-
repeater
-
fan
-
color
-
id
-
-
Constructor Details
-
Beam
public Beam()
-
-
Method Details
-
getValue
The beam-value type represents the type of beam associated with each of 8 beam levels (up to 1024th notes) available for each note.- Returns:
- possible object is
BeamValue
-
setValue
Sets the value of the value property.- Parameters:
value- allowed object isBeamValue
-
getNumber
public int getNumber()Gets the value of the number property.- Returns:
- possible object is
Integer
-
setNumber
Sets the value of the number property.- Parameters:
value- allowed object isInteger
-
getRepeater
Gets the value of the repeater property.- Returns:
- possible object is
YesNo
-
setRepeater
Sets the value of the repeater property.- Parameters:
value- allowed object isYesNo
-
getFan
Gets the value of the fan property.- Returns:
- possible object is
Fan
-
setFan
Sets the value of the fan property.- Parameters:
value- allowed object isFan
-
getColor
Gets the value of the color property.- Returns:
- possible object is
String
-
setColor
Sets the value of the color property.- Parameters:
value- allowed object isString
-
getId
Gets the value of the id property.- Returns:
- possible object is
String
-
setId
Sets the value of the id property.- Parameters:
value- allowed object isString
-