public class Accidental extends Entity<Accidental>
Modifier and Type | Field and Description |
---|---|
static Accidental |
b
The single flat.
|
static Accidental |
bb
The double flat.
|
protected static Map<Integer,Accidental> |
by_chromaticSteps
Index of the defined accidentals by chromatic steps.
|
protected static EntityCatalog<Accidental> |
catalog
The catalog holding accidentals defined with a name.
|
static int |
fifth_per_chromaticStep
Explains one chromatic step upward as seven functional fifths upward.
|
static Accidental |
h
The single sharp.
|
static Accidental |
hh
The double sharp.
|
static Accidental |
nat
The natural sign.
|
protected int |
shift_chromaticSteps
The chromatic steps caused by this accidental.
|
protected int |
shift_fifths
The number of fifths caused by this accidental.
|
documentations
Modifier | Constructor and Description |
---|---|
protected |
Accidental(int shift_chromaticSteps)
Constructor with no names in (human) languages.
|
protected |
Accidental(int shift_chromaticSteps,
MuLi muli)
Constructor giving names in different (human) languages.
|
Modifier and Type | Method and Description |
---|---|
static Accidental |
byChromaticSteps(int i)
Return the accidental defined for this number of chromatic steps, or define a new one
(with synthetic and symbolic name only), if necessary.
|
int |
get_chromaticSteps_shift()
Return the number of chromatic shifts caused by this accidental.
|
int |
get_fifths_shift()
Return the number of shifts by a fifths (in functional harmonic space)
caused by this accidental.
|
addName, dump, dump, getCatalog, getDocumentation, getDocumentation, getDocumentations, getName, getName, getNames, getParser, getParser, setDocumentation, toString
public static final int fifth_per_chromaticStep
protected int shift_chromaticSteps
protected int shift_fifths
protected static final Map<Integer,Accidental> by_chromaticSteps
protected static final EntityCatalog<Accidental> catalog
public static final Accidental b
public static final Accidental bb
public static final Accidental nat
public static final Accidental h
public static final Accidental hh
###
" etc. as their symbolic name, this instance has traditionally
"x
".protected Accidental(int shift_chromaticSteps, MuLi muli)
protected Accidental(int shift_chromaticSteps)
public int get_chromaticSteps_shift()
public int get_fifths_shift()
public static Accidental byChromaticSteps(int i)