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 conventional usage of an ornaments = placing it at a
notehead together with at most two additional accidentals,
a lower and an upper one.
-
Field Summary
FieldsModifier 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
ConstructorsModifierConstructorDescriptionprotected
OrnamentUsage
(O ornament, @Opt Accidental lower, @Opt Accidental upper) Only construtor, setting all parameters. -
Method Summary
Modifier and TypeMethodDescriptionEvident.Evident.Evident.static Translet.Parser
<OrnamentUsage> getParser
(Translet.Parser<Ornament> oparser, String sep) 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_ornament
Evident. -
get_lower
Evident. -
get_upper
Evident. -
with_lower
Return a new clone with modified accidental. -
with_upper
Return a new clone with modified accidental. -
getParser
public static Translet.Parser<OrnamentUsage> getParser(Translet.Parser<Ornament> oparser, String sep) Returns a parser for an ornament code with additional accidentals. Its grammar isornament lower? (SEP upper)?
. As separator symbole SEP a slash »/
« or a caret »^
« seems sensible.
-