Update inferPreprocess.hpp

This commit is contained in:
Ναρουσέ·μ·γιουμεμί·Χινακάννα 2023-04-07 23:45:33 +08:00 committed by GitHub
parent a3b6027780
commit 8077622a7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -44,6 +44,15 @@ void F0PreProcess::compute_f0(const double* audio, int64_t len)
}
std::vector<double> arange(double start,double end,double step = 1.0,double div = 1.0)
{
std::vector<double> output;
while(start<end)
{
output.push_back(start / div);
start += step;
}
return output;
}
void F0PreProcess::InterPf0(int64_t len)
{