You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Every time you call "calculate()", a new DCT is created (line 40). You need to pull the DCT object out of the calculate() scope and put it in the class scope privately.
You have a lot of heavy lifting in DCT, especially with the cosign tables. You even go through all the trouble of caching the cosine tables! So, take advantage of that.
The MFCC calculation will speed up tremendously, especially if you are doing tons of calculations on data that is the same size.
Great job on the library... I have been using it successfully. Ported most of it back to C++98 (had to -- working on a legacy project)
Thanks!
The text was updated successfully, but these errors were encountered:
In the class Mfcc.cpp, you have this function "calculate()",
Every time you call "calculate()", a new DCT is created (line 40). You need to pull the DCT object out of the calculate() scope and put it in the class scope privately.
You have a lot of heavy lifting in DCT, especially with the cosign tables. You even go through all the trouble of caching the cosine tables! So, take advantage of that.
The MFCC calculation will speed up tremendously, especially if you are doing tons of calculations on data that is the same size.
Great job on the library... I have been using it successfully. Ported most of it back to C++98 (had to -- working on a legacy project)
Thanks!
The text was updated successfully, but these errors were encountered: