public class FramewiseMerger extends FrameOverlapAddSource
| Modifier and Type | Field and Description |
|---|---|
protected double |
currentLabel |
protected double |
currentOtherLabel |
protected DoubleDataSource |
labelTimes |
protected double |
localTimeStretchFactor |
protected FrameProvider |
otherFrameProvider |
protected DoubleDataSource |
otherLabelTimes |
protected double |
prevLabel |
protected double |
prevOtherLabel |
DEFAULT_WINDOWTYPE, frameProvider, memory, outputWindow, processorblockSizebuf, dataProcessor, DEFAULT_BUFFERSIZE, readPos, writePosdataLength, inputSourceNOT_SPECIFIED| Constructor and Description |
|---|
FramewiseMerger(DoubleDataSource inputSource,
DoubleDataSource pitchmarks,
int samplingRate,
DoubleDataSource labelTimes,
DoubleDataSource otherSource,
DoubleDataSource otherPitchmarks,
int otherSamplingRate,
DoubleDataSource otherLabelTimes,
InlineFrameMerger merger)
Create a new merger, creating audio by pitch-synchronous merging of audio frames from a source (aka the "signal") and a
target (aka the "other"), linearly mapping the corresponding times between the two sources.
|
FramewiseMerger(DoubleDataSource inputSource,
int frameLength,
int samplingRate,
DoubleDataSource labelTimes,
DoubleDataSource otherSource,
int otherSamplingRate,
DoubleDataSource otherLabelTimes,
InlineFrameMerger merger)
Create a new merger, creating audio by merging of audio frames at a fixed frame rate, from a source (aka the "signal") and
a target (aka the "other"), linearly mapping the corresponding times between the two sources.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getBlockSize()
Output blocksize -- here, this is the same as the input frame shift.
|
protected double[] |
getNextFrame()
Get the next frame of input data.
|
static void |
main(String[] args) |
getInputFrameshift, hasMoreData, initialise, prepareBlock, readBlockreadIntoBufferavailable, bufferSpaceLeft, compact, currentlyInBuffer, getData, increaseBufferSizegetAllData, getData, getData, getDataLengthprotected DoubleDataSource labelTimes
protected DoubleDataSource otherLabelTimes
protected FrameProvider otherFrameProvider
protected double prevLabel
protected double currentLabel
protected double prevOtherLabel
protected double currentOtherLabel
protected double localTimeStretchFactor
public FramewiseMerger(DoubleDataSource inputSource, DoubleDataSource pitchmarks, int samplingRate, DoubleDataSource labelTimes, DoubleDataSource otherSource, DoubleDataSource otherPitchmarks, int otherSamplingRate, DoubleDataSource otherLabelTimes, InlineFrameMerger merger)
inputSource - the audio data for the signalpitchmarks - the pitchmarks for the signalsamplingRate - the sampling rate for the signallabelTimes - optionally, the label times for the signal, needed for time alignment between the signal and the otherotherSource - the audio data for the otherotherPitchmarks - the pitchmarks for the otherotherSamplingRate - the sampling rate for the otherotherLabelTimes - optionally, the label times for the other; if both are present, the time interval between the i-th and the
(i+1)-th label time is linearly stretched/squeezed in order to find the mapping frame for interpolationmerger - the signal processing method used for merging the properties of the "other" into the corresponding frame in the
"signal".public FramewiseMerger(DoubleDataSource inputSource, int frameLength, int samplingRate, DoubleDataSource labelTimes, DoubleDataSource otherSource, int otherSamplingRate, DoubleDataSource otherLabelTimes, InlineFrameMerger merger)
inputSource - the audio data for the signalframeLength - length of the fixed-length framessamplingRate - the sampling rate for the signallabelTimes - optionally, the label times for the signal, needed for time alignment between the signal and the otherotherSource - the audio data for the otherotherSamplingRate - the sampling rate for the otherotherLabelTimes - optionally, the label times for the other; if both are present, the time interval between the i-th and the
(i+1)-th label time is linearly stretched/squeezed in order to find the mapping frame for interpolationmerger - the signal processing method used for merging the properties of the "other" into the corresponding frame in the
"signal".protected double[] getNextFrame()
getNextFrame in class FrameOverlapAddSourceprotected int getBlockSize()
getBlockSize in class FrameOverlapAddSourcepublic static void main(String[] args)
args - argsCopyright © 2000–2016 DFKI GmbH. All rights reserved.