Home > SUpDEq-v5.0.0 > materials > get_HRIRs_sfd_Nx.m

get_HRIRs_sfd_Nx

PURPOSE ^

% SUpDEq - Spatial Upsampling by Directional Equalization

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

% SUpDEq - Spatial Upsampling by Directional Equalization

 script get_HRIRs_sfd_Nx

 Just a small script to show how to get the reference dataset
 'HRIRs_sfd_Nx' with x being the order N

 (C) 2018 by JMA, Johannes M. Arend
             TH Köln - University of Applied Sciences
             Institute of Communications Engineering
             Department of Acoustics and Audio Signal Processing

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 %% SUpDEq - Spatial Upsampling by Directional Equalization
0002 %
0003 % script get_HRIRs_sfd_Nx
0004 %
0005 % Just a small script to show how to get the reference dataset
0006 % 'HRIRs_sfd_Nx' with x being the order N
0007 %
0008 % (C) 2018 by JMA, Johannes M. Arend
0009 %             TH Köln - University of Applied Sciences
0010 %             Institute of Communications Engineering
0011 %             Department of Acoustics and Audio Signal Processing
0012 
0013 %%
0014 % Load HRIR_L2702 SOFA dataset
0015 hrirs = SOFAload('HRIR_L2702_NF075.sofa');
0016 
0017 % Load respective spatial sampling grid. We use a grid with sampling
0018 % weights in this case in order to use SOFiA toolbox for the transform. The
0019 % sampling grid (and the corresponding weights) is derived from the
0020 % original miro file "HRIR_L2702.m" and transformed to degree.
0021 samplingGrid = importdata('samplingGrid_HRIR_NF_L2702.mat');
0022 
0023 %Define order N and FFToversize
0024 N = 44;
0025 FFToversize = 4;
0026 
0027 % Transform with order N = 35 and FFToversize = 4
0028 HRIRs_NF075_sfd_N44 = supdeq_sofa2sfd(hrirs,N,samplingGrid,FFToversize);
0029 
0030 % Save as mat file
0031 save HRIRs_NF075_sfd_N44 HRIRs_NF075_sfd_N44;

Generated on Wed 30-Nov-2022 14:15:00 by m2html © 2005