From 8f647413b2ef0a15b7cae5088ced0ee3e61080fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Hock?= Date: Fri, 1 Dec 2023 20:10:12 +0100 Subject: [PATCH] Rename --- cpp/StftPitchShift/Vocoder.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpp/StftPitchShift/Vocoder.h b/cpp/StftPitchShift/Vocoder.h index bbf23d9..438bff9 100755 --- a/cpp/StftPitchShift/Vocoder.h +++ b/cpp/StftPitchShift/Vocoder.h @@ -33,14 +33,14 @@ namespace stftpitchshift encode_phase_buffer.resize(dftsize); decode_phase_buffer.resize(dftsize); - decode_phase_shift.resize(dftsize); + decode_phase_offset.resize(dftsize); if (std::get<1>(framesize) != std::get<0>(framesize)) { for (size_t i = 0; i < dftsize; ++i) { // compensate asymmetric synthesis window by virtual time shifting #38 - decode_phase_shift[i] = pi * i * std::get<1>(framesize) / dftsize; + decode_phase_offset[i] = pi * i * std::get<1>(framesize) / dftsize; } } } @@ -91,7 +91,7 @@ namespace stftpitchshift decode_phase_buffer[i] += delta; phase = decode_phase_buffer[i]; - phase -= decode_phase_shift[i]; // #38 + phase -= decode_phase_offset[i]; // #38 dft[i] = std::polar( dft[i].real(), @@ -106,7 +106,7 @@ namespace stftpitchshift std::vector encode_phase_buffer; std::vector decode_phase_buffer; - std::vector decode_phase_shift; + std::vector decode_phase_offset; inline static double angle(const std::complex& z) {