|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.hogent.tarsos.util.histogram.Histogram
be.hogent.tarsos.util.histogram.PitchHistogram
public final class PitchHistogram
The PitchHistogram accepts values from 0 to 9600 cents or +- from 16Hz to
40000Hz: the human hearing range is completely covered.
The start and stop values can be configured.
Values outside the defined range are ignored!
| Constructor Summary | |
|---|---|
PitchHistogram()
|
|
| Method Summary | |
|---|---|
static double[] |
createAccumulator(java.util.List<Annotation> annotations,
double width)
|
static PitchHistogram |
createPitchHistogram(java.util.List<Annotation> annotations,
double width)
Create a tone scale histogram using a kernel instead of an ordinary count. |
PitchClassHistogram |
mostEnergyRichOctaves(int numberOfOctaves)
|
PitchClassHistogram |
mostEnergyRitchOctave()
|
PitchClassHistogram |
pitchClassHistogram()
|
void |
plot(java.lang.String fileName,
java.lang.String title)
Plots the histogram to a x y plot. |
void |
plotAmbitusHistogram(java.lang.String fileName)
Plot the complete ambitus. |
void |
plotAmbitusHistogram(java.lang.String fileName,
int start,
int stop)
Plot the ambitus but use only values between start and stop (cents). |
void |
plotToneScaleHistogram(java.lang.String fileName,
boolean splitOctaves)
Saves a tone scale histogram plot with each octave separately or just the total. |
void |
valueAddedHook(double value)
A hook to intercept added values. |
| Methods inherited from class be.hogent.tarsos.util.histogram.Histogram |
|---|
add, add, add, addToEachBin, baselineHistogram, clear, clone, correlation, correlation, correlationWithDisplacement, correlationWithDisplacement, displace, displacementForOptimalCorrelation, displacementForOptimalCorrelation, export, exportMatLab, gaussianSmooth, getAbsoluteSumFreq, getClassWidth, getCount, getCountForClass, getCumFreq, getCumPct, getEntropy, getKeyForClass, getMaxBinCount, getMean, getMedian, getNumberOfClasses, getPct, getStart, getStop, getSumFreq, invert, isWrapped, keySet, max, mean, multiply, normalize, plotCorrelation, raise, setCount, smooth, subtract, toString, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PitchHistogram()
| Method Detail |
|---|
public void valueAddedHook(double value)
Histogram
valueAddedHook in class Histogramvalue - The value addedpublic PitchClassHistogram mostEnergyRichOctaves(int numberOfOctaves)
numberOfOctaves - The number of energy rich octaves
public PitchClassHistogram pitchClassHistogram()
public void plotAmbitusHistogram(java.lang.String fileName)
fileName -
public void plotAmbitusHistogram(java.lang.String fileName,
int start,
int stop)
fileName - the plot is saved to this location.start - the starting valuestop - stopping valuepublic PitchClassHistogram mostEnergyRitchOctave()
public void plotToneScaleHistogram(java.lang.String fileName,
boolean splitOctaves)
fileName - the plot is saved to this location.splitOctaves - if true each octave is separated, otherwise only the total is
shown.
public void plot(java.lang.String fileName,
java.lang.String title)
Histogram
plot in class HistogramfileName - The file is saved in PNG file format so the fileName should
end on PNG.title - The title of the histogram. Use an empty string or null for an
empty title.
public static PitchHistogram createPitchHistogram(java.util.List<Annotation> annotations,
double width)
annotations - A list of annotations.swidth - The width of each kernel.
public static double[] createAccumulator(java.util.List<Annotation> annotations,
double width)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||