Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions crates/daisy-spatializer/src/hrir_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,61 @@ pub static HRIR_BEHIND_RIGHT_R: [f32; 140] = [
0.00392907718, 0.00328908954, 0.00206950423, -0.00111155596, -0.000888807175, 0.00283338269,
0.00191294018, 5.59133223e-05,
];

/// directly in front (elev 0, az 0 deg): symmetric ears (ITD/ILD ~ 0); externalized by the room, not the HRIR. (left ear)
#[rustfmt::skip]
pub static HRIR_FRONT_L: [f32; 140] = [
0.000340982282, -0.000763947028, 0.00207501603, -0.00339426752, 0.0046336907, -0.0045335372,
0.00334706064, -0.00078216102, -0.00338201132, 0.00721562328, -0.0105370702, 0.0124404011,
0.0036879757, 0.330893278, 0.497235686, -0.330368578, -0.262691677, 0.197592556,
-0.343059212, 0.000140580712, 0.629683673, 0.245194376, 0.249101222, 0.880763531,
0.708123326, -0.416255772, -0.448323458, 0.295655787, -0.241362453, -0.99000001,
-0.494995445, 0.0367155224, -0.309650779, -0.450296581, 0.0441817865, 0.186088905,
-0.0039119022, 0.0724582821, 0.27703321, 0.253362447, 0.104668833, 0.138077989,
0.163695052, 0.00751799671, -0.0709681362, 0.0373516977, 0.067816332, -0.0667965785,
-0.113686837, -0.074272193, -0.0815163925, -0.136276767, -0.181753516, -0.174636602,
-0.148763433, -0.120023414, -0.0555091985, -0.00135979545, 0.0081104394, 0.0176553745,
0.0521977134, 0.0906597376, 0.0945633352, 0.0668284819, 0.0491707325, 0.0417161435,
0.0225308612, -0.00797027443, -0.0177067406, -0.0176419336, -0.0423058718, -0.0560855865,
-0.0462850593, -0.0513028018, -0.0627918318, -0.0521160364, -0.0376713425, -0.0400579162,
-0.0373373739, -0.014820857, 0.00213954807, 0.00693662651, 0.0142490864, 0.0284014959,
0.0378466994, 0.0266798735, 0.00742105301, -0.0021313203, -0.000762633164, -0.00390467537,
-0.0179085564, -0.0206425022, -0.0182003584, -0.0249187145, -0.0257451199, -0.0168525074,
-0.0107294386, -0.0122037325, -0.00972437207, -0.000649809954, -0.00248795981, -0.0152560435,
-0.0134846494, 0.00045949468, 0.00531493034, 0.00201972504, 0.00151254574, 0.00206802203,
-0.00470342115, -0.0100477273, -0.00801735837, -0.0103391549, -0.0132979322, -0.0122729419,
-0.0136826048, -0.0166577827, -0.013020358, -0.00313488767, 0.00420361478, 0.00422472041,
-0.000562631409, -0.00304932427, -0.00226996141, -0.00652968278, -0.0134739643, -0.0132081471,
-0.0106624281, -0.0124041131, -0.012700187, -0.0080718603, -0.00433392636, -0.0029936037,
-0.00141249446, -0.00176073564, -0.00381058874, -0.00391665008, -0.00262468588, -0.0035073352,
-0.0044648191, -0.000971926318,
];

/// directly in front (elev 0, az 0 deg): symmetric ears (ITD/ILD ~ 0); externalized by the room, not the HRIR. (right ear)
#[rustfmt::skip]
pub static HRIR_FRONT_R: [f32; 140] = [
0.000340982282, -0.000763947028, 0.00207501603, -0.00339426752, 0.0046336907, -0.0045335372,
0.00334706064, -0.00078216102, -0.00338201132, 0.00721562328, -0.0105370702, 0.0124404011,
0.0036879757, 0.330893278, 0.497235686, -0.330368578, -0.262691677, 0.197592556,
-0.343059212, 0.000140580712, 0.629683673, 0.245194376, 0.249101222, 0.880763531,
0.708123326, -0.416255772, -0.448323458, 0.295655787, -0.241362453, -0.99000001,
-0.494995445, 0.0367155224, -0.309650779, -0.450296581, 0.0441817865, 0.186088905,
-0.0039119022, 0.0724582821, 0.27703321, 0.253362447, 0.104668833, 0.138077989,
0.163695052, 0.00751799671, -0.0709681362, 0.0373516977, 0.067816332, -0.0667965785,
-0.113686837, -0.074272193, -0.0815163925, -0.136276767, -0.181753516, -0.174636602,
-0.148763433, -0.120023414, -0.0555091985, -0.00135979545, 0.0081104394, 0.0176553745,
0.0521977134, 0.0906597376, 0.0945633352, 0.0668284819, 0.0491707325, 0.0417161435,
0.0225308612, -0.00797027443, -0.0177067406, -0.0176419336, -0.0423058718, -0.0560855865,
-0.0462850593, -0.0513028018, -0.0627918318, -0.0521160364, -0.0376713425, -0.0400579162,
-0.0373373739, -0.014820857, 0.00213954807, 0.00693662651, 0.0142490864, 0.0284014959,
0.0378466994, 0.0266798735, 0.00742105301, -0.0021313203, -0.000762633164, -0.00390467537,
-0.0179085564, -0.0206425022, -0.0182003584, -0.0249187145, -0.0257451199, -0.0168525074,
-0.0107294386, -0.0122037325, -0.00972437207, -0.000649809954, -0.00248795981, -0.0152560435,
-0.0134846494, 0.00045949468, 0.00531493034, 0.00201972504, 0.00151254574, 0.00206802203,
-0.00470342115, -0.0100477273, -0.00801735837, -0.0103391549, -0.0132979322, -0.0122729419,
-0.0136826048, -0.0166577827, -0.013020358, -0.00313488767, 0.00420361478, 0.00422472041,
-0.000562631409, -0.00304932427, -0.00226996141, -0.00652968278, -0.0134739643, -0.0132081471,
-0.0106624281, -0.0124041131, -0.012700187, -0.0080718603, -0.00433392636, -0.0029936037,
-0.00141249446, -0.00176073564, -0.00381058874, -0.00391665008, -0.00262468588, -0.0035073352,
-0.0044648191, -0.000971926318,
];
Loading
Loading