public class HarmonicSpectrum extends Object
Modifier and Type | Field and Description |
---|---|
(package private) SortedMap<Integer,Float> |
components |
static HarmonicSpectrum |
defaultSaw |
static HarmonicSpectrum |
defaultSquare |
static HarmonicSpectrum |
defaultTriangle |
(package private) Map<Integer,float[]> |
floatRealizations |
(package private) Map<Integer,int[]> |
intRealizations |
static HarmonicSpectrum |
pureSine |
Constructor and Description |
---|
HarmonicSpectrum() |
Modifier and Type | Method and Description |
---|---|
Map<Integer,Float> |
getComponents() |
float[] |
getFloatRealization(int points) |
float |
getNormalizedEnergy() |
int |
getNyquistFactor()
Highest partial, i.e.
|
void |
put(int component,
float weight) |
public static final HarmonicSpectrum pureSine
public static final HarmonicSpectrum defaultSquare
public static final HarmonicSpectrum defaultTriangle
public static final HarmonicSpectrum defaultSaw
public void put(int component, float weight)
public int getNyquistFactor()
public float getNormalizedEnergy()
public float[] getFloatRealization(int points)