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
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Institute of Technical Acoustics (ITA)
toolbox
Merge requests
!23
Las
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Las
las
into
master
Overview
0
Commits
2
Changes
3
Merged
Lukas Aspöck
requested to merge
las
into
master
1 year ago
Overview
0
Commits
2
Changes
3
Expand
Minor bugfixes (room acoustics, strength calculation) and additions (DAFFv15 examples)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
35d77d53
2 commits,
1 year ago
3 files
+
242
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
applications/RoomAcoustics/AdditionalRoutines/ita_roomacoustics_sound_strength.m
+
7
−
2
Options
@@ -81,12 +81,13 @@ if isa(reference, 'itaAudio')
% upper inegration limit is intersection time
[
del1
,
snr
,
intersectionTime
]
=
ita_roomacoustics_reverberation_time_lundeby
(
refGefiltert
,
'freqRange'
,
sArgs
.
freqRange
,
'bandsPerOctave'
,
sArgs
.
bandsPerOctave
,
'shortRevTimeMode'
);
idxEnd
=
round
(
refGefiltert
.
samplingRate
*
intersectionTime
.
freqData
);
refGefiltertData
=
refGefiltert
.
timeData
.^
2
;
idxEnd
=
min
(
idxEnd
,
length
(
refGefiltertData
)
-
1
);
% TODO: checkw as besser ist max vs ita_start IR
% % [del idxStart] = max(refGefiltertData);
idxStart
=
ita_start_IR
(
refGefiltert
);
idxStart
=
min
(
idxStart
,
length
(
refGefiltertData
)
-
1
);
% integrate
L_ref
=
zeros
(
numel
(
freqVec
),
1
);
for
iFreq
=
1
:
numel
(
freqVec
)
@@ -178,6 +179,10 @@ for iCh = 1:nChannels
end
% integrate
idxEnd
=
min
(
idxEnd
,
rirBands
.
nSamples
-
1
);
idxStart
=
min
(
idxStart
,
rirBands
.
nSamples
-
1
);
rirBandsData
=
rirBands
.
timeData
.^
2
;
for
iFreq
=
1
:
numel
(
freqVec
)
if
any
(
isnan
([
idxStart
(
iFreq
)
idxEnd
(
iFreq
)]))
Loading