public class LpcPitchSynchronousAnalyser extends PitchFrameAnalyser
| Modifier and Type | Field and Description |
|---|---|
static int |
lpOrder |
analysisResults, analysisWindowcurrPitchmark, cutFrame, periodLengths, periodsInMemory, pitchmarks, shiftPeriods, twoHalvesWindowframe, frameLength, frameShift, frameStart, nextFrameStart, processor, samplingRate, signal, totalRead, validSamplesInFrame| Constructor and Description |
|---|
LpcPitchSynchronousAnalyser(DoubleDataSource signal,
DoubleDataSource pitchmarks,
int windowType,
int samplingRate)
Initialise a PitchLPCAnalyser.
|
LpcPitchSynchronousAnalyser(DoubleDataSource signal,
DoubleDataSource pitchmarks,
int windowType,
int samplingRate,
int framePeriods,
int shiftPeriods)
Create a new PitchLPCAnalyser with a configurable number of pitch periods per frame and pitch periods to shift by.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
analyse(double[] frame)
Apply this PitchFrameAnalyser to the given data.
|
static void |
main(String[] args) |
analyseAllFrames, analyseAvailableFrames, analyseNextFrame, constructAnalysisResultgetCurrentFrame, getData, getFramePeriods, getNextFrame, getShiftPeriods, hasMoreDatagetFrameLengthSamples, getFrameLengthTime, getFrameShiftSamples, getFrameShiftTime, getFrameStartSamples, getFrameStartTime, getSamplingRate, resetInternalTimer, stopWhenTouchingEnd, validSamplesInFramepublic LpcPitchSynchronousAnalyser(DoubleDataSource signal, DoubleDataSource pitchmarks, int windowType, int samplingRate)
signal - the signal source to read frompitchmarks - the source of the pitchmarks, in seconds from the start of signalwindowType - type of analysis window to use, @see{de.dfki.signalproc.window.Window#getAvailableTypes()}samplingRate - the number of samples in one second.public LpcPitchSynchronousAnalyser(DoubleDataSource signal, DoubleDataSource pitchmarks, int windowType, int samplingRate, int framePeriods, int shiftPeriods)
signal - audio signalpitchmarks - an array of pitchmarks; each pitch mark is in seconds from signal startwindowType - type of analysis window to use, @see{de.dfki.signalproc.window.Window#getAvailableTypes()}samplingRate - number of samples per second in signalframePeriods - number of periods that each frame should containshiftPeriods - number of periods that frames should be shifted bypublic Object analyse(double[] frame)
analyse in class PitchFrameAnalyserframe - the data to analyse, which must be of the length prescribed by this FrameBasedAnalyser, i.e. by
FrameProvider.getFrameLengthSamples().IllegalArgumentException - if frame does not have the prescribed lengthCopyright © 2000–2016 DFKI GmbH. All rights reserved.