0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 installed.AK = false;
0019 installed.auditory = false;
0020 installed.SOFA = false;
0021 installed.SOFiA = false;
0022
0023 if exist('AKsht', 'file')
0024 if ~strfind(which('AKsht'), 'SUpDEq')
0025 installed.AK = true;
0026 end
0027 end
0028 if exist('MakeERBFilters', 'file')
0029 if ~strfind(which('MakeERBFilters'), 'SUpDEq')
0030 installed.auditory = true;
0031 end
0032 end
0033 if exist('SOFAload', 'file')
0034 if ~strfind(which('SOFAload'), 'SUpDEq')
0035 installed.SOFA = true;
0036 end
0037 end
0038 if exist('sofia_itc', 'file')
0039 if ~strfind(which('sofia_itc'), 'SUpDEq')
0040 installed.SOFiA = true;
0041 end
0042 end
0043
0044
0045 addpath(pwd, '-end')
0046 addpath(genpath(fullfile(pwd,'evaluation')), '-end')
0047 addpath(genpath(fullfile(pwd,'materials')), '-end')
0048 addpath(genpath(fullfile(pwd,'thirdParty')), '-end')
0049
0050
0051 try
0052 run(fullfile(pwd, 'thirdParty', 'SOFA_API', 'API_MO', 'SOFAstart(''silent'')'))
0053 catch
0054 run(fullfile(pwd, 'thirdParty', 'SOFA_API', 'API_MO', 'SOFAstart'))
0055 end
0056
0057
0058 if installed.AK
0059 rmpath(genpath(fullfile(pwd, 'thirdParty', 'AKtools')))
0060 end
0061 if installed.auditory
0062 rmpath(genpath(fullfile(pwd, 'thirdParty', 'amtoolbox-full-0.9.9')))
0063 end
0064 if installed.SOFA
0065 rmpath(genpath(fullfile(pwd, 'thirdParty', 'sofa-api-mo-1.0.2')))
0066 end
0067 if installed.SOFiA
0068 rmpath(genpath(fullfile(pwd, 'thirdParty', 'SOFiA R13_MIT-License')))
0069 end
0070
0071
0072 fprintf('\n\n')
0073 disp('*******************************************************************')
0074 disp('***** SUpDEq - Spatial Upsampling by Directional Equalization *****')
0075 disp('*******************************************************************')
0076 disp('** **')
0077 disp('** (C) Christoph Pörschmann and Johannes M. Arend **')
0078 disp('** TH Köln - University of Applied Sciences **')
0079 disp('** Institute of Communications Engineering **')
0080 disp('** Department of Acoustics and Audio Signal Processing **')
0081 disp('** Betzdorfer Str. 2, D-50679 Cologne, Germany **')
0082 disp('** **')
0083 disp('** Run supdeq_demo now to test the toolbox... **')
0084 disp('** **')
0085 disp('*******************************************************************')
0086 disp('***** SUpDEq - Spatial Upsampling by Directional Equalization *****')
0087 disp('*******************************************************************')
0088 fprintf('\n\n')
0089
0090 clear installed
0091
0092
0093 toolboxes = {'Signal Processing Toolbox';
0094 'Signal_Toolbox'};
0095
0096 for tt = 1:size(toolboxes, 2)
0097 if ~license('test', toolboxes{2,tt})
0098 warning('SUpDEq:MatlabToolboxes', ['SUpDEq needs the ' toolboxes{1,tt} ' which is currently not installed. This might limit the functionality of SUpDEq.'])
0099 end
0100 end
0101
0102 clear tt toolboxes
0103