public class ClefUsage extends Entity<ClefUsage>
Modifier and Type | Field and Description |
---|---|
static ClefUsage |
alt
The traditional alto clef.
|
static ClefUsage |
bariton
The traditional bariton clef.
|
static ClefUsage |
bass
The standard bass clef.
|
static ClefUsage |
bass8va
Bass clef with additional "octave lower" sign.
|
static EntityCatalog<ClefUsage> |
catalog |
protected Clef |
clef
The clef symbol used.
|
static String |
default_prefix
The default prefix for parsing clef usages, by name or symbolic.
|
static ClefUsage |
frenchViolin
The "french violin", one line lower than the standard violin clef.
|
protected int |
line
The nubmer of the line to which its reference point is aligned.
|
static ClefUsage |
mezzp
The traditional mezzo soprano clef.
|
protected int |
octaves
Additional octave displacements indicated graphically with the clef symbol.
|
static ClefUsage |
sopran
The traditional soprano clef.
|
static ClefUsage |
tenor
The traditional tenor clef.
|
static ClefUsage |
violin
The standard violin clef.
|
static ClefUsage |
violin15va
The violin clef with an additional "two octaces higher" sign.
|
static ClefUsage |
violin8va
The violin clef with an additional "8va higher" sign.
|
static ClefUsage |
violin8vaBassa
The violin clef with an additional "8va lower" sign, as sometimes used for tenor voices.
|
documentations
Constructor and Description |
---|
ClefUsage(Clef clef,
int line,
int octaves)
Convenience constructor, with no naming for this case of usage.
|
ClefUsage(Clef clef,
int line,
int octaves,
Map<String,String> names)
Complete constructor, fixing all parameters.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(ClefUsage other) |
static Translet.Parser<ClefUsage> |
fullParser(String lang)
Accepts generic version (see
genericParser(String,String) )
OR the predefined standard clef usages, both in the given language,
with default_prefix . |
static Translet.Parser<ClefUsage> |
fullParser(String lang,
String prefix)
Accepts generic version (see
genericParser(String,String) )
OR the predefined standard clef usages, with given language and prefix. |
static Translet.Parser<ClefUsage> |
genericParser(String lang)
Accepts only the generic version (see
genericParser(String,String) )
in the given language, with default_prefix . |
static Translet.Parser<ClefUsage> |
genericParser(String lang,
String prefix)
Accepts only the generic format, which is a sequence of the
given prefix, the clef name in the given language,
the line number where to place the clef (1 is bottom line)
and finally optionally "+1"/"+2"/"-1"/"-2" for maximally two
additional octaves displacement.
|
Clef |
get_clef()
Return the clef symbol.
|
int |
get_line()
Return the line indication, @see #line
|
int |
get_octaves()
Return the additional octave displacement.
|
protected ClefUsage |
withOctave(int octave)
Clone a copy with the given octave displacement.
|
addName, dump, dump, getCatalog, getDocumentation, getDocumentation, getDocumentations, getName, getName, getNames, getParser, getParser, setDocumentation, toString
public static final EntityCatalog<ClefUsage> catalog
protected Clef clef
protected int line
protected int octaves
public static final ClefUsage bass
public static final ClefUsage bass8va
public static final ClefUsage violin
public static final ClefUsage frenchViolin
public static final ClefUsage violin8va
public static final ClefUsage violin8vaBassa
public static final ClefUsage violin15va
public static final ClefUsage sopran
public static final ClefUsage mezzp
public static final ClefUsage alt
public static final ClefUsage tenor
public static final ClefUsage bariton
public static final String default_prefix
public ClefUsage(Clef clef, int line, int octaves, Map<String,String> names)
public ClefUsage(Clef clef, int line, int octaves)
public Clef get_clef()
public int get_line()
public int get_octaves()
public boolean equals(ClefUsage other)
protected ClefUsage withOctave(int octave)
public static final Translet.Parser<ClefUsage> genericParser(String lang)
genericParser(String,String)
)
in the given language, with default_prefix
.public static final Translet.Parser<ClefUsage> fullParser(String lang)
genericParser(String,String)
)
OR the predefined standard clef usages, both in the given language,
with default_prefix
.public static final Translet.Parser<ClefUsage> genericParser(String lang, String prefix)
NullPointerException
- if one of the arguments is nullpublic static final Translet.Parser<ClefUsage> fullParser(String lang, String prefix)
genericParser(String,String)
)
OR the predefined standard clef usages, with given language and prefix.NullPointerException
- if one of the arguments is null