public class OctaveRegister extends Entity<OctaveRegister> implements Comparable<OctaveRegister>
The numeric value is that the "small c" is in octave register number "0" and the "c'" or "c-prime" in octave register number "1". Additionally the modern Midi/Jazz numbering is supported for retrieval.
The non-numerical naming is partly language specific (like "gr" for "groß", "sk" for "subkontra", but "'3" for "dreigestrichen")
Attention: According to Riemann ("Notenschrift und Notendruck. Festschrift zur 50-jährigen Jubelfeier des Bestehens der Firma Roeder", Leipzip 1896) historically there were many otherways to define octave registers: a upwards to g, f upwards to e, even b-natural upwards to b-flat! These variants are currently not implemented here.
Modifier and Type | Field and Description |
---|---|
static OctaveRegister |
_1
Octave register from c to c, midi label 4, classical label 1, "prime"/"one line"
|
static OctaveRegister |
_2
Octave register from c to c, midi label 5, classical label 2, "two lines"
|
static OctaveRegister |
_3
Octave register from c to c, midi label 6, classical label 3
|
static OctaveRegister |
_4
Octave register from c to c, midi label 7, classical label 4
|
static OctaveRegister |
_5
Octave register from c to c, midi label 8, classical label 5
|
static OctaveRegister |
_6
Octave register from c to c, midi label 9, classical label 6
|
static OctaveRegister |
_7
Octave register from c to c, midi label 10, classical label 7
|
protected static Map<Integer,OctaveRegister> |
byNum
Local cache by numeric value.
|
static EntityCatalog<OctaveRegister> |
catalog
Catalog of all defined or used octave registers.
|
static OctaveRegister |
gr
Octave register from c to c, midi label 2, classical label -1, "great"
|
static OctaveRegister |
kl
Octave register from c to c, midi label 3, classical label 0, "small"
|
static OctaveRegister |
kt
Octave register from c to c, midi label 1, classical label -2, "contra"
|
protected int |
numericValue
The numeric encoding.
|
static OctaveRegister |
sk
Octave register from c to c, midi label 0, classical label -3, "sub contra"
|
documentations
Modifier | Constructor and Description |
---|---|
protected |
OctaveRegister(int numeric,
Map<String,String> names)
Only constructor.
|
Modifier and Type | Method and Description |
---|---|
OctaveRegister |
add(int i)
Get the octave registers with the label given offset.
|
static OctaveRegister |
byMidiLabel(int num)
Returns the register defined for this midi-style numbering (0= subcontra, 3=small, etc.)
|
static OctaveRegister |
byNumber(int num)
Returns the register defined for this numeric label (-3 = subcontra, 0=small, etc.)
|
int |
compareTo(OctaveRegister other) |
int |
get_midiLabel()
Delivers the modern Jazz/Midi tradition, which assigns "3" to the "small octave"
and "4" to the "prime octave".
|
int |
get_numericValue()
Delivers the register number in classical style (-3 = subcontra, 0=small, etc.)
|
String |
toString()
Delivers the representation in the "lilypond" language.
|
addName, dump, dump, getCatalog, getDocumentation, getDocumentation, getDocumentations, getName, getName, getNames, getParser, getParser, setDocumentation, toString
protected final int numericValue
protected static final Map<Integer,OctaveRegister> byNum
public static final EntityCatalog<OctaveRegister> catalog
public static final OctaveRegister sk
public static final OctaveRegister kt
public static final OctaveRegister gr
public static final OctaveRegister kl
public static final OctaveRegister _1
public static final OctaveRegister _2
public static final OctaveRegister _3
public static final OctaveRegister _4
public static final OctaveRegister _5
public static final OctaveRegister _6
public static final OctaveRegister _7
public int compareTo(OctaveRegister other)
compareTo
in interface Comparable<OctaveRegister>
public static OctaveRegister byNumber(int num)
public static OctaveRegister byMidiLabel(int num)
public int get_midiLabel()
public int get_numericValue()
public OctaveRegister add(int i)