Commit 1219caa4 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

add a HRTF set with dirac deltas for loudness measurement

parent 5f621f43
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@
 *------------------------------------------------------------------------*/
/* TD renderer default HRIR model */
#ifdef DEBUGGING
/* Generated on 31-Jul-2024 with Matlab version 9.9.0.2037887 (R2020b) Update 8 by tmu on MACI64 */
/* Generated on 19-Jan-2026 with Matlab version 9.9.0.1495850 (R2020b) Update 1 by tmu on PCWIN64 */
#endif
const float defaultHRIR_rom_latency_s = 0.000020834f;
+2 −2
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@
#define WMC_TOOL_SKIP
#ifdef DEBUGGING
/* Generated on 02-Aug-2024 with Matlab version 9.9.0.2037887 (R2020b) Update 8 by tmu on MACI64 */
/* Generated on 19-Jan-2026 with Matlab version 9.9.0.1495850 (R2020b) Update 1 by tmu on PCWIN64 */
#endif
@@ -46948,7 +46948,7 @@ const float fastconvReverberationEneCorrections[CLDFB_NO_CHANNELS_MAX] =
#ifdef DEBUGGING
/* Generated on 02-Aug-2024 with Matlab version 9.9.0.2037887 (R2020b) Update 8 by tmu on MACI64 */
/* Generated on 19-Jan-2026 with Matlab version 9.9.0.1495850 (R2020b) Update 1 by tmu on PCWIN64 */
#endif
+6557 −6557

File changed.

Preview size limit exceeded, changes collapsed.

+4 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ cmake_minimum_required(VERSION 3.10)
project(generate_crend_ivas_tables)

# set(CMAKE_OSX_ARCHITECTURES "x86_64")
set(CMAKE_GENERATOR_PLATFORM x64)
set(CMAKE_BUILD_TYPE "Debug")
set(IVAS_TRUNK_PATH "${PROJECT_SOURCE_DIR}/../..")
set(IVAS_TRUNK_UTIL_PATH ${IVAS_TRUNK_PATH}/lib_util)
@@ -14,6 +15,9 @@ set(IVAS_TRUNK_COM_PATH ${IVAS_TRUNK_PATH}/lib_com)
set(IVAS_TRUNK_ISAR_PATH ${IVAS_TRUNK_PATH}/lib_isar)
set(IVAS_TRUNK_LC3_PATH ${IVAS_TRUNK_PATH}/lib_lc3plus)
set(IVAS_TRUNK_DEBUG_PATH ${IVAS_TRUNK_PATH}/lib_debug)
set(Matlab_ROOT_DIR "C:/Program Files/MATLAB/R2020b")
set(Matlab_MEX_LIBRARY "C:/Program Files/MATLAB/R2020b/extern/lib/win64/microsoft/libmex.lib")
set(Matlab_MX_LIBRARY "C:/Program Files/MATLAB/R2020b/extern/lib/win64/microsoft/libmx.lib")

option(USE_MATLAB_ENG "Use matlab engine" OFF) # allows to use sofa file as input to the exe, but on windows requires to register matlab as a com server type in matlab "comserver('register')""
find_package(Matlab REQUIRED)
+2 −0
Original line number Diff line number Diff line
@@ -192,6 +192,7 @@ for chIdx = 1:size(IR_in,3)
end

prop_time = min(min_idx) - 15;
prop_time = max(prop_time, 1); % avoid negative values
in_struct.propogationTime = prop_time;
in_struct.latency_s = (min(min_idx) - 1 - prop_time)/in_struct.fs + 31/in_struct.fs;

@@ -322,6 +323,7 @@ for chIdx = 1:input_struct.num_channels
        for bandIdx = 1:input_struct.num_bands
            % the computation of reverb parameters starts with some overlap
            s_idx = input_struct.NFft(bandIdx)-5;
            s_idx = max(s_idx, 1);
            
            % Determine the truncation point based on noise floor estimates
            end_idx = get_truncation_point(IR_CLDFB(bandIdx,s_idx:max_index,outChIdx,chIdx));
Loading