27constexpr int ResLength = 0x10;
28using res_array_t = std::array<unsigned short, ResLength>;
30#if __cplusplus > 202302L
33 constexpr int CRSID_FILTERTABLE_RESOLUTION = 12;
34 constexpr int Magnitude = (1 << CRSID_FILTERTABLE_RESOLUTION);
37 constexpr auto createRes8580()
41 for (
int i=0; i<ResLength; i++)
43 arr[i] = (std::exp2((4 - i) / 8.0)) * Magnitude;
50 constexpr auto createRes6581()
54 for (
int i=0; i<ResLength; i++)
56 arr[i] = (i>5 ? 8.0 / i : 1.41) * Magnitude;
62 static constexpr auto Resonances8580 = createRes8580();
63 static constexpr auto Resonances6581 = createRes6581();
67 static const res_array_t Resonances8580 =
70 0x16A0,0x14BF,0x1306,0x1172,0x1000,0x0EAC,0x0D74,0x0C56,0x0B50,0x0A5F,0x0983,0x08B9,0x0800,0x0756,0x06BA,0x062B,
75 static const res_array_t Resonances6581 =
78 0x168F,0x168F,0x168F,0x168F,0x168F,0x168F,0x1555,0x1249,0x1000,0x0E38,0x0CCC,0x0BA2,0x0AAA,0x09D8,0x0924,0x0888,