Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
ITACTC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
ITACTC
Compare Revisions
4eb3c5443411d63abd555398fb320c7ec8afd5ff...c395e918d08cf2235ab924d31f0f43eb23db3b9c
Source
c395e918d08cf2235ab924d31f0f43eb23db3b9c
Select Git revision
...
Target
4eb3c5443411d63abd555398fb320c7ec8afd5ff
Select Git revision
Compare
Commits (3)
Linux compat
· f7f0310f
Dipl.-Ing. Jonas Stienen
authored
Feb 01, 2017
f7f0310f
linux compat
· 0084364d
Dipl.-Ing. Jonas Stienen
authored
Feb 03, 2017
0084364d
Merge branch 'develop' of
https://git.rwth-aachen.de/ita/ITACTC
into develop
· c395e918
Dipl.-Ing. Jonas Stienen
authored
Feb 21, 2017
c395e918
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
7 deletions
+17
-7
CMakeLists.txt
CMakeLists.txt
+4
-0
include/ITANCTC.h
include/ITANCTC.h
+1
-1
src/ITANCTC.cpp
src/ITANCTC.cpp
+4
-4
tests/NCTC_CTCFilterTest
tests/NCTC_CTCFilterTest
+0
-0
tests/NCTC_CTCFilterTest.cpp
tests/NCTC_CTCFilterTest.cpp
+2
-2
tests/set_path_for_NCTC_CTCFilterTest.sh
tests/set_path_for_NCTC_CTCFilterTest.sh
+6
-0
No files found.
CMakeLists.txt
View file @
c395e918
...
...
@@ -67,6 +67,10 @@ else( )
add_definitions
(
-DITA_CTC_STATIC -DITA_CONVOLUTION_STATIC -DITA_FFT_STATIC -DITA_BASE_STATIC -DITA_DATA_SOURCES_STATIC
)
endif
(
)
if
(
NOT WIN32
)
add_definitions
(
-std=gnu++11
)
endif
(
)
# linker
add_library
(
ITACTC
${
ITACTCHeader
}
${
ITACTCSources
}
)
...
...
include/ITANCTC.h
View file @
c395e918
...
...
@@ -28,7 +28,7 @@
#include <ITAAtomicPrimitives.h>
#include <ITAFFT.h>
#include <ITASampleFrame.h>
#include <ITAStop
w
atch.h>
#include <ITAStop
W
atch.h>
#include <ITAHDFTSpectra.h>
#include <VistaBase/VistaVector3D.h>
...
...
src/ITANCTC.cpp
View file @
c395e918
...
...
@@ -264,12 +264,12 @@ bool ITANCTC::CalculateFilter( std::vector< ITAHDFTSpectra* >& vpCTCFilter )
for
(
int
i
=
0
;
i
<
(
*
pHRTF
)[
0
]
->
getSize
();
i
++
)
{
float
fMag
=
(
*
pHRTF
)[
0
]
->
calcMagnitude
(
i
);
(
*
pHRTF
)[
0
]
->
setMagnitudePreservePhase
(
i
,
std
::
pow
f
(
fMag
,
m_fWaveIncidenceAngleCompensationFactor
)
);
(
*
pHRTF
)[
0
]
->
setMagnitudePreservePhase
(
i
,
std
::
pow
(
fMag
,
m_fWaveIncidenceAngleCompensationFactor
)
);
}
// Compensate initial HRTF energy when WICK is used (left channel)
assert
(
fEnergy
>
0
);
float
fEnergyCompensation
=
std
::
pow
f
(
fEnergy
,
(
1
-
m_fWaveIncidenceAngleCompensationFactor
)
);
float
fEnergyCompensation
=
std
::
pow
(
fEnergy
,
(
1
-
m_fWaveIncidenceAngleCompensationFactor
)
);
(
*
pHRTF
)[
0
]
->
mul
(
fEnergyCompensation
);
...
...
@@ -280,12 +280,12 @@ bool ITANCTC::CalculateFilter( std::vector< ITAHDFTSpectra* >& vpCTCFilter )
for
(
int
i
=
0
;
i
<
(
*
pHRTF
)[
1
]
->
getSize
();
i
++
)
{
float
fMag
=
(
*
pHRTF
)[
1
]
->
calcMagnitude
(
i
);
(
*
pHRTF
)[
1
]
->
setMagnitudePreservePhase
(
i
,
std
::
pow
f
(
fMag
,
m_fWaveIncidenceAngleCompensationFactor
)
);
(
*
pHRTF
)[
1
]
->
setMagnitudePreservePhase
(
i
,
std
::
pow
(
fMag
,
m_fWaveIncidenceAngleCompensationFactor
)
);
}
// Compensate initial HRTF energy when WICK is used (right channel)
assert
(
fEnergy
>
0
);
fEnergyCompensation
=
std
::
pow
f
(
fEnergy
,
(
1
-
m_fWaveIncidenceAngleCompensationFactor
)
);
fEnergyCompensation
=
std
::
pow
(
fEnergy
,
(
1
-
m_fWaveIncidenceAngleCompensationFactor
)
);
(
*
pHRTF
)[
1
]
->
mul
(
fEnergyCompensation
);
...
...
tests/NCTC_CTCFilterTest
0 → 100755
View file @
c395e918
File added
tests/NCTC_CTCFilterTest.cpp
View file @
c395e918
#include <ITANCTC.h>
#include <ITAFile
s
ystemUtils.h>
#include <ITAStop
w
atch.h>
#include <ITAFile
S
ystemUtils.h>
#include <ITAStop
W
atch.h>
#include <ITAStringUtils.h>
#include <ITAFFTUtils.h>
...
...
tests/set_path_for_NCTC_CTCFilterTest.sh
0 → 100644
View file @
c395e918
#!/bin/bash
# Auto-generated file that sets the environment variables for the project
export
LD_LIBRARY_PATH
=
/home/jst/dev/ViSTA/build/lib:/home/jst/dev/ViSTA/build/lib/DriverPlugins:/home/jst/dev/ITACoreLibs/build/lib:/usr/bin:/home/jst/dev/ExternalLibs/tbb/src/tbb44_20160526oss/build/linux_armv7_gcc_cc4.9.2_libc2.19_kernel4.4.34_release/lib:/home/jst/dev/ExternalLibs/OpenDAFF/opendaff-1.7/LINUX.X86/lib:/home/jst/dev/ExternalLibs/OpenDAFF/opendaff-1.7/LINUX.X86/bin:
$LD_LIBRARY_PATH
export
VISTACORELIBS_DRIVER_PLUGIN_DIRS
=
/home/jst/dev/ViSTA/build/lib/DriverPlugins