diff --git a/cpp/StftPitchShift/STFT.h b/cpp/StftPitchShift/STFT.h index 648da13..704e8ca 100755 --- a/cpp/StftPitchShift/STFT.h +++ b/cpp/StftPitchShift/STFT.h @@ -13,6 +13,8 @@ #include #include +#include + #include namespace stftpitchshift @@ -23,11 +25,21 @@ namespace stftpitchshift public: + STFT(const size_t framesize, const size_t hopsize, const bool chronometry = false) : + STFT(std::make_shared(), std::make_tuple(framesize, framesize), hopsize, chronometry) + { + } + STFT(const std::shared_ptr fft, const size_t framesize, const size_t hopsize, const bool chronometry = false) : STFT(fft, std::make_tuple(framesize, framesize), hopsize, chronometry) { } + STFT(const std::tuple framesize, const size_t hopsize, const bool chronometry = false) : + STFT(std::make_shared(), framesize, hopsize, chronometry) + { + } + STFT(const std::shared_ptr fft, const std::tuple framesize, const size_t hopsize, const bool chronometry = false) : fft(fft), framesize(framesize),