SMB Pitch Shifter.
More...
|
void | PitchShift (float pitchShift, long numSampsToProcess, float sampleRate, float[] indata) |
| Performs pitch shifting on the input audio data.
|
|
void | PitchShift (float pitchShift, long numSampsToProcess, long fftFrameSize, long osamp, float sampleRate, float[] indata) |
| Pitch Shift.
|
|
void | ShortTimeFourierTransform (float[] fftBuffer, long fftFrameSize, long sign) |
| Performs the Short Time Fourier Transform on the input FFT buffer.
|
|
◆ PitchShift() [1/2]
void NAudio.Dsp.SmbPitchShifter.PitchShift |
( |
float | pitchShift, |
|
|
long | numSampsToProcess, |
|
|
float | sampleRate, |
|
|
float[] | indata ) |
|
inline |
Performs pitch shifting on the input audio data.
- Parameters
-
pitchShift | The amount of pitch shift to be applied. |
numSampsToProcess | The number of samples to process. |
fftFrameSize | The size of the FFT frame. |
osamp | The oversampling factor. |
sampleRate | The sample rate of the input audio data. |
indata | The input audio data to be processed. |
This method performs pitch shifting on the input audio data using the Phase Vocoder algorithm. It processes the input audio data in frames of size fftFrameSize using the Short-Time Fourier Transform (STFT) technique. The pitch shift amount is specified by pitchShift and the oversampling factor is specified by osamp . The processed output is stored in the indata array.
◆ PitchShift() [2/2]
void NAudio.Dsp.SmbPitchShifter.PitchShift |
( |
float | pitchShift, |
|
|
long | numSampsToProcess, |
|
|
long | fftFrameSize, |
|
|
long | osamp, |
|
|
float | sampleRate, |
|
|
float[] | indata ) |
|
inline |
◆ ShortTimeFourierTransform()
void NAudio.Dsp.SmbPitchShifter.ShortTimeFourierTransform |
( |
float[] | fftBuffer, |
|
|
long | fftFrameSize, |
|
|
long | sign ) |
|
inline |
Performs the Short Time Fourier Transform on the input FFT buffer.
- Parameters
-
fftBuffer | The input buffer containing the data to be transformed. |
fftFrameSize | The size of the FFT frame. |
sign | The sign of the transform, usually 1 for forward transform and -1 for inverse transform. |
This method performs the Short Time Fourier Transform (STFT) on the input FFT buffer. It rearranges the elements of the buffer and applies the STFT algorithm to transform the data. The method modifies the original FFT buffer in place.
◆ gAnaFreq
◆ gAnaMagn
◆ gFFTworksp
◆ gInFIFO
◆ gLastPhase
float [] NAudio.Dsp.SmbPitchShifter.gLastPhase = new float[MAX_FRAME_LENGTH/2 + 1] |
|
private |
◆ gOutFIFO
◆ gOutputAccum
float [] NAudio.Dsp.SmbPitchShifter.gOutputAccum = new float[2*MAX_FRAME_LENGTH] |
|
private |
◆ gRover
long NAudio.Dsp.SmbPitchShifter.gRover |
|
private |
◆ gSumPhase
float [] NAudio.Dsp.SmbPitchShifter.gSumPhase = new float[MAX_FRAME_LENGTH/2 + 1] |
|
private |
◆ gSynFreq
◆ gSynMagn
◆ MAX_FRAME_LENGTH
int NAudio.Dsp.SmbPitchShifter.MAX_FRAME_LENGTH = 16000 |
|
staticprivate |
The documentation for this class was generated from the following file:
- /Users/sumansaurabh/Documents/my-startup/xeno-rat/Plugins/LiveMicrophone/lib/NAudio.Core/Dsp/SmbPitchShifter.cs