tomwalters@0
|
1 % generating function for 'aim-mat'
|
tomwalters@0
|
2 %
|
tomwalters@0
|
3 % INPUT VALUES:
|
tomwalters@0
|
4 %
|
tomwalters@0
|
5 % RETURN VALUE:
|
tomwalters@0
|
6 %
|
tomwalters@0
|
7 %
|
bleeck@3
|
8 % (c) 2011, University of Southampton
|
bleeck@3
|
9 % Maintained by Stefan Bleeck (bleeck@gmail.com)
|
bleeck@3
|
10 % download of current version is on the soundsoftware site:
|
bleeck@3
|
11 % http://code.soundsoftware.ac.uk/projects/aimmat
|
bleeck@3
|
12 % documentation and everything is on http://www.acousticscale.org
|
bleeck@3
|
13
|
tomwalters@0
|
14
|
tomwalters@0
|
15 function [allstrobeprocesses,allthresholds]=gen_sf1992(nap,strobeoptions)
|
tomwalters@0
|
16
|
tomwalters@0
|
17 % this is the same function as sf2003, only the strobe criterium is changed
|
tomwalters@0
|
18 [allstrobeprocesses,allthresholds]=gen_sf2003(nap,strobeoptions);
|
tomwalters@0
|
19
|
tomwalters@0
|
20
|
tomwalters@0
|
21
|
tomwalters@0
|
22
|
tomwalters@0
|
23 % % find in each channel each strobe and gives it back as an list of
|
tomwalters@0
|
24 % % structures of strobes
|
tomwalters@0
|
25 %
|
tomwalters@0
|
26 % waithand=waitbar(0,'generating strobes');
|
tomwalters@0
|
27 % % % if not all channels are wanted to be seen
|
tomwalters@0
|
28 % %
|
tomwalters@0
|
29 % allthresholds=nap;
|
tomwalters@0
|
30 % cfs=getcf(nap);
|
tomwalters@0
|
31 %
|
tomwalters@0
|
32 %
|
tomwalters@0
|
33 % % switch strobeoptions.strobe_criterion
|
tomwalters@0
|
34 % % case 'threshold'
|
tomwalters@0
|
35 % % case 'peak'
|
tomwalters@0
|
36 % % case 'temporal_shadow'
|
tomwalters@0
|
37 % % case 'temporal_shadow_plus'
|
tomwalters@0
|
38 % % case 'delta_gamma'
|
tomwalters@0
|
39 % % case 'parabola'
|
tomwalters@0
|
40 % % case 'bunt'
|
tomwalters@0
|
41 % % case 'adaptive'
|
tomwalters@0
|
42 % % end
|
tomwalters@0
|
43 %
|
tomwalters@0
|
44 % % strobeoptions.strobe_criterion='peak';
|
tomwalters@0
|
45 % % strobeoptions.strobe_criterion='temporal_shadow';
|
tomwalters@0
|
46 % % strobeoptions.strobe_criterion='temporal_shadow_plus';
|
tomwalters@0
|
47 %
|
tomwalters@0
|
48 %
|
tomwalters@0
|
49 % nr_channels=getnrchannels(nap);
|
tomwalters@0
|
50 % for ii=1:nr_channels
|
tomwalters@0
|
51 % waitbar(ii/nr_channels);
|
tomwalters@0
|
52 % single_channel=getsinglechannel(nap,ii);
|
tomwalters@0
|
53 % current_cf=cfs(ii);
|
tomwalters@0
|
54 %
|
tomwalters@0
|
55 % [strobe_points,threshold]=findstrobes(single_channel,strobeoptions);
|
tomwalters@0
|
56 % strobe_vals=gettimevalue(single_channel,strobe_points);
|
tomwalters@0
|
57 %
|
tomwalters@0
|
58 % thresvals=getvalues(threshold);
|
tomwalters@0
|
59 %
|
tomwalters@0
|
60 % if size(strobe_points,1) > size(strobe_points,2)
|
tomwalters@0
|
61 % strobe_points=strobe_points';
|
tomwalters@0
|
62 % strobe_vals=strobe_vals';
|
tomwalters@0
|
63 % end
|
tomwalters@0
|
64 % allstrobeprocesses{ii}.strobes=strobe_points;
|
tomwalters@0
|
65 % allstrobeprocesses{ii}.strobe_vals=strobe_vals;
|
tomwalters@0
|
66 % allthresholds=setsinglechannel(allthresholds,ii,thresvals);
|
tomwalters@0
|
67 % end
|
tomwalters@0
|
68 % close(waithand); |