Skip to content

SQAT v1.2

Latest
Compare
Choose a tag to compare
@ggrecow ggrecow released this 13 Jan 22:07
· 2 commits to main since this release

Fixed issues

EPNL_FAR_Part36.m

  1. bandsharing procedure used to adjust the PNLTM value is now included, according to pull request #7
  2. 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

  1. 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 struct struct_opt needs to contain the parameter a0_type, meaning struct_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)

  1. inline function related to the creation of the transmission factor were moved to the utilities folder. The new standalone functions are calculate_a0 , and create_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.