public class FunctionalKey extends Entity<FunctionalKey>
Modifier and Type | Field and Description |
---|---|
protected FunctionalPitchModOctave |
base
The root or base tone of this key.
|
static EntityCatalog<FunctionalKey> |
catalog
Catalog of all defined keys.
|
protected FunctionalGender |
gender
The gender(/"mode") of this key.
|
documentations
Modifier and Type | Method and Description |
---|---|
FunctionalPitchModOctave |
get_base()
Return the base pitch of the key.
|
int |
get_fifthsFromC()
Get the distance of the base (in case of major) or the base of
the relative key (/"parallele Durtonart") in case of minor, from
the pitch class of "C".
|
FunctionalGender |
get_gender()
Return the gender of the key.
|
static Translet.Parser<FunctionalKey> |
getCapitalizationAdjustedParser(String lang,
String delim)
Delivers a parser which accepts the lower-initial variant of a pitch class
followed by the word for minor, and the upper-initial variant for major.
|
static Translet.Parser<FunctionalKey> |
getCapitalizationOnlyParser(String lang)
Delivers a parser which accepts only the pitch class names and
derives the gender/mode from the case of the initial character.
|
static Translet.Parser<FunctionalKey> |
getExplicitParser(String lang,
String delim)
Delivers a parser which accepts the names of the pitch classes (only) as they
were defined.
|
String |
toString() |
String |
toString(String lang)
Returns a name in the given language.
|
static FunctionalKey |
valueOf(FunctionalPitchModOctave base,
FunctionalGender gender) |
addName, dump, dump, getCatalog, getDocumentation, getDocumentation, getDocumentations, getName, getName, getNames, getParser, getParser, setDocumentation, toString
protected FunctionalPitchModOctave base
protected FunctionalGender gender
public static final EntityCatalog<FunctionalKey> catalog
public FunctionalGender get_gender()
public FunctionalPitchModOctave get_base()
public int get_fifthsFromC()
public static FunctionalKey valueOf(FunctionalPitchModOctave base, FunctionalGender gender)
public String toString(String lang)
public static Translet.Parser<FunctionalKey> getExplicitParser(String lang, String delim)
public static Translet.Parser<FunctionalKey> getCapitalizationAdjustedParser(String lang, String delim)
public static Translet.Parser<FunctionalKey> getCapitalizationOnlyParser(String lang)