Skip to content

Commit

Permalink
implementing the convolver class
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmm committed Jan 24, 2025
1 parent 93e77a0 commit 8a83158
Show file tree
Hide file tree
Showing 11 changed files with 974 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ pkg_check_modules(LIBSPEEXDSP speexdsp)
pkg_check_modules(LIBNLOHMANNJSON nlohmann_json)
pkg_check_modules(LIBGSL gsl)
pkg_check_modules(LIBBS2B libbs2b)
pkg_check_modules(LIBSAMPLERATE samplerate)
pkg_check_modules(LIBSNDFILE sndfile)

file(GLOB KCFG_FILES ${PROJECT_SOURCE_DIR}/src/contents/kcfg/*.kcfg)
file(GLOB KCFGC_FILES ${PROJECT_SOURCE_DIR}/src/contents/kcfg/*.kcfgc)
Expand Down
3 changes: 2 additions & 1 deletion PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ depends=(
'qt6-graphs'
'pipewire-pulse'
'lilv'
'libsamplerate'
'libsamplerate'
'libsndfile'
'zita-convolver'
'libebur128'
'rnnoise'
Expand Down
6 changes: 6 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ target_sources(easyeffects PRIVATE
command_line_parser.cpp
compressor.cpp
compressor_preset.cpp
convolver.cpp
crossfeed.cpp
crossfeed_preset.cpp
crystalizer.cpp
Expand Down Expand Up @@ -59,6 +60,7 @@ target_sources(easyeffects PRIVATE
pw_model_clients.cpp
pw_model_modules.cpp
pw_model_nodes.cpp
resampler.cpp
spectrum.cpp
speex.cpp
speex_preset.cpp
Expand All @@ -83,6 +85,8 @@ target_include_directories(easyeffects PRIVATE
${LIBZITACONVOLVER_INCLUDE_DIRS}
${LIBGSL_INCLUDE_DIRS}
${LIBBS2B_INCLUDE_DIRS}
${LIBSAMPLERATE_INCLUDE_DIRS}
${LIBSNDFILE_INCLUDE_DIRS}
)

target_link_libraries(easyeffects PRIVATE
Expand All @@ -108,6 +112,8 @@ target_link_libraries(easyeffects PRIVATE
${LIBNLOHMANNJSON_LIBRARIES}
${LIBGSL_LIBRARIES}
${LIBBS2B_LIBRARIES}
${LIBSAMPLERATE_LIBRARIES}
${LIBSNDFILE_LIBRARIES}
${LIBZITACONVOLVER}
)

Expand Down
38 changes: 38 additions & 0 deletions src/contents/kcfg/easyeffects_db_convolver.kcfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0 http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
<kcfgfile name="easyeffectsrc/db/convolverrc">
<parameter name="masterGroup" />
<parameter name="instanceIndex" />
</kcfgfile>
<group parentGroupName="$(masterGroup)" name="Convolver#$(instanceIndex)">
<entry name="bypass" type="Bool">
<label></label>
<default>false</default>
</entry>
<entry name="inputGain" type="Double">
<label></label>
<min>-36</min>
<max>36</max>
<default>0</default>
</entry>
<entry name="outputGain" type="Double">
<label></label>
<min>-36</min>
<max>36</max>
<default>0</default>
</entry>
<entry name="kernelName" type="String">
<default>""</default>
</entry>
<entry name="irWidth" type="Int">
<min>0</min>
<max>200</max>
<default>100</default>
</entry>
<entry name="autogain" type="Bool">
<default>true</default>
</entry>
</group>
</kcfg>
10 changes: 10 additions & 0 deletions src/contents/kcfg/easyeffects_db_convolver.kcfgc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
File=easyeffects_db_convolver.kcfg
NameSpace=db
ClassName=Convolver
Inherits=KConfigBaseEE
IncludeFiles=kconfig_base_ee.hpp
Mutators=true
Notifiers=true
DefaultValueGetters=true
Singleton=false
GenerateProperties=true
Loading

0 comments on commit 8a83158

Please sign in to comment.