WaveFile

Undocumented in source.
class WaveFile {}

Constructors

this
this()
Undocumented in source.
this
this(WaveFile v, bool forceMono)
Undocumented in source.

Members

Functions

calcBaseFrequency
float calcBaseFrequency()

returns autocorrelation best frequency at center of file

calcExcitation
void calcExcitation()
Undocumented in source. Be warned that the author may not have intended to support it.
calcLocalFrequency
float calcLocalFrequency(float position, float minFreq)
Undocumented in source. Be warned that the author may not have intended to support it.
correctMarksForNormalizedAmplitude
void correctMarksForNormalizedAmplitude()
Undocumented in source. Be warned that the author may not have intended to support it.
correctMarksForNormalizedAmplitude
void correctMarksForNormalizedAmplitude(float[] marks, int sign)
Undocumented in source. Be warned that the author may not have intended to support it.
fill
void fill(float value)
Undocumented in source. Be warned that the author may not have intended to support it.
fillAmplitudesFromPeriods
int fillAmplitudesFromPeriods()

returns sign of biggest amplitude

fillPeriodInfo
void fillPeriodInfo(PeriodInfo period, float start, float end)
Undocumented in source. Be warned that the author may not have intended to support it.
fillPeriodsFromMarks
void fillPeriodsFromMarks()
Undocumented in source. Be warned that the author may not have intended to support it.
findMaxDiffPosition
float findMaxDiffPosition(int startFrame, int endFrame)
Undocumented in source. Be warned that the author may not have intended to support it.
findNearPhase0
void findNearPhase0(float positionTimeSeconds, float freqHerz, int sign, float zeroPhaseTimePosSeconds, float amplitude)
Undocumented in source. Be warned that the author may not have intended to support it.
findNearPhase0FreqAutocorrection
void findNearPhase0FreqAutocorrection(float positionTimeSeconds, float freqHerz, float maxCorrection, int sign, float zeroPhaseTimePosSeconds, float amplitude, float newFreq)
Undocumented in source. Be warned that the author may not have intended to support it.
findZeroCrossingNear
float findZeroCrossingNear(float timePosition)
Undocumented in source. Be warned that the author may not have intended to support it.
findZeroCrossingPositions
float[] findZeroCrossingPositions(int sign)

sign == 1 if biggest amplitude is positive, -1 if negative

findZeroPhasePositions
float[] findZeroPhasePositions(int sign)

sign == 1 if biggest amplitude is positive, -1 if negative

firFilter
WaveFile firFilter(float[] filter)

create WaveFile which is FIR filtered copy of current wave

firFilterInverse
WaveFile firFilterInverse(float[] filter)

create WaveFile which is FIR inverse filtered copy of current wave

frameToTime
float frameToTime(int frame)
Undocumented in source. Be warned that the author may not have intended to support it.
frameToTime
float frameToTime(float frame)
Undocumented in source. Be warned that the author may not have intended to support it.
generateFrequenciesFromMarks
void generateFrequenciesFromMarks()
Undocumented in source. Be warned that the author may not have intended to support it.
getMaxAmplitudeSign
int getMaxAmplitudeSign()
Undocumented in source. Be warned that the author may not have intended to support it.
getRange
WaveFile getRange(int start, int end, bool forceMono)
Undocumented in source. Be warned that the author may not have intended to support it.
getSample
float getSample(int index, int channel)
Undocumented in source. Be warned that the author may not have intended to support it.
getSampleInterpolated
float getSampleInterpolated(float time, int channel)

linearly interpolated sample by time

getSamples
void getSamples(int startIndex, int channel, float[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
getSamplesInterpolated
void getSamplesInterpolated(float frameMiddle, float step, float[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
getSamplesZpad4
void getSamplesZpad4(int startIndex, int channel, float[] buf)
Undocumented in source. Be warned that the author may not have intended to support it.
limitFrameIndex
void limitFrameIndex(int index)
Undocumented in source. Be warned that the author may not have intended to support it.
normalizeAmplitude
void normalizeAmplitude()
Undocumented in source. Be warned that the author may not have intended to support it.
removeDcOffset
void removeDcOffset(float minTime, float maxTime)
Undocumented in source. Be warned that the author may not have intended to support it.
setMarks
void setMarks(float[] _marks, float[] _negativeMarks)
Undocumented in source. Be warned that the author may not have intended to support it.
sinAmpAt
float sinAmpAt(float positionTimeSeconds, float freqHerz, int sign)
Undocumented in source. Be warned that the author may not have intended to support it.
smoothLSP
void smoothLSP()
Undocumented in source. Be warned that the author may not have intended to support it.
smoothMarks
void smoothMarks()
Undocumented in source. Be warned that the author may not have intended to support it.
timeToFrame
int timeToFrame(float time)
Undocumented in source. Be warned that the author may not have intended to support it.
upsample4x
WaveFile upsample4x(int start, int end)
Undocumented in source. Be warned that the author may not have intended to support it.
upsample4x
WaveFile upsample4x()
Undocumented in source. Be warned that the author may not have intended to support it.
upsample4xFreqDomainZpad
WaveFile upsample4xFreqDomainZpad()
Undocumented in source. Be warned that the author may not have intended to support it.
upsample4xTimeDomainZpad
WaveFile upsample4xTimeDomainZpad()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

amplitudes
float[] amplitudes;
Undocumented in source.
channels
int channels;
Undocumented in source.
data
float[] data;
Undocumented in source.
excitation
float[] excitation;
Undocumented in source.
filename
string filename;
Undocumented in source.
frames
int frames;
Undocumented in source.
frequencies
float[] frequencies;
Undocumented in source.
lpc
float[LPC_SIZE] lpc;
Undocumented in source.
lsp
float[LPC_SIZE] lsp;
Undocumented in source.
marks
float[] marks;
Undocumented in source.
maxFrequencyK
float maxFrequencyK;
Undocumented in source.
middleFrequency
float middleFrequency;
Undocumented in source.
minFrequencyK
float minFrequencyK;
Undocumented in source.
negativeMarks
float[] negativeMarks;
Undocumented in source.
periods
PeriodInfo[] periods;
Undocumented in source.
sampleRate
int sampleRate;
Undocumented in source.
sqEnergy
bool sqEnergy;
Undocumented in source.

Meta