Skip to content

Commit ec4278d

Browse files
committed
Merge branch 'master' of github.com:sfstoolbox/sfs
* 'master' of github.com:sfstoolbox/sfs: Fix comments in generate_README_plots Fix plot_sound_field() command for time-domain plot in README Update order of generate_README_plots script with order in README Update local WFS plot Update WFS 2.5D plots (phase changed) Fix 3D WFS plots for plane waves (sign changed)
2 parents a7d2af6 + bb38d56 commit ec4278d

8 files changed

+14
-14
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ larger values.
469469

470470
```Matlab
471471
conf.plot.usedb = true;
472-
plot_sound_field(p,x,y,z,x0,conf);
472+
plot_sound_field(p,[-2 2],[-2 2],0,x0,conf);
473473
%print_png('doc/img/sound_field_imp_nfchoa_25d_dB.png');
474474
```
475475

doc/img/generate_README_plots.m

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,6 @@
102102
print_png('secondary_sources_arbitrary_realloudspeakers.png');
103103

104104
%% ===== Monochromatic sound fields ======================================
105-
% === stereo setup ===
106-
conf = SFS_config_example;
107-
conf.plot.normalisation = 'center';
108-
x0 = [-1 2 0 0 -1 0 1;1 2 0 0 -1 0 1];
109-
% [P,x,y,z] = sound_field_mono(X,Y,Z,x0,src,D,f,conf)
110-
sound_field_mono([-2 2],[-1 3],0,x0,'ps',[1 1],800,conf)
111-
print_png('sound_field_stereo.png');
112-
113105
% === WFS 3D ===
114106
conf = SFS_config_example;
115107
conf.dimension = '3D';
@@ -150,7 +142,7 @@
150142
sound_field_mono_nfchoa([-2 2],[-2 2],0,[0 -1 0],'pw',800,conf);
151143
print_png('sound_field_nfchoa_25d.png');
152144

153-
% 2D local WFS with box shaped array and circular virtual array
145+
% === 2D local WFS with box shaped array and circular virtual array ===
154146
conf = SFS_config_example;
155147
conf.resolution = 1000;
156148
conf.dimension = '2D';
@@ -165,19 +157,27 @@
165157
axis([-1.1 1.1 -1.1 1.1]);
166158
print_png('sound_field_localwfs_2d.png');
167159

168-
% --- spatio-temporal snapshots of the sound field ---
160+
% === stereo setup ===
161+
conf = SFS_config_example;
162+
conf.plot.normalisation = 'center';
163+
x0 = [-1 2 0 0 -1 0 1;1 2 0 0 -1 0 1];
164+
% [P,x,y,z] = sound_field_mono(X,Y,Z,x0,src,D,f,conf)
165+
sound_field_mono([-2 2],[-1 3],0,x0,'ps',[1 1],800,conf)
166+
print_png('sound_field_stereo.png');
167+
168+
%% ===== spatio-temporal snapshots of the sound field ====================
169169
conf = SFS_config_example;
170170
conf.dimension = '2.5D';
171171
conf.plot.useplot = true;
172172
% sound_field_imp_nfchoa(X,Y,Z,xs,src,t,conf)
173173
[p,x,y,z,x0] = sound_field_imp_nfchoa([-2 2],[-2 2],0,[0 2 0],'ps',200,conf);
174174
print_png('sound_field_imp_nfchoa_25d.png');
175175
conf.plot.usedb = true;
176-
plot_sound_field(p,x,y,z,x0,conf);
176+
plot_sound_field(p,[-2 2],[-2 2],0,x0,conf);
177177
print_png('sound_field_imp_nfchoa_25d_dB.png');
178178

179179

180-
% --- custom grids ---
180+
%% ===== custom grids ====================================================
181181
conf = SFS_config_example;
182182
conf.dimension = '3D';
183183
conf.secondary_sources.number = 225;
@@ -197,7 +197,7 @@
197197
print_png('sound_field_imp_nfchoa_25d_dB_custom_grid.png');
198198

199199

200-
% --- impulse response of the system ---
200+
%% ===== impulse response of the system ==================================
201201
conf = SFS_config_example;
202202
conf.ir.usehcomp = 0;
203203
conf.wfs.usehpre = 0;

doc/img/sound_field_localwfs_2d.png

-4.95 KB
Loading

doc/img/sound_field_wfs_25d.png

2.45 KB
Loading
2.65 KB
Loading

doc/img/sound_field_wfs_3d_xy.png

-176 Bytes
Loading

doc/img/sound_field_wfs_3d_xz.png

34 Bytes
Loading

doc/img/sound_field_wfs_3d_yz.png

372 Bytes
Loading

0 commit comments

Comments
 (0)