Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
toolbox
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
12
Issues
12
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
4
Merge Requests
4
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Institute of Technical Acoustics (ITA)
toolbox
Commits
2fd8f33f
Commit
2fd8f33f
authored
Apr 26, 2017
by
Mueller-Trapet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some input checks and bugfix for analytic output
parent
0383dcfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
applications/RoomAcoustics/ita_speech_transmission_index.m
applications/RoomAcoustics/ita_speech_transmission_index.m
+10
-1
No files found.
applications/RoomAcoustics/ita_speech_transmission_index.m
View file @
2fd8f33f
...
...
@@ -35,6 +35,15 @@ function varargout = ita_speech_transmission_index(varargin)
sArgs
=
struct
(
'pos1_ir'
,
'itaAudio'
,
'levels'
,
[],
'SNR'
,
[],
'plot'
,
false
,
'analytic'
,
false
,
'gender'
,
'male'
);
[
ir
,
sArgs
]
=
ita_parse_arguments
(
sArgs
,
varargin
);
if
~
strcmpi
(
ir
.
signalType
,
'energy'
)
ita_verbose_info
(
'Your IR does not have the correct signalType, I will fix this, but be careful!'
,
0
);
ir
.
signalType
=
'energy'
;
end
if
ir
.
trackLength
<
1.6
ita_verbose_info
(
'IR is shorter than ISO 60268-16 recommends, I hope you know what you are doing!'
,
0
);
end
if
strcmpi
(
sArgs
.
gender
,
'male'
)
genderIndex
=
1
;
elseif
strcmpi
(
sArgs
.
gender
,
'female'
)
...
...
@@ -144,7 +153,7 @@ varargout(1) = {STI};
if
nargout
>
1
varargout
(
2
)
=
{
MTI
};
if
nargout
>
2
&&
sArgs
.
analytic
varargout
(
3
)
=
STI_analytic
;
varargout
(
3
)
=
{
STI_analytic
}
;
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment