Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Institute of Technical Acoustics (ITA)
VACore
Commits
98086a3d
Commit
98086a3d
authored
Oct 09, 2019
by
Sebastian Riebeling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explicit function for building of rot matrix
parent
57f6cf07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
src/Reproduction/Binaural/VAAmbisonicsBinauralMixdownReproduction.cpp
...tion/Binaural/VAAmbisonicsBinauralMixdownReproduction.cpp
+12
-6
No files found.
src/Reproduction/Binaural/VAAmbisonicsBinauralMixdownReproduction.cpp
View file @
98086a3d
...
...
@@ -75,7 +75,7 @@ CVAAmbisonicsBinauralMixdownReproduction::CVAAmbisonicsBinauralMixdownReproducti
conf
.
ReqInteger
(
"TruncationOrder"
,
m_iAmbisonicsTruncationOrder
);
// Sollte aus der Zahl der Eingangskanle berechnet werden
conf
.
OptInteger
(
"HRIRFilterLength"
,
m_iHRIRFilterLength
,
512
);
conf
.
OptInteger
(
"TrackedListenerID"
,
m_iListenerID
,
1
);
conf
.
OptString
(
"RotationMode"
,
m_sRotationMode
,
"
Quaternion
"
);
//Set calculation of rotations to "ViewUp" or "Quaternion" or "BFormat"
conf
.
OptString
(
"RotationMode"
,
m_sRotationMode
,
"
BFormat
"
);
//Set calculation of rotations to "ViewUp" or "Quaternion" or "BFormat"
std
::
string
sDefaultHRIRPathRAW
;
...
...
@@ -556,13 +556,17 @@ void CVAAmbisonicsBinauralMixdownReproduction::UpdateScene(CVASceneState* pNewSt
calcRotationMatrix
(
m_orderMatrices
,
m_iAmbisonicsTruncationOrder
,
dYaw
,
dPitch
,
dRoll
);
//calcRotationMatrix(m_orderMatrices, m_iAmbisonicsTruncationOrder, 0, 0, ITAConstants::PI_D);
//Eigen::MatrixXd R0 = m_orderMatrices[0];
//To be delted: display of matrices for every order
/*
Eigen::MatrixXd R0 = m_orderMatrices[0];
Eigen::MatrixXd R1 = m_orderMatrices[1];
Eigen::MatrixXd R2 = m_orderMatrices[2];
Eigen::MatrixXd R3 = m_orderMatrices[3];
Eigen::MatrixXd R4 = m_orderMatrices[4];
*/
/*
const int order1 = 3;
double matrix1[order1][order1];
for (int i = 0; i < order1; i++) {
...
...
@@ -578,8 +582,8 @@ void CVAAmbisonicsBinauralMixdownReproduction::UpdateScene(CVASceneState* pNewSt
matrix2[i][j] = R2(i, j);
}
}
*/
/*
const int order3 = 7;
double matrix3[order3][order3];
for (int i = 0; i <= order3; i++) {
...
...
@@ -587,6 +591,7 @@ void CVAAmbisonicsBinauralMixdownReproduction::UpdateScene(CVASceneState* pNewSt
matrix3[i][j] = R3(i, j);
}
}
const int order4 = 9;
double matrix4[order4][order4];
for (int i = 0; i < order4; i++) {
...
...
@@ -594,10 +599,11 @@ void CVAAmbisonicsBinauralMixdownReproduction::UpdateScene(CVASceneState* pNewSt
matrix4[i][j] = R4(i, j);
}
}
*/
Eigen
::
MatrixXd
matRotation
=
buildRotationMatrix
(
m_orderMatrices
,
m_iAmbisonicsTruncationOrder
);
//To be deleted: only for testing purposes. Better display of 25x25 matrix (possible to see ind. values)
double
matrix
[
25
][
25
];
for
(
int
i
=
0
;
i
<
25
;
i
++
)
{
for
(
int
j
=
0
;
j
<
25
;
j
++
)
{
...
...
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