cleanups
This commit is contained in:
parent
d98d3a2ae7
commit
cbe2a3f0d5
4 changed files with 2 additions and 100 deletions
|
|
@ -14,8 +14,8 @@ if (UNIX)
|
|||
add_compile_options(-Wall)
|
||||
add_compile_options(-Wextra)
|
||||
# add_compile_options(-fno-exceptions)
|
||||
add_compile_options(-ffast-math)
|
||||
# add_compile_options(-fno-rtti)
|
||||
add_compile_options(-ffast-math)
|
||||
add_compile_options(-fno-omit-frame-pointer)
|
||||
endif()
|
||||
|
||||
|
|
@ -126,7 +126,7 @@ target_link_libraries(sfzprint absl::strings absl::flags_parse)
|
|||
add_executable(sfizz sources/Main.cpp ${COMMON_SOURCES})
|
||||
# Per OS properties
|
||||
if(UNIX)
|
||||
target_compile_options(sfizz PRIVATE -fno-rtti)
|
||||
target_compile_options(sfizz PRIVATE -fno-rtti -fno-exceptions)
|
||||
target_link_libraries(sfizz stdc++fs)
|
||||
endif(UNIX)
|
||||
target_link_libraries(sfizz absl::strings sndfile absl::flat_hash_map readerwriterqueue absl::flags_parse)
|
||||
|
|
|
|||
|
|
@ -1,35 +0,0 @@
|
|||
#include "StateVariableFilter.h"
|
||||
#include <tuple>
|
||||
|
||||
// template<>
|
||||
// template<>
|
||||
// auto StateVariableFilter<SVFReturn::BP>::process<float>(const float& input [[maybe_unused]])
|
||||
// {
|
||||
// return 0.0;
|
||||
// }
|
||||
|
||||
// template<>
|
||||
// template<>
|
||||
// auto StateVariableFilter<SVFReturn::BP_LP>::process<float>(const float& input [[maybe_unused]])
|
||||
// {
|
||||
// return std::make_pair<float, float>(0.0, 0.0);
|
||||
// }
|
||||
|
||||
// template<>
|
||||
// template<>
|
||||
// auto StateVariableFilter<SVFReturn::BP_LP_HP>::process<float>(const float& input [[maybe_unused]])
|
||||
// {
|
||||
// return std::make_tuple<float, float, float>(0.0, 0.0, 0.0);
|
||||
// }
|
||||
|
||||
template<>
|
||||
auto StateVariableFilter::process(const float& input [[maybe_unused]], float& bandpass [[maybe_unused]])
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
auto StateVariableFilter::process(const float& input [[maybe_unused]], float& bandpass [[maybe_unused]], float& lowpass [[maybe_unused]])
|
||||
{
|
||||
|
||||
}
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
#pragma once
|
||||
#include "Globals.h"
|
||||
#include <tuple>
|
||||
#include <array>
|
||||
|
||||
// enum class SVFReturn { BP_LP_HP, BP_LP, BP};
|
||||
|
||||
// template<SVFReturn ReturnType = SVFReturn::BP>
|
||||
class StateVariableFilter
|
||||
{
|
||||
public:
|
||||
StateVariableFilter() = default;
|
||||
StateVariableFilter(float R, float gain)
|
||||
: R(R), gain(gain)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Only use specializations
|
||||
template<class InputType, class... OutputTypes>
|
||||
auto process(const InputType& input, OutputTypes... outputs) = delete;
|
||||
|
||||
private:
|
||||
std::array<float, 2> state;
|
||||
float R { 0.0 };
|
||||
float gain { 1.0 };
|
||||
};
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
#include "StateVariableFilter.h"
|
||||
#include <tuple>
|
||||
#include "Intrinsics.h"
|
||||
|
||||
// template<>
|
||||
// template<>
|
||||
// auto StateVariableFilter<SVFReturn::BP>::process<__m128>(const __m128& input [[maybe_unused]])
|
||||
// {
|
||||
// return 0.0;
|
||||
// }
|
||||
|
||||
// template<>
|
||||
// template<>
|
||||
// auto StateVariableFilter<SVFReturn::BP_LP>::process<__m128>(const __m128& input [[maybe_unused]])
|
||||
// {
|
||||
// return std::make_pair<float, float>(0.0, 0.0);
|
||||
// }
|
||||
|
||||
// template<>
|
||||
// template<>
|
||||
// auto StateVariableFilter<SVFReturn::BP_LP_HP>::process<__m128>(const __m128& input [[maybe_unused]])
|
||||
// {
|
||||
// return std::make_tuple<float, float, float>(0.0, 0.0, 0.0);
|
||||
// }
|
||||
|
||||
template<>
|
||||
auto StateVariableFilter::process(const __m128& input [[maybe_unused]], __m128& bandpass [[maybe_unused]])
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
template<>
|
||||
auto StateVariableFilter::process(const __m128& input [[maybe_unused]], __m128& bandpass [[maybe_unused]], __m128& lowpass [[maybe_unused]])
|
||||
{
|
||||
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue