Skip to content

Commit

Permalink
Fix modification dates of files updated in 2d4446b
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHeho committed Nov 17, 2021
1 parent f2c0a3f commit 1ac1777
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 182 deletions.
9 changes: 4 additions & 5 deletions Src/Examples/Demo_BinauralSDM_QuantizedDOA_andRTModAP.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
% the BinauralSDM repository. The BRIRs generated by this script include
% the steps described in Amengual et al. 2020 - DOA Postprocessing
% (smoothing and quantization) and RTMod+AP equalization.

%
% The overall process is as follows:
% - Spatial data from a multichannel RIR is obtained using the SDM
% utilizing the functions from the SDM Toolbox (Tervo & Patynen).
Expand All @@ -27,18 +27,17 @@
% using the previous steps by rotating the DOA vectors.
% - The data is saved in a user defined folder.
%
%
% References:
% - (Tervo et al. 2013) - "Spatial Decomposition Method for Room Impulse
% Responses", JAES, 2013.
% - (SDM Toolbox) - "SDM Toolbox", S. Tervo and J. Patynen, Mathworks
% Exchange
% - (Amengual et al. 2020) - "Optimizations of the Spatial Decomposition
% Method for Binaural Reproduction", JAES 2020.

%
% Author: Sebastia Amengual ([email protected])
% Last modified: 01/06/2021

% Last modified: 11/17/2021
%
% IMPORTANT NOTE: To ensure that relative paths work, navigate to the
% folder containing this script before executing.

Expand Down
2 changes: 1 addition & 1 deletion Src/ModifyReverbSlope.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
% - EqBRIR: BRIR with the modified reverb slope.
%
% Author: Sebastia V. Amengual
% Last modified: 04/15/2019
% Last modified: 11/17/2021

% Need to regenerate the filterbank in case the corrected BRIR is longer
% than the mixing time (special case for the late reverb tail).
Expand Down
4 changes: 2 additions & 2 deletions Src/SaveBRIR.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function SaveBRIR(SRIR_data, BRIR_data, DS_BRIR, early_BRIR, ER_BRIR, late_BRIR,
% - late_BRIR: Angle independent late reverb tail.
%
% Author: Sebastià V. Amengual
% Last modified: 4/22/19
% Last modified: 11/17/2021

if isfield(BRIR_data,'customPath')
Save_Path = [BRIR_data.DestinationPath regexprep(BRIR_data.HRTF_Subject,' ','_'), '\' BRIR_data.customPath];
Expand All @@ -34,4 +34,4 @@ function SaveBRIR(SRIR_data, BRIR_data, DS_BRIR, early_BRIR, ER_BRIR, late_BRIR,
audiowrite([Save_Path filesep BRIR_data.RenderingCondition filesep 'az' num2str(ang(1)) 'el' num2str(ang(2)) '.wav'],early_BRIR./attenuation,BRIR_data.fs,'BitsPerSample',32);
audiowrite([Save_Path filesep BRIR_data.RenderingCondition filesep 'az' num2str(ang(1)) 'el' num2str(ang(2)) '_DS.wav'],DS_BRIR./attenuation,BRIR_data.fs,'BitsPerSample',32);
audiowrite([Save_Path filesep BRIR_data.RenderingCondition filesep 'az' num2str(ang(1)) 'el' num2str(ang(2)) '_ER.wav'],ER_BRIR./attenuation,BRIR_data.fs,'BitsPerSample',32);
audiowrite([Save_Path filesep BRIR_data.RenderingCondition filesep 'late_reverb.wav'],late_BRIR./attenuation,BRIR_data.fs,'BitsPerSample',32);
audiowrite([Save_Path filesep BRIR_data.RenderingCondition filesep 'late_reverb.wav'],late_BRIR./attenuation,BRIR_data.fs,'BitsPerSample',32);
4 changes: 2 additions & 2 deletions Src/SaveRenderingStructs.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function SaveRenderingStructs(SRIR_data, BRIR_data)
% - BRIR_data: Struct containing BRIR information (see create_BRIR_data)
%
% Author: Sebastià V. Amengual
% Last modified: 7/11/19
% Last modified: 11/17/2021

if isfield(BRIR_data,'customPath')
Save_Path = [BRIR_data.DestinationPath regexprep(BRIR_data.HRTF_Subject,' ','_'), '\' BRIR_data.customPath];
Expand All @@ -22,4 +22,4 @@ function SaveRenderingStructs(SRIR_data, BRIR_data)
end

save([Save_Path filesep BRIR_data.RenderingCondition filesep 'SRIR_data.mat'],'SRIR_data');
save([Save_Path filesep BRIR_data.RenderingCondition filesep 'BRIR_data.mat'],'BRIR_data');
save([Save_Path filesep BRIR_data.RenderingCondition filesep 'BRIR_data.mat'],'BRIR_data');
7 changes: 3 additions & 4 deletions Src/create_BRIR_data.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,10 @@
% quantized. - default: 0.
% - DOADirections: Number of directions to quantize DOA information.
% This is only relevant if QuantizeDOAFlag == 1 - default: 50.
%

%
% Author: Sebastia V. Amengual ([email protected])
% Last modified: 04/30/2019

% Last modified: 11/17/2021
%
% To-Do:
% - Spectral equalization options: If a reference measured BRIR is
% available it could be used to implement spectral equalization.
Expand Down
2 changes: 0 additions & 2 deletions Src/create_FIR_eq.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@
Hd = design(d,'freqsamp','SystemObject',true);
fir_filter = Hd.Numerator';
[~, fir_filter] = rceps(fir_filter);


4 changes: 1 addition & 3 deletions Src/create_MicGeometry.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
% 'FRL_5cm', 'FRL_10cm'.
%
% Author: Sebastià V. Amengual
% Last Modified: 4/29/19
% Last Modified: 11/17/2021

switch micArray
case 'Tetramic'
Expand Down Expand Up @@ -72,5 +72,3 @@
otherwise
error('You are trying to create the geometry of a non-existent array :(')
end


2 changes: 1 addition & 1 deletion Src/create_SRIR_data.m
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
% '../../Data/RIRs/'
%
% Author: Sebastià V. Amengual ([email protected])
% Last Modified: 1/6/20
% Last Modified: 11/17/2021
%
%
% TO-DO
Expand Down
2 changes: 1 addition & 1 deletion Src/getLundebyFOB.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@
title(num2str(iOb))
end

end
end
151 changes: 0 additions & 151 deletions Src/getLundebyRT30.asv

This file was deleted.

5 changes: 1 addition & 4 deletions Src/getLundebyRT30.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
% and the acmus matlab package. Reimplemented by Joshua Marcley (2019)
% using algorithm described in https://pdfs.semanticscholar.org/5841/897c265b08addf22dbfaa6da969875e376e4.pdf




if nargin < 3
blockSize = round(0.02*Fs);
Tn = 30;
Expand Down Expand Up @@ -151,4 +148,4 @@
intercept = (mx2*my-mx*mxy)/(mx2-mx^2);
slope = (mxy - (mx*my))/(mx2-mx^2);

end
end
2 changes: 1 addition & 1 deletion Src/read_RIR.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
% 192 kHz), and FRL room acoustics array.
%
% Author: Sebastià V. Amengual
% Last modified: 12/19/18
% Last modified: 11/17/2021

switch SRIR_data.MicArray
case 'Eigenmike'
Expand Down
7 changes: 2 additions & 5 deletions Src/split_BRIR.m
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
% Copyright (c) Facebook, Inc. and its affiliates.

function [early_BRIR, late_BRIR, DS_BRIR, ER] = split_BRIR(BRIR_TimeData, BRIR_full, mixtime, fs, wlength)

% This function splits a BRIR into its various parts for separate
% auralization of direct sound, early reflections and late reverberation.
% The separation between different BRIR sections is done using a Hann
% window to avoid artifacts.

%
% Inputs:
% - BRIR: Binaural room impulse response to be split
% - P_IR: Ref. pressure impulse response (only to detect direct sound)
Expand All @@ -20,12 +19,11 @@
% - ER: from sample 257 to mixing time (only early reflections)
%
% Author: Sebastia V. Amengual
% Last modified: 01/04/2018
% Last modified: 11/17/2021
%
% To-Do: - More informed method to separate DS and ER, rather than just
% windowing after 256 samples


% Create a Hann window for the crossfade between ER and Late Reverb.
hann_window = hann(wlength);

Expand Down Expand Up @@ -63,4 +61,3 @@

% Retrieve early reflections (without direct sound)
ER = BRIR_TimeData(1:length(window_ER_noDS),:,:).*window_ER_noDS;

0 comments on commit 1ac1777

Please sign in to comment.