public class FunctionalInterval extends Entity<FunctionalInterval>
3*augmented fifth
".Modifier and Type | Field and Description |
---|---|
static FunctionalInterval |
_1 |
static FunctionalInterval |
_2okt |
static FunctionalInterval |
_4 |
static FunctionalInterval |
_5 |
static FunctionalInterval |
_gr2 |
static FunctionalInterval |
_gr3 |
static FunctionalInterval |
_gr6 |
static FunctionalInterval |
_gr7 |
static FunctionalInterval |
_grDez |
static FunctionalInterval |
_grNon |
static FunctionalInterval |
_kl2 |
static FunctionalInterval |
_kl3 |
static FunctionalInterval |
_kl6 |
static FunctionalInterval |
_kl7 |
static FunctionalInterval |
_klDez |
static FunctionalInterval |
_klNon |
static FunctionalInterval |
_okt |
static FunctionalInterval |
_ue4 |
static FunctionalInterval |
_verm5 |
(package private) static Set<String> |
appendModifiers
All languages which put the modifier after the base name.
|
protected static Map<Integer,Map<Integer,FunctionalInterval>> |
byDiatonicDistance
Maps diatonicDistance to maps from halftone distance to functional interval.
|
static EntityCatalog<FunctionalInterval> |
catalog
The catalog in which all functional intervals are contained, adressable either with
human language or with a synthetic name.
|
protected int |
diatonicDistance
The number of scale degrees bridged by this interval, i.e.
|
protected int |
halfToneDistance
The number of half-tone steps bridged by this interval.
|
protected boolean |
isOvershooting
Indicates that this interval is larger than a seventh, i.e.
|
(package private) static Catalog<Integer> |
modifiers
Represents the modifiers for the intervals size.
|
protected boolean |
perfectKind
Indicates that this interval has only one un-altered form.
|
(package private) static Catalog<Integer> |
scalarStepsNames
Contains the names of the unmodified base intervals.
|
documentations
Modifier and Type | Method and Description |
---|---|
FunctionalInterval |
addHalfTone(int ht)
Return the interval resulting from adding the half-tone modification.
|
static void |
addModifierTranslation(int mod,
String lang,
String text)
Modifiers are encoded by integers, NOT by a scalar type, because conceptually they
can grow infintely.
|
FunctionalInterval |
addOctave(int octave)
Return the interval resulting from adding the octave tone modification.
|
static void |
addScalarStepsName(int steps,
String lang,
String name)
Add a new translation for a base interval.
|
static void |
declareLanguageToAppendModifiers(String s)
Add the given language to those which put the modifier after the base name.
|
void |
dump(PrintStream ps)
Make a debug print out.
|
int |
get_diatonicDistance()
Returns the number of diatonic steps bridged by this interval.
|
int |
get_halfToneDistance()
Returns the number of chromatic steps / half tone steps bridged by this interval.
|
FunctionalInterval |
moduloOctave()
Returns the smallest form modulo octave, i.e.
|
FunctionalInterval |
plus(FunctionalInterval other)
Return the interval resulting from adding both intervals.
|
static void |
rehashNames()
After translations for modifiers and base scale steps have been added for further
languages, all names must be calculated anew.
|
FunctionalInterval |
times(int i)
Return the interval defined by i-times applying this interval.
|
FunctionalPitchModOctave |
transpose_down(FunctionalPitchModOctave pitch)
Transpose a functional pitch class down (modulo octave) by the functional interval.
|
FunctionalPitch |
transpose_down(PitchAndOctave<OctaveRegister,FunctionalPitchModOctave> pitch)
Transpose a functional pitch downward by the functional interval.
|
FunctionalPitchModOctave |
transpose_up(FunctionalPitchModOctave pitch)
Transpose a functional pitch class up (modulo octave) by the functional interval.
|
FunctionalPitch |
transpose_up(PitchAndOctave<OctaveRegister,FunctionalPitchModOctave> pitch)
Transpose a functional pitch upward by the functional interval.
|
static FunctionalInterval |
valueOf(int scaleDistance,
int halfToneDistance)
Returns the interval with the given scale and halftone distances.
|
addName, dump, getCatalog, getDocumentation, getDocumentation, getDocumentations, getName, getName, getNames, getParser, getParser, setDocumentation, toString
static Catalog<Integer> modifiers
perfectKind
)
(The single default form of perfect intervals is sometimes named with the modifier "pure" / "rein", to emphasize the contrast to "diminished", etc., but the modifier "pure" can be left out, and should be left out whenever it could be mixed up with "pure tuning".)
The inverval which is one half-step larger than the major or the pure form is the augmented form. The interval which is one half-step larger than the augmented form is the double augmented form. The inverval which is one half-step smaller than the minor or the pure form is the diminished form. The interval which is one half-step smaller than the diminished form is the double diminished form.
static Catalog<Integer> scalarStepsNames
static Set<String> appendModifiers
public static final EntityCatalog<FunctionalInterval> catalog
scalarStepsNames
and the modifiers in modifiers
.protected int diatonicDistance
protected int halfToneDistance
protected static Map<Integer,Map<Integer,FunctionalInterval>> byDiatonicDistance
protected final boolean perfectKind
protected final boolean isOvershooting
public static final FunctionalInterval _1
public static final FunctionalInterval _kl2
public static final FunctionalInterval _gr2
public static final FunctionalInterval _kl3
public static final FunctionalInterval _gr3
public static final FunctionalInterval _4
public static final FunctionalInterval _ue4
public static final FunctionalInterval _verm5
public static final FunctionalInterval _5
public static final FunctionalInterval _kl6
public static final FunctionalInterval _gr6
public static final FunctionalInterval _kl7
public static final FunctionalInterval _gr7
public static final FunctionalInterval _okt
public static final FunctionalInterval _klNon
public static final FunctionalInterval _grNon
public static final FunctionalInterval _klDez
public static final FunctionalInterval _grDez
public static final FunctionalInterval _2okt
public static void addModifierTranslation(int mod, String lang, String text)
public static void addScalarStepsName(int steps, String lang, String name)
scalarStepsNames
.public static void declareLanguageToAppendModifiers(String s)
public FunctionalInterval moduloOctave()
public static FunctionalInterval valueOf(int scaleDistance, int halfToneDistance)
public static void rehashNames()
The implemented algorithm assumes that adding a name is IDEMPOTENT! FIXME CHECK
public FunctionalInterval times(int i)
i
- must be >= 0public FunctionalInterval plus(FunctionalInterval other)
public FunctionalInterval addHalfTone(int ht)
public FunctionalInterval addOctave(int octave)
octave
- must CURRENTLY FIXME be >= 0public int get_diatonicDistance()
public int get_halfToneDistance()
public void dump(PrintStream ps)
dump
in class Entity<FunctionalInterval>
public FunctionalPitch transpose_up(PitchAndOctave<OctaveRegister,FunctionalPitchModOctave> pitch)
public FunctionalPitch transpose_down(PitchAndOctave<OctaveRegister,FunctionalPitchModOctave> pitch)
public FunctionalPitchModOctave transpose_up(FunctionalPitchModOctave pitch)
public FunctionalPitchModOctave transpose_down(FunctionalPitchModOctave pitch)