Mercurial > hg > human-echolocation
changeset 5:2749699e06fa
one geometry -> one wav file implementation
author | Timos Papadopoulos <tp@isvr.soton.ac.uk> |
---|---|
date | Sat, 23 Nov 2013 12:54:23 +0000 |
parents | 4c1027c1a553 |
children | f3d8070c1781 |
files | README |
diffstat | 1 files changed, 20 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/README Wed Nov 20 15:00:03 2013 +0000 +++ b/README Sat Nov 23 12:54:23 2013 +0000 @@ -1,14 +1,23 @@ -As previously described over e-mail, this is initial commit is part of the code that was designed for a specific experiment. +Code that takes parameters of one geometry as input and gives one wav file of binaural signals. -It is not quite yet what's needed in terms of specifying input parameters / obtaining outputs. +The objective is to now use this as the basis for the development of the matlab -> web shell integration code. -As the code currently stands, the user has to go into the 'user editable part' of the simulate_echo.m file, -specify the geometry parameters (for a collection of geometries) -and then run this edited function -to obtain the collection of IRs as fields of a multidimensional structure array. +Following that, the objective should be to add more user defined parameters that will work within the +matlab -> web shell integration paradigm. -Then the user can use the pick_ir.m function to get each IR corresponding to each individual geometry. - -I will soon push an extra .m file that takes parameters for one geometry and gives one binaural IR. - -We can then modify according to the requirements of the matlab -> web shell integration. \ No newline at end of file +Matlab help preample of simulateBinauralSignals.m: +%Creates .wav file of 2sec long binaural signals for specific board dimensions and gaussian white noise stimulus +% +% The .wav is created in the current directory with filename is 'binsimecho.wav' +% +% INPUTS: +% - dist (1st input argument) is the distance in meters +% - azim (2nd input argument) is the azimuth in degrees (0 means straight ahead, positive angles are left and negative +% are right) +% - orient (3rd input argument) must be either 'horz' or 'angled' corresponding to flat and angled descriptions in +% Papadopoulos et al. BSPC 2011. +% - dirweight (4tht input argument) must be a nonnegative real scalar determining what is the relative weight of the +% emission path to the echo path (i.e. due to directivity focus in the frontal direction of the source, the emission +% which is directed upwards and backwards in our specific geometry is significantly attenuated, typically by factor in +% the vicinity of 0.2) +%