source_position=[7.00001.7000-4.0000];%NOTE, make sure these are inside the room!
receiver_position=[31.7-4];%NOTE: in openGL coordinated (used by RAVEN) the "up/down" direction is the second element, and the third element is different from matlab coordinates by a factor of -1
% NOTE: A simulation with azimuthResolution=3 and elevationResolution=45
% takes about 20 minutes on a regular computer
azimuthResolution=3;%in degrees. NOTE, small values here may result in large simulation times
elevationResolution=45;
simulate_room=true;%do simulation, or just load results from current workspace?
automatic_rotate_sim=true;%set to true to automatically rotate the room, or false to manually rotate with a slider
%% Create the Daff files to be used in auralisation
%loads data from a raven project. Incudes lots of methods to calculate things/ extract data etc
% Create a virtual sound source and set a position
S=va.create_sound_source('itaVA_Source');
va.set_sound_source_position(S,[00-1])% Note: This position is only important for the head rotation. Actual sound source position is encoded in the BRIRs
% Create a listener with a HRTF and position him
L=va.create_sound_receiver('itaVA_Listener');
va.set_sound_receiver_position(L,[000])
H=va.create_directivity(DAFF17FileName);
va.set_sound_receiver_directivity(L,H);
% Connect the signal source to the virtual sound source