File tree Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Expand file tree Collapse file tree 3 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 13
13
pause(1 )
14
14
print_png(' secondary_sources_linear.png' );
15
15
16
+ conf.secondary_sources.logspread = 3.5 ;
17
+ x0 = secondary_source_positions(conf );
18
+ figure ;
19
+ figsize(540 ,404 ,' px' );
20
+ draw_loudspeakers(x0 ,conf );
21
+ axis([-2 2 - 2 1 ]);
22
+ pause(1 )
23
+ print_png(' secondary_sources_linear_log.png' );
24
+
16
25
% === circular ===
17
26
conf.secondary_sources.geometry = ' circle' ;
18
27
conf.secondary_sources.number = 56 ;
Original file line number Diff line number Diff line change @@ -36,6 +36,31 @@ Linear array
36
36
37
37
Linear loudspeaker array with a length of 3m consiting of 21 loudspeakers.
38
38
39
+ You can also create logarithmic spacing for a linear array setting
40
+ ``conf.secondary_sources.logspread `` different from its default value of
41
+ ``1.0 ``. For values smaller than 1 the secondary sources will be more dense at
42
+ the edges of the array, whereas for larger values they will be more dense at the
43
+ center.
44
+
45
+ .. sourcecode :: matlab
46
+
47
+ conf = SFS_config;
48
+ conf.secondary_sources.geometry = 'line';
49
+ conf.secondary_sources.number = 21;
50
+ conf.secondary_sources.logspread = 3.5;
51
+ x0 = secondary_source_positions(conf);
52
+ figure;
53
+ figsize(504,404,'px');
54
+ draw_loudspeakers(x0,conf);
55
+ axis([-2 2 -2 1]);
56
+ %print_png('img/secondary_sources_linear_log.png');
57
+
58
+ .. figure :: img/secondary_sources_linear_log.png
59
+ :align: center
60
+
61
+ Linear loudspeaker array with a length of 3m consiting of 21 logarithmically
62
+ spaced loudspeakers.
63
+
39
64
Circular array
40
65
--------------
41
66
You can’t perform that action at this time.
0 commit comments