Commit a927622a authored by hsd's avatar hsd
Browse files

[add] Vector3Pair trajectory file to ensure that a constant positional offset...

[add] Vector3Pair trajectory file to ensure that a constant positional offset between listener and reference (10, in all axis) gets correctly compensated in REF_VEC otr mode
parent 14de9879
Loading
Loading
Loading
Loading
Loading
+200 −0
Original line number Diff line number Diff line
10.0000,10.0000,10.0000,10.7012,9.9780,9.2874
10.0000,10.0000,10.0000,10.7057,9.9556,9.2929
10.0000,10.0000,10.0000,10.7095,9.9329,9.2985
10.0000,10.0000,10.0000,10.7125,9.9100,9.3041
10.0000,10.0000,10.0000,10.7147,9.8868,9.3097
10.0000,10.0000,10.0000,10.7161,9.8634,9.3155
10.0000,10.0000,10.0000,10.7166,9.8398,9.3212
10.0000,10.0000,10.0000,10.7164,9.8161,9.3270
10.0000,10.0000,10.0000,10.7153,9.7922,9.3328
10.0000,10.0000,10.0000,10.7134,9.7682,9.3387
10.0000,10.0000,10.0000,10.7106,9.7442,9.3446
10.0000,10.0000,10.0000,10.7070,9.7201,9.3506
10.0000,10.0000,10.0000,10.7025,9.6960,9.3565
10.0000,10.0000,10.0000,10.6972,9.6719,9.3626
10.0000,10.0000,10.0000,10.6910,9.6479,9.3686
10.0000,10.0000,10.0000,10.6839,9.6240,9.3748
10.0000,10.0000,10.0000,10.6760,9.6002,9.3809
10.0000,10.0000,10.0000,10.6671,9.5766,9.3871
10.0000,10.0000,10.0000,10.6575,9.5532,9.3933
10.0000,10.0000,10.0000,10.6470,9.5300,9.3996
10.0000,10.0000,10.0000,10.6356,9.5070,9.4059
10.0000,10.0000,10.0000,10.6234,9.4843,9.4122
10.0000,10.0000,10.0000,10.6103,9.4620,9.4186
10.0000,10.0000,10.0000,10.5964,9.4399,9.4250
10.0000,10.0000,10.0000,10.5817,9.4183,9.4314
10.0000,10.0000,10.0000,10.5662,9.3971,9.4379
10.0000,10.0000,10.0000,10.5499,9.3763,9.4444
10.0000,10.0000,10.0000,10.5328,9.3560,9.4510
10.0000,10.0000,10.0000,10.5149,9.3362,9.4576
10.0000,10.0000,10.0000,10.4963,9.3169,9.4642
10.0000,10.0000,10.0000,10.4769,9.2982,9.4708
10.0000,10.0000,10.0000,10.4569,9.2801,9.4775
10.0000,10.0000,10.0000,10.4361,9.2626,9.4842
10.0000,10.0000,10.0000,10.4147,9.2457,9.4910
10.0000,10.0000,10.0000,10.3926,9.2295,9.4977
10.0000,10.0000,10.0000,10.3698,9.2140,9.5045
10.0000,10.0000,10.0000,10.3465,9.1993,9.5114
10.0000,10.0000,10.0000,10.3226,9.1852,9.5182
10.0000,10.0000,10.0000,10.2981,9.1720,9.5251
10.0000,10.0000,10.0000,10.2731,9.1595,9.5321
10.0000,10.0000,10.0000,10.2476,9.1478,9.5390
10.0000,10.0000,10.0000,10.2216,9.1370,9.5460
10.0000,10.0000,10.0000,10.1951,9.1270,9.5530
10.0000,10.0000,10.0000,10.1683,9.1179,9.5601
10.0000,10.0000,10.0000,10.1410,9.1096,9.5671
10.0000,10.0000,10.0000,10.1134,9.1023,9.5742
10.0000,10.0000,10.0000,10.0855,9.0959,9.5813
10.0000,10.0000,10.0000,10.0572,9.0904,9.5885
10.0000,10.0000,10.0000,10.0287,9.0858,9.5957
10.0000,10.0000,10.0000,10.0000,9.0822,9.6029
10.0000,10.0000,10.0000,9.9711,9.0796,9.6101
10.0000,10.0000,10.0000,9.9420,9.0779,9.6173
10.0000,10.0000,10.0000,9.9128,9.0773,9.6246
10.0000,10.0000,10.0000,9.8835,9.0776,9.6319
10.0000,10.0000,10.0000,9.8541,9.0788,9.6392
10.0000,10.0000,10.0000,9.8247,9.0811,9.6465
10.0000,10.0000,10.0000,9.7953,9.0844,9.6539
10.0000,10.0000,10.0000,9.7660,9.0887,9.6613
10.0000,10.0000,10.0000,9.7368,9.0940,9.6687
10.0000,10.0000,10.0000,9.7076,9.1002,9.6761
10.0000,10.0000,10.0000,9.6787,9.1075,9.6835
10.0000,10.0000,10.0000,9.6499,9.1157,9.6910
10.0000,10.0000,10.0000,9.6213,9.1250,9.6985
10.0000,10.0000,10.0000,9.5930,9.1352,9.7060
10.0000,10.0000,10.0000,9.5650,9.1464,9.7135
10.0000,10.0000,10.0000,9.5374,9.1585,9.7210
10.0000,10.0000,10.0000,9.5101,9.1716,9.7286
10.0000,10.0000,10.0000,9.4832,9.1856,9.7361
10.0000,10.0000,10.0000,9.4567,9.2005,9.7437
10.0000,10.0000,10.0000,9.4307,9.2164,9.7513
10.0000,10.0000,10.0000,9.4052,9.2331,9.7589
10.0000,10.0000,10.0000,9.3802,9.2508,9.7666
10.0000,10.0000,10.0000,9.3558,9.2693,9.7742
10.0000,10.0000,10.0000,9.3319,9.2886,9.7819
10.0000,10.0000,10.0000,9.3087,9.3087,9.7895
10.0000,10.0000,10.0000,9.2862,9.3297,9.7972
10.0000,10.0000,10.0000,9.2643,9.3514,9.8049
10.0000,10.0000,10.0000,9.2431,9.3739,9.8126
10.0000,10.0000,10.0000,9.2227,9.3971,9.8203
10.0000,10.0000,10.0000,9.2030,9.4210,9.8281
10.0000,10.0000,10.0000,9.1841,9.4455,9.8358
10.0000,10.0000,10.0000,9.1661,9.4708,9.8436
10.0000,10.0000,10.0000,9.1488,9.4966,9.8513
10.0000,10.0000,10.0000,9.1324,9.5231,9.8591
10.0000,10.0000,10.0000,9.1169,9.5501,9.8669
10.0000,10.0000,10.0000,9.1023,9.5776,9.8747
10.0000,10.0000,10.0000,9.0886,9.6056,9.8825
10.0000,10.0000,10.0000,9.0758,9.6341,9.8903
10.0000,10.0000,10.0000,9.0640,9.6630,9.8981
10.0000,10.0000,10.0000,9.0532,9.6924,9.9059
10.0000,10.0000,10.0000,9.0433,9.7221,9.9137
10.0000,10.0000,10.0000,9.0344,9.7521,9.9215
10.0000,10.0000,10.0000,9.0265,9.7824,9.9294
10.0000,10.0000,10.0000,9.0197,9.8130,9.9372
10.0000,10.0000,10.0000,9.0138,9.8438,9.9451
10.0000,10.0000,10.0000,9.0090,9.8748,9.9529
10.0000,10.0000,10.0000,9.0052,9.9060,9.9607
10.0000,10.0000,10.0000,9.0025,9.9372,9.9686
10.0000,10.0000,10.0000,9.0008,9.9686,9.9764
10.0000,10.0000,10.0000,9.0001,10.0000,9.9843
10.0000,10.0000,10.0000,9.0005,10.0314,9.9921
10.0000,10.0000,10.0000,9.0020,10.0628,10.0000
10.0000,10.0000,10.0000,9.0045,10.0941,10.0079
10.0000,10.0000,10.0000,9.0080,10.1253,10.0157
10.0000,10.0000,10.0000,9.0126,10.1564,10.0236
10.0000,10.0000,10.0000,9.0182,10.1873,10.0314
10.0000,10.0000,10.0000,9.0248,10.2180,10.0393
10.0000,10.0000,10.0000,9.0325,10.2484,10.0471
10.0000,10.0000,10.0000,9.0412,10.2786,10.0550
10.0000,10.0000,10.0000,9.0508,10.3084,10.0628
10.0000,10.0000,10.0000,9.0615,10.3379,10.0706
10.0000,10.0000,10.0000,9.0731,10.3670,10.0785
10.0000,10.0000,10.0000,9.0857,10.3957,10.0863
10.0000,10.0000,10.0000,9.0992,10.4239,10.0941
10.0000,10.0000,10.0000,9.1136,10.4516,10.1019
10.0000,10.0000,10.0000,9.1290,10.4788,10.1097
10.0000,10.0000,10.0000,9.1452,10.5055,10.1175
10.0000,10.0000,10.0000,9.1623,10.5316,10.1253
10.0000,10.0000,10.0000,9.1803,10.5571,10.1331
10.0000,10.0000,10.0000,9.1991,10.5819,10.1409
10.0000,10.0000,10.0000,9.2186,10.6061,10.1487
10.0000,10.0000,10.0000,9.2390,10.6296,10.1564
10.0000,10.0000,10.0000,9.2601,10.6523,10.1642
10.0000,10.0000,10.0000,9.2819,10.6744,10.1719
10.0000,10.0000,10.0000,9.3044,10.6956,10.1797
10.0000,10.0000,10.0000,9.3276,10.7161,10.1874
10.0000,10.0000,10.0000,9.3514,10.7357,10.1951
10.0000,10.0000,10.0000,9.3758,10.7545,10.2028
10.0000,10.0000,10.0000,9.4008,10.7725,10.2105
10.0000,10.0000,10.0000,9.4264,10.7895,10.2181
10.0000,10.0000,10.0000,9.4524,10.8057,10.2258
10.0000,10.0000,10.0000,9.4790,10.8210,10.2334
10.0000,10.0000,10.0000,9.5060,10.8354,10.2411
10.0000,10.0000,10.0000,9.5334,10.8488,10.2487
10.0000,10.0000,10.0000,9.5612,10.8612,10.2563
10.0000,10.0000,10.0000,9.5893,10.8728,10.2639
10.0000,10.0000,10.0000,9.6178,10.8833,10.2714
10.0000,10.0000,10.0000,9.6465,10.8929,10.2790
10.0000,10.0000,10.0000,9.6755,10.9014,10.2865
10.0000,10.0000,10.0000,9.7046,10.9090,10.2940
10.0000,10.0000,10.0000,9.7340,10.9156,10.3015
10.0000,10.0000,10.0000,9.7635,10.9212,10.3090
10.0000,10.0000,10.0000,9.7931,10.9258,10.3165
10.0000,10.0000,10.0000,9.8227,10.9293,10.3239
10.0000,10.0000,10.0000,9.8524,10.9319,10.3313
10.0000,10.0000,10.0000,9.8821,10.9335,10.3387
10.0000,10.0000,10.0000,9.9117,10.9340,10.3461
10.0000,10.0000,10.0000,9.9413,10.9336,10.3535
10.0000,10.0000,10.0000,9.9707,10.9322,10.3608
10.0000,10.0000,10.0000,10.0000,10.9298,10.3681
10.0000,10.0000,10.0000,10.0291,10.9264,10.3754
10.0000,10.0000,10.0000,10.0580,10.9221,10.3827
10.0000,10.0000,10.0000,10.0867,10.9168,10.3899
10.0000,10.0000,10.0000,10.1150,10.9105,10.3971
10.0000,10.0000,10.0000,10.1431,10.9033,10.4043
10.0000,10.0000,10.0000,10.1708,10.8953,10.4115
10.0000,10.0000,10.0000,10.1981,10.8863,10.4187
10.0000,10.0000,10.0000,10.2250,10.8764,10.4258
10.0000,10.0000,10.0000,10.2515,10.8657,10.4329
10.0000,10.0000,10.0000,10.2775,10.8541,10.4399
10.0000,10.0000,10.0000,10.3030,10.8417,10.4470
10.0000,10.0000,10.0000,10.3280,10.8284,10.4540
10.0000,10.0000,10.0000,10.3524,10.8144,10.4610
10.0000,10.0000,10.0000,10.3763,10.7997,10.4679
10.0000,10.0000,10.0000,10.3995,10.7841,10.4749
10.0000,10.0000,10.0000,10.4222,10.7679,10.4818
10.0000,10.0000,10.0000,10.4441,10.7510,10.4886
10.0000,10.0000,10.0000,10.4654,10.7334,10.4955
10.0000,10.0000,10.0000,10.4860,10.7152,10.5023
10.0000,10.0000,10.0000,10.5059,10.6964,10.5090
10.0000,10.0000,10.0000,10.5251,10.6769,10.5158
10.0000,10.0000,10.0000,10.5435,10.6570,10.5225
10.0000,10.0000,10.0000,10.5611,10.6365,10.5292
10.0000,10.0000,10.0000,10.5780,10.6155,10.5358
10.0000,10.0000,10.0000,10.5940,10.5940,10.5424
10.0000,10.0000,10.0000,10.6093,10.5721,10.5490
10.0000,10.0000,10.0000,10.6237,10.5499,10.5556
10.0000,10.0000,10.0000,10.6373,10.5272,10.5621
10.0000,10.0000,10.0000,10.6500,10.5042,10.5686
10.0000,10.0000,10.0000,10.6619,10.4809,10.5750
10.0000,10.0000,10.0000,10.6729,10.4573,10.5814
10.0000,10.0000,10.0000,10.6831,10.4335,10.5878
10.0000,10.0000,10.0000,10.6924,10.4095,10.5941
10.0000,10.0000,10.0000,10.7008,10.3852,10.6004
10.0000,10.0000,10.0000,10.7083,10.3609,10.6067
10.0000,10.0000,10.0000,10.7150,10.3364,10.6129
10.0000,10.0000,10.0000,10.7207,10.3119,10.6191
10.0000,10.0000,10.0000,10.7256,10.2873,10.6252
10.0000,10.0000,10.0000,10.7296,10.2627,10.6314
10.0000,10.0000,10.0000,10.7328,10.2381,10.6374
10.0000,10.0000,10.0000,10.7351,10.2136,10.6435
10.0000,10.0000,10.0000,10.7365,10.1891,10.6494
10.0000,10.0000,10.0000,10.7371,10.1648,10.6554
10.0000,10.0000,10.0000,10.7368,10.1406,10.6613
10.0000,10.0000,10.0000,10.7357,10.1165,10.6672
10.0000,10.0000,10.0000,10.7338,10.0927,10.6730
10.0000,10.0000,10.0000,10.7311,10.0691,10.6788
10.0000,10.0000,10.0000,10.7275,10.0458,10.6845
10.0000,10.0000,10.0000,10.7232,10.0227,10.6903
10.0000,10.0000,10.0000,10.7181,10.0000,10.6959
+23 −0
Original line number Diff line number Diff line
@@ -159,6 +159,29 @@ def test_ambisonics_binaural_headrotation_refvec_rotating(test_info, in_fmt, out
        }
    )

# This test compares rendering with:
#   ref: a head rotation trajectory with elevation (OTR=NONE)
#   cut: a static head rotation and a reference position trajectory which moves
#        in a way that produces the same acoustic output as the ref head rot trajectory (OTR=REF_VEC)
#        which also contains a fixed position offset between listener and reference position (which
#        gets compensated in the REF_VEV OTR modes)
@pytest.mark.parametrize("out_fmt", OUTPUT_FORMATS_BINAURAL)
@pytest.mark.parametrize("in_fmt", INPUT_FORMATS_AMBI)
def test_ambisonics_binaural_headrotation_refvec_rotating_fixed_pos_offset(test_info, in_fmt, out_fmt):
    compare_renderer_args(
        test_info,
        in_fmt,
        out_fmt,
        ref_kwargs={
            "name_extension": "refvec_rotating",
            "trj_file": HR_TRAJECTORY_DIR.joinpath("full-circle-with-up-and-down-4s-ccw.csv"),
        },
        cut_kwargs={
            "trj_file": HR_TRAJECTORY_DIR.joinpath("const000.csv"),
            "refvec_file": HR_TRAJECTORY_DIR.joinpath("full-circle-with-up-and-down-4s-fixed-pos-offset-Vector3.csv")
        }
    )

# This test compares rendering with:
#   ref: a reference position trajectory with elevation and REF_VEC_LEV OTR mode (OTR=REF_VEC_LEV)
#   cut: a reference position trajectory without the elevation and REF_VEC OTR mode (OTR=REF_VEC)