Package eu.bandm.music.entities
Class OrnamentUsage<O extends Ornament>
java.lang.Object
eu.bandm.music.entities.OrnamentUsage<O>
- All Implemented Interfaces:
Cloneable
Class reprenting the convetional usage of an ornaments = placing it at a
notehead together with at most two additional accidentals, a lower and an upper one.
-
Field Summary
Modifier and TypeFieldDescriptionprotected @Opt Accidental
An optional accidental for the lower neighbour note of the main note.protected O
The ornament symbol.protected @Opt Accidental
An optional accidental for the upper neighbour note of the main note, to use in the ornament's execution. -
Constructor Summary
ModifierConstructorDescriptionprotected
OrnamentUsage
(O ornament, @Opt Accidental lower, @Opt Accidental upper) Only construtor, setting all parameters. -
Method Summary
Modifier and TypeMethodDescriptionEviden.Eviden.static Translet.Parser
<OrnamentUsage> getParser
(Translet.Parser<Ornament> oparser) Returns a parser for an ornament code with additional accidentals.protected Ornament
Return a new clone with modified accidental.protected Ornament
Return a new clone with modified accidental.
-
Field Details
-
ornament
The ornament symbol. -
upper
An optional accidental for the upper neighbour note of the main note, to use in the ornament's execution. Conventionally printed above the ornament symbol. -
lower
An optional accidental for the lower neighbour note of the main note. to use in the ornament's execution. Conventionally printed above the ornament symbol.
-
-
Constructor Details
-
OrnamentUsage
Only construtor, setting all parameters.
-
-
Method Details
-
get_lower
Eviden. -
get_upper
Eviden. -
with_lower
Return a new clone with modified accidental. -
with_upper
Return a new clone with modified accidental. -
getParser
Returns a parser for an ornament code with additional accidentals. Its grammar isornament lower? ("/" upper)?
.
-