|
MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
|
| std::vector< double > MayaFlux::Kinesis::Discrete::pitch_shift | ( | std::span< const double > | src, |
| double | semitones, | ||
| uint32_t | window_size = 2048, |
||
| uint32_t | analysis_hop = 512 |
||
| ) |
Pitch-shift by resampling around a phase vocoder stretch.
Stretches by 1/pitch_ratio, then resamples back to the original length using linear interpolation. This preserves duration while shifting pitch, which is the standard phase vocoder pitch-shift approach.
| src | Input samples |
| semitones | Pitch shift in semitones (positive = up, negative = down) |
| window_size | FFT frame size |
| analysis_hop | Analysis hop |
Definition at line 282 of file Spectral.cpp.
References phase_vocoder_stretch().
Here is the call graph for this function: