diff --git a/applications/VirtualAcoustics/Raven/itaRavenProject.m b/applications/VirtualAcoustics/Raven/itaRavenProject.m index a3d9e428d52a7a790295c5cd5ffa843c32d05643..ae2891561765850bedeb0b1b2a2b6e1384f65bed 100644 --- a/applications/VirtualAcoustics/Raven/itaRavenProject.m +++ b/applications/VirtualAcoustics/Raven/itaRavenProject.m @@ -21,16 +21,19 @@ classdef itaRavenProject < handle % % Example: % rpf = itaRavenProject(); - % rpf.SetModel('cave.ac') - % rpf.run() - % rpf.getReverbTime() + % rpf.SetModel('cave.ac'); + % rpf.getEquationBasedReverbTime(); returns reverb time based on + % sabine equation + % rpf.run(); run simulation + % rpf.getT30(); get T30 based on simulation % % % Author: Soenke Pelzer (spe@akustik.rwth-aachen.de) % Lukas Aspöck (las@akustik.rwth-aachen.de) + % % Version: 0.1 % First release: 01.11.10 - % Last revision: 12.09.16 + % Last revision: 27.03.18 % Copyright: Institute of Technical Acoustics, RWTH Aachen University % @@ -2810,8 +2813,8 @@ classdef itaRavenProject < handle end %------------------------------------------------------------------ - function RT = getReverbTime(obj, eyring, roomID) - %RT = getReverbTime(eyring, roomID) + function RT = getEquationBasedReverbTime(obj, eyring, roomID) + %RT = getEquationBasedReverbTime(eyring, roomID) % % returns the estimated reverberation time of the current room. % @@ -2843,21 +2846,21 @@ classdef itaRavenProject < handle % get reverberation time if (eyring == 1) airAbsorption = determineAirAbsorptionParameter(obj.getTemperature, obj.getPressure, obj.getHumidity); - RT = roommodel.getReverbTime(obj.pathMaterials, 'eyring', airAbsorption); + RT = roommodel.getEquationBasedReverbTime(obj.pathMaterials, 'eyring', airAbsorption); else airAbsorption = determineAirAbsorptionParameter(obj.getTemperature, obj.getPressure, obj.getHumidity); - RT = roommodel.getReverbTime(obj.pathMaterials, 'sabine', airAbsorption); + RT = roommodel.getEquationBasedReverbTime(obj.pathMaterials, 'sabine', airAbsorption); end end %------------------------------------------------------------------ function RT = getReverbTime_Sabine(obj) - RT = obj.getReverbTime(0); + RT = obj.getEquationBasedReverbTime(0); end %------------------------------------------------------------------ function RT = getReverbTime_Eyring(obj) - RT = obj.getReverbTime(1); + RT = obj.getEquationBasedReverbTime(1); end %------------------------------------------------------------------ diff --git a/applications/VirtualAcoustics/Raven/load_ac3d.m b/applications/VirtualAcoustics/Raven/load_ac3d.m index b47f5a9127efff6664aedac313dd80f473feacb7..ef6bf3628869814fcdc103ae0902e401196c2c96 100644 --- a/applications/VirtualAcoustics/Raven/load_ac3d.m +++ b/applications/VirtualAcoustics/Raven/load_ac3d.m @@ -69,6 +69,7 @@ classdef load_ac3d mat_rows = find(strcmp(ac3d,'MATERIAL')==1); % Zeilenindizes der Materialien MatNames = ac3d(mat_rows,2); % Cell der Material Namen + MatNames = strrep(MatNames,'"',''); % make sure that no quotation marks are in the material MatColors = str2double(ac3d(mat_rows,4:6)); % Matrix der RGB Material Farben