Commit ec9a2bff authored by Lukas Aspöck's avatar Lukas Aspöck Committed by Dipl.-Ing. Jonas Stienen
Browse files

RAVEN demo and tutorial scripts are now a bit more fail-safe (added commands for simulationTypes)

parent 3d787029
......@@ -31,9 +31,9 @@ classdef itaRavenProject < handle
% Author: Soenke Pelzer (spe@akustik.rwth-aachen.de)
% Lukas Aspck (las@akustik.rwth-aachen.de)
%
% Version: 0.2
% Version: 0.3
% First release: 01.11.10
% Last revision: 11.07.18
% Last revision: 24.06.20
% Copyright: Institute of Technical Acoustics, RWTH Aachen University
%
......@@ -4630,7 +4630,7 @@ classdef itaRavenProject < handle
disp('repeat simulation for validation');
obj.run();
disp('get monaural impulse response');
disp('get mono room impulse response');
rir = obj.getImpulseResponseItaAudio();
% merge IRs of multiple receivers into 1 multichannel itaAudio
......
......@@ -34,7 +34,13 @@ rpf.setTemperature(21); %
%% Define simulation outputs
% create monaural room impulse response
% activate image source simulation
rpf.setSimulationTypeIS(1);
% activate ray tracing simulation
rpf.setSimulationTypeRT(1);
% create mono room impulse response
rpf.setGenerateRIR(1);
% create binaural room impulse response
......@@ -71,7 +77,7 @@ reverb_time = rpf.getT30();
%% ITA-Toolbox......
mono_ir.plot_time_dB; % plot monaural RIR in time domain
mono_ir.plot_time_dB; % plot mono RIR in time domain
binaural.plot_time_dB; % plot binaural RIR in time domain
%% Example: Include loudspeaer frequency response in RIR (for comparisons with measurements)
......
......@@ -26,7 +26,8 @@ rpf.setTemperature(21);
rpf.setEnergyLoss(60);
%% Choose output
rpf.setSimulationTypeIS(1);
rpf.setSimulationTypeRT(1);
rpf.setGenerateRIR(1);
rpf.setGenerateBRIR(1);
rpf.setExportHistogram(1);
......@@ -57,7 +58,7 @@ reverb_time = rpf.getT30();
%% Plot --> ITA-Toolbox...
% plot in time- / frequency domain
mono_ir.plot_time; % plot monaural IR in the time domain
mono_ir.plot_time; % plot mono IR in the time domain
binaural.plot_freq; % plot binaural IR in the frequency domain
%%plot energy
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment