From 44b154f33531e4f590dac084115cb07f6021af10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=9D=CE=B1=CF=81=CE=BF=CF=85=CF=83=CE=AD=C2=B7=CE=BC?= =?UTF-8?q?=C2=B7=CE=B3=CE=B9=CE=BF=CF=85=CE=BC=CE=B5=CE=BC=CE=AF=C2=B7?= =?UTF-8?q?=CE=A7=CE=B9=CE=BD=CE=B1=CE=BA=CE=AC=CE=BD=CE=BD=CE=B1?= <40709280+NaruseMioShirakana@users.noreply.github.com> Date: Thu, 18 May 2023 13:16:14 +0800 Subject: [PATCH] Delete F0Preprocess.hpp --- CppDataProcess/F0Preprocess.hpp | 36 --------------------------------- 1 file changed, 36 deletions(-) delete mode 100644 CppDataProcess/F0Preprocess.hpp diff --git a/CppDataProcess/F0Preprocess.hpp b/CppDataProcess/F0Preprocess.hpp deleted file mode 100644 index 7816bb5..0000000 --- a/CppDataProcess/F0Preprocess.hpp +++ /dev/null @@ -1,36 +0,0 @@ -#include "world/dio.h" -#include "world/stonemask.h" -#include "world/matlabfunctions.h" -#include -#include - -//Cpp F0 Preprocess - -class F0PreProcess -{ -public: - int fs; - short hop; - const int f0_bin = 256; - const double f0_max = 1100.0; - const double f0_min = 50.0; - const double f0_mel_min = 1127.0 * log(1.0 + f0_min / 700.0); - const double f0_mel_max = 1127.0 * log(1.0 + f0_max / 700.0); - F0PreProcess(int sr = 16000, short h = 160) :fs(sr), hop(h) {} - ~F0PreProcess() - { - delete[] rf0; - rf0 = nullptr; - } - void compute_f0(const double* audio, int64_t len); - void InterPf0(int64_t len); - long long* f0Log(); - int64_t getLen()const { return f0Len; } - std::vector GetF0AndOtherInput(const double* audio, int64_t audioLen, int64_t hubLen, int64_t tran); - std::vector GetF0AndOtherInputF0(const double* audio, int64_t audioLen, int64_t tran); -private: - double* rf0 = nullptr; - int64_t f0Len = 0; -}; - -std::vector getAligments(size_t specLen, size_t hubertLen);