Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Martin Karlsson
turtlerob1
Commits
770f6ebd
Commit
770f6ebd
authored
Sep 24, 2015
by
Fredrik Bagge Carlsson
Browse files
bugfix
parent
70c31d32
Changes
1
Hide whitespace changes
Inline
Side-by-side
track_audio.m
View file @
770f6ebd
...
...
@@ -11,14 +11,21 @@ dt = chunks/fs;
%% Setup objects
% Initialize localization models using braodband and subband settings
dObj
=
dataObject
([],
fsHz
,
10
,
2
);
% Window size in seconds
winSec
=
20E-3
;
% Lowest and highest center frequency in Hertz of the gammatone filterbank
fLowHz
=
80
;
fHighHz
=
8000
;
dObj
=
dataObject
([],
fs
,
10
,
2
);
% Settings for subband approach
par_sub
=
genParStruct
(
'cc_bBroadband'
,
0
,
'cc_wSizeSec'
,
winSec
,
...
'cc_hSizeSec'
,
winSec
/
2
,
'cc_maxDelaySec'
,
1.25e-3
,
...
'fb_lowFreqHz'
,
fLowHz
,
'fb_highFreqHz'
,
fHighHz
,
...
'fb_nERBs'
,
1
,
'ihc_method'
,
'none'
,
...
'loc_NSources'
,
nSpeakers
(
hh
)
);
'loc_NSources'
,
1
);
% Initialize localization models using braodband and subband settings
mObj
=
manager
(
dObj
,
'localization'
,
par_sub
);
...
...
@@ -60,6 +67,7 @@ posteriorCovariance = zeros(size(A, 1), size(A, 1), N);
% =======================================================
% Main loop - Perform localization and tracking
% =======================================================
display
(
'Entering main loop'
)
tic
();
t_old
=
toc
();
for
l
=
1
:
N
...
...
@@ -80,7 +88,7 @@ for l = 1:N
posteriorMean
(:,
l
)
=
x
;
posteriorCovariance
(:,
:,
l
)
=
P
;
pause
(
max
(,
0
))
%
pause(max(,0))
t_old
=
t_new
;
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