No BSD License
-
stf_sim_v2(varargin)
STF_SIM_V2 M-file for stf_sim_v2.fig
-
[coor, ref_mat]=parse_mirimag...
[out] = mirimage(ROOMFILENAME,sourceloc,micloc,scan_dist);
-
direct_resp(pos, az_talker, e...
this function takes a position in the HMA room, azimuth and elevation orientation, the attenuation function and
-
freq_dep_3d_headattenuation(a...
%function three_d_headattenuation
-
head_delay(hrad,src,mic,aim,s...
%function head_delay(hrad,src,mic,aim,sos)
-
infofromfile(room)
check the identifier
-
stf(az, el, attn, can_freqs, ...
-
mics.m
-
miginfofromfile.m
-
place_room_stuff.m
-
plot_room_in_figure.m
-
stf_r_s.m
-
View all files
from
Brown Acoustic Simulator
by Avram Levi
Creates a source to microphone impulse response in complex room enviroments
|
| stf(az, el, attn, can_freqs, fs)
|
function attn = stf(az, el, attn, can_freqs, fs)
if az<-180
az = az+360;
end
if az<0
az = -az;
end
if az>180
az = 360-az;
end
if el>90
el = 90-(el-90);
elseif el<-90
el = (-90-el)-90;
end
freq_index = [1:512]*fs/1024;
dummy = attn(round(az)+1, round(el)+91, :);
for i=1:18
can_attn(i) = dummy(1, 1, i);
end
attn = interp1(can_freqs,can_attn,freq_index,'v5cubic');
% ind_NaN = find(isnan(attn));
ind = find(isnan(attn)-1);
attn(1:ind(1)-1) = attn(ind(1));
attn(ind(length(ind))+1:length(attn)) = attn(ind(length(ind)));
attn(length(attn)+1:2*length(attn)) = fliplr(attn);
attn = 10.^(attn/20);
|
|
Contact us at files@mathworks.com