Mercurial > hg > human-echolocation
view README @ 18:2d5f50205527 jabuilder_int tip
Escape the trailing backslash as well
author | Chris Cannam |
---|---|
date | Tue, 30 Sep 2014 16:23:00 +0100 |
parents | 68e34e3857a7 |
children |
line wrap: on
line source
Code that takes parameters of one geometry as input and gives one wav file of binaural signals. The objective is to now use this as the basis for the development of the matlab -> web shell integration code. Following that, the objective should be to add more user defined parameters that will work within the matlab -> web shell integration paradigm. Matlab help preample of simulateBinauralSignals.m: function simulateBinauralSignals(inputstruct) %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: % The input must be a structure with fields: % .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) %