public abstract class ConstantQTransformFactory extends Object
Transforms. Using the factory allows for sliding-in a faster, perhaps
native implementation.
In order to use a factory other than the default factory, you need to specify
its classname with the system property com.tagtraum.jipes.math.ConstantQTransformFactory.
The default implementation is equivalent to the one described by Brown and Puckette in their 1992 paper
An Efficient Algorithm for the Calculation of a Constant Q Transform.
Date: 5/16/11| Modifier and Type | Field and Description |
|---|---|
static float |
DEFAULT_THRESHOLD |
static String |
FACTORYCLASS_PROPERTY_NAME |
| Constructor and Description |
|---|
ConstantQTransformFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract Transform |
create(float minFreq,
float maxFreq,
int binsPerOctave,
float sampleRate,
float threshold)
Creates an instance of the constant-Q-transform.
|
static ConstantQTransformFactory |
getInstance()
Creates a factory for Constant Q
Transform objects. |
public static final String FACTORYCLASS_PROPERTY_NAME
public static final float DEFAULT_THRESHOLD
public static ConstantQTransformFactory getInstance()
Transform objects.public abstract Transform create(float minFreq, float maxFreq, int binsPerOctave, float sampleRate, float threshold)
minFreq - min frequencymaxFreq - max frequencybinsPerOctave - total bins per octavesampleRate - sample ratethreshold - magnitude threshold used for creating the sparse matrix used in the kernel - see DEFAULT_THRESHOLDCopyright © 2011–2020 tagtraum industries incorporated. All rights reserved.