Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue #23 - zeroing the output vector in the mTracker loop #82

Merged
merged 2 commits into from
Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/clients/rt/ChromaClient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ class ChromaClient : public FluidBaseClient, public AudioIn, public ControlOut
{
mMagnitude.resize(get<kFFT>().frameSize());
mChroma.resize(get<kNChroma>());
output[0].fill(0);//zero the output
mAlgorithm.init(get<kNChroma>(), get<kFFT>().frameSize(), get<kRef>(),
sampleRate());
}
Expand Down
1 change: 1 addition & 0 deletions include/clients/rt/MFCCClient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ class MFCCClient : public FluidBaseClient, public AudioIn, public ControlOut
mMagnitude.resize(get<kFFT>().frameSize());
mBands.resize(get<kNBands>());
mCoefficients.resize(get<kNCoefs>() + !has0);
output[0].fill(0);//zero the output
mMelBands.init(get<kMinFreq>(), get<kMaxFreq>(), get<kNBands>(),
get<kFFT>().frameSize(), sampleRate(),
get<kFFT>().winSize());
Expand Down
1 change: 1 addition & 0 deletions include/clients/rt/MelBandsClient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ class MelBandsClient : public FluidBaseClient, public AudioIn, public ControlOut
{
mMagnitude.resize(get<kFFT>().frameSize());
mBands.resize(get<kNBands>());
output[0].fill(0);//zero the output
mMelBands.init(get<kMinFreq>(), get<kMaxFreq>(), get<kNBands>(),
get<kFFT>().frameSize(), sampleRate(),
get<kFFT>().winSize());
Expand Down