Package eu.bandm.music.applications.harm
Class Ff
java.lang.Object
eu.bandm.music.applications.harm.Ff
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal doublefinal doublefinal booleanfinal booleanfinal booleanfinal booleanfinal doubleThe factor as logarithm base 2.final doubleThe factor as natural logarithm.static final doublestatic final doublefinal intstatic final Ffprotected intconfiguration by subclassing parameterstatic final Rational -
Method Summary
Modifier and TypeMethodDescriptiondoublebases()protected StringcomponentString(boolean decimal, String separator, @Opt String replaceNull, boolean suppress2) doubleThe ld difference to the next octave, as used for filtering.cString(boolean decimal, boolean longFormat) The string with suppressed 2-component.fString(boolean decimal, boolean longFormat) doubleExact cents are only given when no other base than "2" is present.getExponent(int base) getMap()m()static FfMust have the form "(u|m|)F(n|) <rat>+".(package private) intpower(int base, int exp) (package private) StringsemiSep(int signum) static StringtoShortString(double v, int precision) toString()u()uString(boolean decimal, boolean longFormat) The string ONLY if it is a u-form.with(int base, double exp) with(int base, int exp) without(int base)
-
Field Details
-
s
-
RAT_1200
-
POSTCOMMA
protected int POSTCOMMAconfiguration by subclassing parameter -
map
-
doubleValue
public final double doubleValue -
ln
public final double lnThe factor as natural logarithm. -
ld
public final double ldThe factor as logarithm base 2. -
hasExactCents
public final boolean hasExactCents -
cents
public final double cents -
rationalValue
-
LN_2
public static final double LN_2 -
LN_HALF_OCT
public static final double LN_HALF_OCT -
isM
public final boolean isM -
isU
public final boolean isU -
goesDown
public final boolean goesDown -
octaves
public final int octaves -
ONE
-
-
Method Details
-
toShortString
-
u
-
m
-
of
-
bases
-
getMap
-
getExponent
-
with
-
with
-
with
-
without
-
componentString
protected String componentString(boolean decimal, String separator, @Opt String replaceNull, boolean suppress2) - Parameters:
decimal- whether to show decimal fractions, not "a/b" notation.separator- to be used between componentsreplaceNull- text to use instead of "0" for an exponent of 2suppress2- wether the exponent of two is treated as being zero
-
power
int power(int base, int exp) -
semiSep
-
semiSeparate
-
toString
-
getDoubleValue
public double getDoubleValue() -
getRationalValue
-
getExactCents
Exact cents are only given when no other base than "2" is present. -
fString
-
uString
The string ONLY if it is a u-form. -
cString
The string with suppressed 2-component. -
fractString
-
decString
-
decString
-
centsString
-
criticalDiff
public double criticalDiff()The ld difference to the next octave, as used for filtering.^ | | ----\ positive diff octaves + > | -----/ negative diff | octaves + | | ======= | | -----\ positive diff + > | -----/ negative diff | + | | v -
absCriticalDiff
public double absCriticalDiff() -
criticalCentsString
-
parseConstructorAndExponents
Must have the form "(u|m|)F(n|) <rat>+".
-