Skip to content

Commit

Permalink
pre-release check
Browse files Browse the repository at this point in the history
- excluded sound_files>publications folder
- checked all validation codes
- checked all example codes
- correct small typos on PsychoacousticAnnoyance (ALL) header
- checked pub_Greco2023_Internoise
- checked pub_Osses2023c_Forum_Acusticum_SQAT (only runs if <copy_sounds_for_pub_Osses2023c_to_SQAT> provided in the dataset is runned. In this case, a new folder sound_files>publication is genrated and the sound files are duplicated into the folder. This is not optimal and shall be improved for future release
  • Loading branch information
ggrecow committed May 14, 2023
1 parent ad4fdc1 commit 4b8d3d6
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Script PsychoacousticAnnoyance_Di2016
%
% Example: compute Di's modified psychoacoustic annoyance of signal 14 from the ISO 532-1:2017
% Example: compute Di's modified psychoacoustic annoyance of RefSignal_Loudness_ISO532_1
%
% FUNCTION:
% OUT = PsychoacousticAnnoyance_Di2016(insig,fs,LoudnessField,time_skip,showPA,show)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Script ex_PsychoacousticAnnoyance_More2010
%
% Example: compute More's modified psychoacoustic annoyance of signal 14 from the ISO 532-1:2017
% Example: compute More's modified psychoacoustic annoyance of RefSignal_Loudness_ISO532_1
%
% FUNCTION:
% OUT = PsychoacousticAnnoyance_More2010(insig,fs,LoudnessField,time_skip,showPA,show)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
% Script ex_PsychoacousticAnnoyance_Zwicker1999
%
% Example: computes Zwicker & Fastl's psychoacoustic annoyance of signal 14 from the ISO 532-1:2017
% Example: computes Zwicker & Fastl's psychoacoustic annoyance of RefSignal_Loudness_ISO532_1
%
% FUNCTION:
% OUT = PsychoacousticAnnoyance_Zwicker1999(insig,fs,LoudnessField,time_skip,showPA,show)
Expand Down
2 changes: 1 addition & 1 deletion examples/sound_level_meter/ex_sound_level_meter.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
%
% Author: Alejandro Osses
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc; clear all;close all;
clc; clear all ;close all;

dir_sounds = [basepath_SQAT 'sound_files' filesep 'reference_signals' filesep];
wavfilename='RefSignal_Sharpness_DIN45692.wav';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@

list_tables_and_figures = {'do_table2';'do_table3';'do_fig1a'; 'do_fig1b'; 'do_fig1c'; ...
'do_fig2'; 'do_fig3';'do_fig3b'; 'do_fig_raw'};

for i = 1:length(list_tables_and_figures)
fprintf('Enter %.0f to %s\n',i,list_tables_and_figures{i});
end

bInput = input('Which table/figure you want to obtain (enter the corresponding number)?: ');
% % Setting to 1 the selected choice:
% exp2eval = sprintf('%s=1;',list_tables_and_figures{bInput});
Expand Down Expand Up @@ -74,6 +76,7 @@
dir_datasets = {'1-Aircraft-fly-by' ,114 , files_1; ...
'2-Train-pass-by' ,140.55 , files_2; ...
'3-Hummer-resonances',100 , files_3};

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Other common parameters:
List_psy_metrics = {'Loudness_ISO532_1', ...
Expand All @@ -83,6 +86,7 @@
'Tonality_Aures1985'};
list_metrics = {'LAeq','LAFmax','LZeq','T','SEL','Delta_Leq','LAFmax_min_LAeq'};
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

if do_table2

dBFS_4_reproduction = 120; % not too loud not too soft
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
%
% Author: Gil Felix Greco, Braunschweig 02.03.2020 (updated 13.05.2023)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc;clear all; close all;
clc; clear all; close all;

save_figs=0; %% save figs flag

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
clc; clear all; close all;

save_figs=1; % no=0; yes=1
save_figs=0; % no=0; yes=1

dir_out = [fileparts(mfilename('fullpath')) filesep];

Expand Down

0 comments on commit 4b8d3d6

Please sign in to comment.