Fixed issues
EPNL_FAR_Part36.m
- bandsharing procedure used to adjust the PNLTM value is now included, according to pull request #7
- small issue related to threshold value used for the duration correction (see pull request #5).
REMARK: Tested all 3 verification codes with the above mentioned fixed issues, and NO changes were observed on those results.
Changes
FluctuationStrength_Osses2016.m
- In response to Issue #11, an extra input called
struct_opt
was included to allow for optional parameters (see merge #13). Currently, the only parameters that can be changed is the a0 (sound transmission factor). For that, the structstruct_opt
needs to contain the parametera0_type
, meaningstruct_opt.a0_type= 'string_input'
should be defined with one of the following strings:
string_input = 'fluctuationstrength_osses2016'
: freq response is almost entirely flat (this is the default which is used if no input is given at all), as defined by the model's author
string_input = 'fastl2007'
: uses the transmission factor for free-field, according to Fig 8.18 (page 226) in Fastl & Zwicker Book, Psychoacoustics: facts and models 3rd edition (doi: 10.1007/978-3-540-68888-4)
- inline function related to the creation of the transmission factor were moved to the
utilities
folder. The new standalone functions arecalculate_a0
, andcreate_a0_FIR
, which could be used by other models if required.
REMARK: the fluctuationstrength_osses2016
transmission factor was the one used by default in all SQAT versions, and it still is the one used by default in the FS model if nothing is given by the user. Therefore, this code is backwards compatible with previous SQAT versions.
NOTE: an example code showing the outcomes and how to use this new feature is provide in the examples
folder [Link}
ex_FluctuationStrength_Osses2016_parametrisation.m
- this code inside the examples
folder shows how to use this feature.
NEW
ex_SPL_meter_sinusoidal_tones.m
- shows how to use the sound_level_meter
to compute the SPL time-history of two sinusoidal tones using different time- and freq-weightings.
ex_third_octave_spectrogram_2tones.m
- shows 1) how to use the Do_OB13_ISO532_1
function to decompose a signal composed of two sinusoidal tones (fc=100Hz and 1 kHz, both with 60 dBSPL) into third-octave bands, 2) compute the SPL time-history each 1/3 octave band using different time- and freq-weightings based on the Do_SLM
function, 3) plot a spectrogram comparing the results.
Loudness_ISO532_1.m
- additional plots summarizing results of validation study.