Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Institute of Technical Acoustics (ITA)
toolbox
Commits
937a1d00
Commit
937a1d00
authored
8 years ago
by
Lukas Aspöck
Browse files
Options
Downloads
Patches
Plain Diff
- more path flexibility in raven demo script
- bugfix for plotModel/ plotSphereEnergy method
parent
38984ff7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/VirtualAcoustics/Raven/ita_raven_demo.m
+17
-4
17 additions, 4 deletions
applications/VirtualAcoustics/Raven/ita_raven_demo.m
with
17 additions
and
4 deletions
applications/VirtualAcoustics/Raven/ita_raven_demo.m
+
17
−
4
View file @
937a1d00
...
@@ -7,9 +7,15 @@
...
@@ -7,9 +7,15 @@
% </ITA-Toolbox>
% </ITA-Toolbox>
%% Projektdatei einlesen
%% Projektdatei einlesen
% load ita raven project
% project laden
rpf
=
itaRavenProject
(
'..\RavenInput\Classroom\Classroom.rpf'
);
ravenProjectPath
=
'..\RavenInput\Classroom\Classroom.rpf'
;
if
(
~
exist
(
ravenProjectPath
,
'file'
))
[
filename
,
pathname
]
=
uigetfile
(
'Classroom.rpf'
,
'Please select raven project file!'
);
ravenProjectPath
=
[
pathname
filename
];
ravenBasePath
=
ravenProjectPath
(
1
:
end
-
34
);
end
rpf
=
itaRavenProject
(
ravenProjectPath
);
%% Simulationsparameter einstellen
%% Simulationsparameter einstellen
% Image sources up to second order
% Image sources up to second order
rpf
.
setISOrder_PS
(
2
);
rpf
.
setISOrder_PS
(
2
);
...
@@ -68,7 +74,12 @@ mono_ir.plot_time; % plot monaural RIR in time domain
...
@@ -68,7 +74,12 @@ mono_ir.plot_time; % plot monaural RIR in time domain
binaural
.
plot_freq
;
% plot binaural RIR in time domain
binaural
.
plot_freq
;
% plot binaural RIR in time domain
%% Example: Include loudspeaer frequency response in RIR (for comparisons with measurements)
%% Example: Include loudspeaer frequency response in RIR (for comparisons with measurements)
ls_O100
=
ita_read
(
'..\RavenDatabase\FrequencyResponse\KH_O100_reference_holesclosed_final_at1V1m_fft14.ita'
);
pathFrequencyResponse
=
'..\RavenDatabase\FrequencyResponse\KH_O100_reference_holesclosed_final_at1V1m_fft14.ita'
;
if
(
~
exist
(
pathFrequencyResponse
,
'file'
))
pathFrequencyResponse
=
[
ravenBasePath
pathFrequencyResponse
(
4
:
end
)
];
end
ls_O100
=
ita_read
(
pathFrequencyResponse
);
ir_mit_lautsprecher
=
ita_convolve
(
mono_ir
,
ls_O100
);
ir_mit_lautsprecher
=
ita_convolve
(
mono_ir
,
ls_O100
);
%% Additional features
%% Additional features
...
@@ -77,3 +88,5 @@ ir_mit_lautsprecher = ita_convolve(mono_ir, ls_O100);
...
@@ -77,3 +88,5 @@ ir_mit_lautsprecher = ita_convolve(mono_ir, ls_O100);
% show absorption coefficients
% show absorption coefficients
rpf
.
plotMaterialsAbsorption
;
rpf
.
plotMaterialsAbsorption
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment