Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion products/dialogue/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ altvane_add_plugin(AltvaneDialogue
AU_MAIN_TYPE kAudioUnitType_Effect
VST3_CATEGORIES Fx Restoration
AAX_CATEGORY AAX_ePlugInCategory_NoiseReduction
LV2_TAGS util
LV2_TAGS utility
LINK_LIBRARIES altvane_dialogue_models pffft ${dialogue_blas}
)

Expand Down
9 changes: 5 additions & 4 deletions products/leveler/source/dsp/voicing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#pragma once

#include <array>
#include <cstddef>
#include <vector>

#include "filters.hpp"
Expand Down Expand Up @@ -43,17 +44,17 @@ namespace altvane::leveler::dsp {
Result analyse();

private:
static constexpr size_t kRingSize = 1024;
static constexpr size_t kEnergyHops = 4;
static constexpr std::size_t kRingSize = 1024;
static constexpr std::size_t kEnergyHops = 4;

Biquad anti_alias_a_, anti_alias_b_, high_;
bool has_high_band_{true};
int decimation_{6}, phase_{0};
size_t write_{0}, window_{240}, min_lag_{10}, max_lag_{133};
std::size_t write_{0}, window_{240}, min_lag_{10}, max_lag_{133};
std::array<float, kRingSize> ring_{};
std::vector<float> frame_, diff_;
std::array<double, kEnergyHops> high_energy_{}, total_energy_{};
size_t energy_slot_{0};
std::size_t energy_slot_{0};
double hop_high_{0.0}, hop_total_{0.0};
};
}
Loading