function conf = SFS_config()
%SFS_CONFIG returns a struct with the default configuration settings
%
% Usage: conf = SFS_config
%
% Output parameters:
% conf - struct containing all configuration variables
%
% SFS_CONFIG() creates the struct conf containing the default
% configuration values. If you want to create other entries, please set
% them in your script (e.g. conf.fs = 48000) and pass the conf struct to
% the desired function as last input (e.g. tapering_window(x0,conf)).
%
% Please don't edit this function to change your configuration settings!
%
% See also: SFS_start
%*****************************************************************************
% The MIT License (MIT) *
% *
% Copyright (c) 2010-2019 SFS Toolbox Developers *
% *
% Permission is hereby granted, free of charge, to any person obtaining a *
% copy of this software and associated documentation files (the "Software"), *
% to deal in the Software without restriction, including without limitation *
% the rights to use, copy, modify, merge, publish, distribute, sublicense, *
% and/or sell copies of the Software, and to permit persons to whom the *
% Software is furnished to do so, subject to the following conditions: *
% *
% The above copyright notice and this permission notice shall be included in *
% all copies or substantial portions of the Software. *
% *
% THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR *
% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, *
% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL *
% THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING *
% FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER *
% DEALINGS IN THE SOFTWARE. *
% *
% The SFS Toolbox allows to simulate and investigate sound field synthesis *
% methods like wave field synthesis or higher order ambisonics. *
% *
% https://sfs.readthedocs.io sfstoolbox@gmail.com *
%*****************************************************************************
%% ===== Checking of input parameters ===================================
nargmin = 0;
nargmax = 0;
narginchk(nargmin,nargmax);
%% ===== Table of Contents ===============================================
%
% - Misc
% - Audio
% - Delayline
% - Sound Field Synthesis (SFS)
% * Dimensionality
% * Driving functions
% * Impulse responses
% * 2.5D
% * Tapering
% - Sound Field Simulations
% - Secondary Sources
% - Wave Field Synthesis (WFS)
% * Pre-equalization
% - Spectral Division Method (SDM)
% - Near-Field Compensated Higher Order Ambisonics (NFC-HOA)
% - Local Sound Field Synthesis (LSFS)
% - Binaural Reproduction
% * Headphone compensation
% * SoundScape Renderer
% - Plotting
% - References
%% ===== Misc ============================================================
conf.tmpdir = '/tmp/sfs'; % string
% Debugging level. We are supporting two levels:
% 0 - normal mode
% 1 - debug modus, showing interim results and plots
conf.debug = 0; % 0 or 1
% Show a progress bar in selected loops (for example sound_field_mono). This can
% be useful, if you are using a high number of secondary sources.
conf.showprogress = false; % boolean
%% ===== Audio ===========================================================
% Audio and signal processing settings
%
% Samplingrate
conf.fs = 44100; % / Hz
% Speed of sound
conf.c = 343; % / m/s
%% ===== Delayline =======================================================
% Delaying of time signals. This can be critical as very often the wanted delays
% are given as fractions of samples. This configuration section handles how
% those delays should be handled. Beside choosing the actual delayline filter,
% the signal can also be resampled before delaying. As the default setting,
% integer only delays are used by rounding to the next larger integer delay.
% If you want to use a fractional delayline, a setting with a high accuracy is:
% conf.delayline.resampling = 'pm';
% conf.delayline.resamplingfactor = 8;
% conf.delayline.resamplingorder = 64;
% conf.delayline.filter = 'lagrange';
% conf.delayline.filterorder = 9;
% Note, that the necessary interpolation accuracy highly depends on the
% actual use case and parametrisation, compare Winter and Spors (2016).
%
% Delayline filter
% 'integer' - round to nearest integer delay (default)
% 'zoh' - round to next larger integer delay
% 'lagrange' - lagrange interpolator (FIR Filter)
% 'least_squares' - least squares FIR interpolation filter
% 'thiran' - Thiran's allpass IIR filter
% 'farrow' - use the Farrow structure (to be implemented)
conf.delayline.filter = 'integer'; % string
% Resample signal
% 'none' - no resampling (default)
% 'matlab' - use matlab's resample() function
% 'pm' - use Parks-McClellan-Method to compute resample filter (firpm)
conf.delayline.resampling = 'none'; % / string
% Oversamplingfactor factor >= 1
% This should be in the order of (1/stepsize of fractional delays)
conf.delayline.resamplingfactor = 100; % / 1
% Order of Parks-McClellan resample filter (only for 'pm')
% This results in a filter length of resamplingfactor*resamplingorder
conf.delayline.resamplingorder = 64;
% Order of delayline filter (only for Lagrange, Least-Squares & Thiran)
conf.delayline.filterorder = 0; % / 1
% Number of parallel filters in Farrow structure
% (only for 'farrow');
conf.delayline.filternumber = 1; % / 1
%% ===== Sound Field Synthesis (SFS) =====================================
% Common sound field synthesis settings
%
% === Dimensionality ===
% Dimensionality of the secondary sources and the sound field synthesis driving
% functions:
% '2D' - line sources as secondary sources, arranged in a circle, line, ...
% '2.5D' - point sources as secondary sources, arranged in a circle, line, ...
% '3D' - point sources as secondary sources, arranged in a sphere, plane, ...
conf.dimension = '2.5D'; % string
%
% === Driving functions ===
% Implementation of driving functions. For the default ones use 'default'. These
% functions are described at https://sfs.readthedocs.io/. For possible other
% flags have a look into the driving functions as they can be quite specific.
% Most users can safely use the 'default' flag here.
conf.driving_functions = 'default'; % string
%
% === Impulse responses ===
% Length of impulse responses used in the time domain driving functions
% and for the creation of the binaural simulations.
% Don't worry, SFS checks for you if conf.N is large enough.
conf.N = 2048; % samples
%
% === 2.5D ===
% The amplitude will be correct at the point xref for 2.5D
% synthesis.
conf.xref = [0 0 0]; % / m
%
% === Tapering ===
% The truncation of the loudspeaker array leads to diffraction of the
% synthesized sound field. It has been shown that the truncation can be
% described by cylindrical waves originating from the edges of the array, see
% Sect. 8.3.2 in Born, Wolf (1999) for the general principle and Sect. 3.2 in
% Wierstorf (2014) for how it relates to WFS. Therefore a good method to reduce
% artifacts due to the diffraction edge waves is to fade out the amplitude of
% the driving function at the edges of the
没有合适的资源?快使用搜索试试~ 我知道了~
SFS Toolbox for MatlabOctave.zip
共323个文件
m:262个
png:30个
rst:13个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 63 浏览量
2023-07-16
19:25:37
上传
评论
收藏 2.61MB ZIP 举报
温馨提示
SFS Toolbox for MatlabOctave
资源推荐
资源详情
资源评论
收起资源包目录
SFS Toolbox for MatlabOctave.zip (323个子文件)
title.css 652B
abbr.css 79B
.gitignore 236B
gp_set_loudspeaker.gnu 4KB
gp_set_head.gnu 4KB
gp_draw_loudspeakers.gnu 4KB
layout.html 367B
tu_berlin_hrtf.jpg 133KB
university_rostock_loudspeaker_array.jpg 60KB
.zenodo.json 2KB
LICENSE 1KB
SFS_config.m 26KB
test_secondary_source_positions.m 17KB
test_secondary_source_diameter.m 16KB
findvoronoi.m 16KB
driving_function_mono_wfs_fs.m 15KB
inferno.m 14KB
magma.m 14KB
get_ir.m 12KB
driving_function_mono_wfs_ps.m 12KB
generate_plots.m 11KB
test_modal_weighting.m 11KB
test_interpolation_point_selection.m 11KB
virtual_secondary_source_positions.m 11KB
legpts.m 11KB
secondary_source_positions.m 10KB
driving_function_imp_wfs_fs.m 10KB
delayline.m 10KB
test_driving_functions.m 9KB
test_interpolation_methods.m 9KB
plot_sound_field.m 9KB
driving_function_imp_wfs_ps.m 8KB
test_sphbesselh_zeros.m 8KB
sound_field_imp.m 8KB
driving_function_imp_nfchoa.m 8KB
wfs_iir_prefilter.m 8KB
test_plotting.m 8KB
wave_fronts_wfs.m 8KB
interpolate_ir.m 8KB
test_driving_functions_imp_with_delay.m 8KB
test_localwfs_vss.m 8KB
extrapolate_farfield_hrtfset.m 8KB
modal_weighting.m 8KB
sound_field_mono_sdm_kx.m 8KB
driving_function_mono_nfchoa_ls.m 7KB
get_shelve_lagrange.m 7KB
secondary_source_selection.m 7KB
driving_function_mono_nfchoa_pw.m 7KB
test_secondary_source_selection.m 7KB
driving_function_mono_wfs_ls.m 7KB
sphbesselh_zeros.m 7KB
test_localwfs_sbl.m 7KB
test_imp_25d.m 7KB
sound_field_mono.m 7KB
driving_function_imp_wfs.m 7KB
tapering_window.m 7KB
rounded_box.m 7KB
driving_function_mono_nfchoa_ps.m 7KB
driving_function_mono_wfs_pw.m 6KB
findconvexcone.m 6KB
get_spherical_grid.m 6KB
driving_function_mono_sdm_kx_fs.m 6KB
driving_function_imp_wfs_pw.m 6KB
driving_function_imp_wfs_ls.m 6KB
driving_function_imp_localwfs_vss.m 6KB
driving_function_imp_wfs_vss.m 6KB
moreland.m 6KB
test_hrtf_extrapolation.m 6KB
test_all.m 6KB
driving_function_mono_sdm_kx_ps.m 6KB
driving_function_imp_localwfs_sbl_ps.m 6KB
spectrum_from_signal.m 6KB
driving_function_mono_localwfs_sbl_ps.m 6KB
test_exp_imp.m 6KB
driving_function_mono_wfs_vss.m 6KB
SFS_start.m 6KB
driving_function_mono_localwfs_vss.m 6KB
draw_loudspeakers.m 6KB
sofa_get_secondary_sources.m 6KB
test_exp_mono.m 6KB
circexp_imp_ps.m 5KB
circexp_mono_ps.m 5KB
greens_function_mono.m 5KB
greens_function_imp.m 5KB
test_delayline.m 5KB
signal_from_spectrum.m 5KB
driving_function_mono_sdm_pw.m 5KB
test_binaural_synthesis.m 5KB
driving_function_mono_sdm_kx_pw.m 5KB
localwfs_findhpref.m 5KB
sound_field_mono_localwfs_vss.m 5KB
wfs_fir_prefilter.m 5KB
freq_response_localwfs_sbl.m 5KB
sound_field_imp_localwfs_vss.m 5KB
movie_sound_field_imp_wfs.m 5KB
sofa_get_data_fire.m 5KB
test_linkwitz_riley.m 5KB
driving_function_mono_sdm_kx_ls.m 5KB
test_tapering_window.m 5KB
time_response_wfs.m 5KB
共 323 条
- 1
- 2
- 3
- 4
资源评论
AbelZ_01
- 粉丝: 904
- 资源: 5441
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功