PUZZLE #5199: Wave Superposition Cipher (diff 5)
A sampled audio waveform containing 5 superimposed sine waves. Perform spectral analysis (FFT) to find frequency peaks, compute semitone intervals between adjacent peaks, and map each interval to a letter (4 letters).
DATA
| Difficulty |
5
|
| Sample Rate |
4000
|
| Duration |
0.25
|
| Num Frequencies |
5
|
| Waveform |
0.5014, -0.7827, 1.3344, 0.6067, -2.7256, -0.5744, 2.2388, 0.6942, -0.7804, -0.5442, 0.574, 0.0047, -1.4125, 0.8048, 1.342, -1.9609, 0.0642, 2.7146, -0.928, -2.1705, 0.2419, 0.5382, 0.8498, 0.4402, -0.789, -0.0224, -0.118, -0.4756, 0.6017, -0.0877, -0.3527, 0.5651, 0.114, 0.5871, 0.0649, -2.6418, 0.0308, 3.083, -0.492, -1.4683, 1.0448, -0.049, -1.0909, 0.1699, 0.7294, 0.0604, -1.0717, 0.6412, 2.166, -1.5393, -2.4644, 1.3686, 0.9835, -0.3145, 0.804, -0.4886, -0.8766, 0.5886, -0.2945, -0.1416, 0.6325, -0.5814, 0.1576, 1.1729, -0.1442, -1.2321, -1.2708, 0.7683, 2.4168, -0.8948, -1.5716, 1.6103, -0.3281, -1.8419, 1.5019, 0.7784, -1.6074, 0.1817, 1.5662, 0.3588, -1.6682, -1.5282, 1.4466, 1.271, -0.7919, 0.4823, 0.0739, -1.3508, 0.5503, 0.4126, -0.7586, 0.6118, -0.0057, -0.2629, 1.5487, -0.5055, -2.4463, 0.2697, 1.7531, 0.622, -0.7301, -0.6755, 0.899, -0.3914, -1.4446, 1.6657, 0.671, -2.2581, 1.0823, 2.2337, -1.6318, -1.7402, 0.3024, 0.8271, 0.8923, -0.2344, -0.3138, 0.1551, -0.9032, 0.0983, 0.9573, -0.7364, -0.0767, 0.7072, -0.1283, 0.732, -0.6462, -2.5406, 1.1421, 2.4539, -1.0291, -0.73, 0.7356, -0.3731, -0.7155, 0.0747, 0.9311, -0.04, -1.4681, 1.4043, 1.9341, -2.5746, -1.6824, 1.864, 0.4054, -0.1113, 0.6739, -0.7345, -0.493, 0.1847, -0.1897, 0.5329, -0.0772, -0.6499, 0.9597, 0.624, -0.5429, -0.9436, -1.23, 1.3632, 2.1592, -1.6263, -0.8236, 1.5944, -1.1572, -1.0871, 1.7015, 0.1386, -1.2704, 0.3662, 1.4947, 0.2626, -2.2805, -0.9873, 2.2334, 0.3895, -0.8709, 0.9907, -0.5293, -1.2644, 0.9077, 0.0925, -0.4501, 0.4448, -0.3744, 0.4924, 1.1475, -1.4034, -1.5677, 0.5697, 1.3766, 0.7074, -1.0355, -0.5891, 1.1501, -1.0787, -0.9641, 2.1876, -0.3457, -2.0306, 1.9078, 1.4936, -1.9113, -1.3924, 0.4329, 1.3203, 0.4507, -0.6617, 0.4199, -0.2505, -1.3135, 0.8773, 0.7257, -1.1471, 0.3646, 0.6048, -0.0294, 0.7863, -1.3816, -1.8311, 1.8562, 1.532, -0.9953, -0.2682, 0.2054, -0.2442, -0.5465, 0.0309, 1.3107, -0.5862, -1.4826, 2.3052, 1.1429, -3.1977, -0.635, 1.8914, 0.0621, 0.1654, 0.3511, -0.5801, -0.3722, -0.3348, 0.4057, 0.7298, -0.9304, -0.0858, 1.3195, -0.0206, -0.4946, -0.9463, -1.1078, 2.0187, 1.4744, -1.9146, 0.0276, 0.9855, -1.5058, -0.1706, 1.4497, -0.2014, -0.9576, 0.2864, 1.7268, -0.0618, -2.8992, 0.0099, 2.4883, -0.5371, -0.3886, 1.2028, -1.1161, -0.8996, 0.94, 0.0245, -0.1001, -0.0636, -0.2579, 1.1423, 0.2992, -1.6794, -0.7556, 0.5468, 1.2837, 0.7712, -1.4326, -0.0975, 0.9836, -1.5789, -0.014, 2.1452, -1.218, -1.2674, 2.1915, 0.7835, -1.8273, -1.3512, 0.6977, 1.6567, -0.325, -0.5624, 0.9653, -1.0178, -1.1855, 1.596, 0.1472, -1.1708, 0.6746, 0.3376, 0.2742, 0.337, -1.8616, -0.784, 1.9301, 0.7241, -0.578, -0.2893, -0.1793, 0.0291, -0.6453, 0.295, 1.4679, -1.3129, -0.9052, 2.8617, -0.0571, -3.1296, 0.2821, 1.5705, 0.0558, 0.1428, 0.0005, -0.2729, -0.6236, -0.5945, 1.2012, 0.3195, -1.468, 0.7151, 1.202, -0.5558, -0.3452, -1.136, -0.5417, 2.3257, 0.555, -1.5934, 0.5423, 0.1305, -1.2088, 0.3866, 0.9391, -0.2199, -0.876, 0.266, 2.0074, -0.8495, -3.045, 1.1895, 2.0581, -1.1691, 0.2803, 0.8899, -1.481, -0.4727, 0.8009, 0.2656, -0.0533, -0.6427, 0.3993, 1.4317, -0.7263, -1.3631, -0.1425, 0.2398, 1.5196, 0.4186, -1.6064, 0.4396, 0.3869, -1.6329, 0.9269, 1.5, -1.7023, -0.3624, 1.9572, 0.2306, -1.7903, -1.3235, 1.3689, 1.565, -1.1048, 0.0905, 1.0242, -1.8798, -0.5246, 1.9175, -0.4333, -0.8913, 0.6809, 0.3516, 0.5813, -0.4342, -1.8651, 0.2427, 1.466, 0.3746, -0.0823, -0.6762, -0.2093, 0.1906, -0.8426, 0.8078, 1.2472, -1.9592, 0.0298, 2.8441, -1.2306, -2.6018, 0.8119, 1.2897, 0.2094, -0.0853, -0.004, 0.0823, -1.2206, -0.2169, 1.9151, -0.5582, -1.4486, 1.4415, 0.701, -0.7419, -0.3079, -1.2674, 0.1704, 2.136, -0.2761, -0.9338, 0.4454, -0.5594, -0.5862, 0.5732, 0.5706, -0.054, -1.0604, 0.6193, 2.0883, -1.8809, -2.5794, 2.1542, 1.226, -1.2039, 0.7781, 0.2867, -1.4133, -0.296, 0.6987, 0.6358, -0.4858, -0.9572, 1.3182, 0.9692, -1.4503, -0.6713, -0.0583, 0.2237, 1.6933, -0.1116, -1.4006, 0.7081, -0.3468, -1.1468, 1.5502, 0.5512, -1.5868, 0.3058, 1.5087, 0.1113, -1.9533, -1.1834, 2.124, 0.9707, -1.4747, 0.9041, 0.5236, -2.3102, 0.3893, 1.7775, -0.7479, -0.6185, 0.4612, 0.637, 0.5314, -1.3276, -1.2388, 0.871, 0.7532, 0.515, 0.1099, -1.0699, 0.0559, 0.072, -0.814, 1.3821, 0.5094, -2.1261, 1.0738, 2.1318, -1.9092, -1.8626, 0.9503, 1.2408, 0.2039, -0.5269, 0.3714, -0.0032, -1.8472, 0.6356, 2.0565, -1.5046, -0.8819, 1.7864, 0.1549, -0.6536, -0.5141, -1.0921, 0.8963, 1.4891, -0.4618, -0.2314, -0.1272, -0.7606, 0.114, 0.3895, 0.4908, -0.063, -1.2246, 1.2471, 1.7357, -2.7632, -1.5112, 2.5267, 0.4107, -0.8362, 0.8849, -0.1666, -1.2161, -0.3147, 0.8953, 0.9471, -1.2434, -0.6975, 2.0505, 0.0688, -1.7258, -0.0781, -0.1967, 0.4754, 1.6732, -0.6373, -0.885, 0.5326, -0.8831, -0.2581, 1.5191, -0.2143, -1.0678, 0.4462, 1.1997, 0.0063, -2.3202, -0.6053, 2.6631, 0.0635, -1.359, 1.4908, -0.4176, -2.1976, 1.1151, 1.3356, -0.773, -0.6002, 0.3559, 1.1996, -0.0605, -1.8568, -0.1638, 0.8714, 0.2309, 0.8942, -0.1928, -1.2908, 0.3683, -0.2139, -0.437, 1.6708, -0.4436, -1.6513, 1.7653, 1.1618, -2.0091, -1.263, 0.8441, 1.3834, -0.0833, -0.7062, 0.9255, -0.6118, -2.0306, 1.6772, 1.4953, -2.0794, -0.1306, 1.6692, -0.1444, -0.5836, -0.9365, -0.5091, 1.2865, 0.6333, -0.1961, 0.051, -0.8816, -0.3974, 0.5021, 0.047, 0.6457, -0.3301, -1.1579, 1.9103, 0.7874, -3.1198, -0.3204, 2.259, -0.1229, -0.3207, 0.6091, -0.3502, -1.0498, -0.4865, 1.4741, 0.8701, -1.9736, 0.1436, 2.3171, -0.919, -1.4352, 0.2699, -0.347, 0.8315, 1.2512, -0.8707, -0.3712, -0.0554, -0.955, 0.6699, 0.972, -0.6354, -0.4501, 0.3546, 1.167, -0.2321, -2.6006, 0.3254, 2.6346, -0.8355, -0.6327, 1.5584, -1.2769, -1.5953, 1.4665, 1.0035, -0.7184, -0.829, 0.6009, 1.5651, -1.0028, -1.78, 0.7331, 0.4489, 0.1335, 1.2837, -0.6687, -1.1542, 0.4415, -0.4906, 0.2707, 1.3552, -1.1529, -0.7299, 1.8455, 0.259, -1.7319, -0.9547, 0.9595, 1.6099, -0.5847, -0.5371, 1.2525, -1.4798, -1.5992, 2.5042, 0.6248, -2.1817, 0.5068, 1.4021, -0.223, -0.8205, -1.0202, 0.3344, 1.0672, 0.0566, 0.4538, -0.2033, -1.4651, 0.197, 0.4892, -0.0232, 0.7681, -0.8251, -0.66, 2.1899, -0.3266, -2.8338, 0.578, 1.6852, -0.0944, -0.0561, 0.1957, -0.2378, -1.208, -0.3905, 2.1294, 0.1529, -2.4109, 1.1835, 1.9133, -1.6232, -0.9228, 0.3094, -0.1711, 1.0489, 0.6533, -0.5816, -0.2233, -0.8251, -0.3275, 1.1753, 0.1584, -0.5152, -0.1402, 0.178, 1.2923, -0.7625, -2.5848, 1.3107, 2.0338, -1.3319, 0.1572, 1.0668, -1.7547, -0.9274, 1.4691, 0.9272, -0.7659, -1.1034, 1.2699, 1.4014, -1.9889, -1.0771, 1.2219, -0.2048, 0.4834, 1.2601, -1.1036, -0.8172, 0.2214, -0.3898, 0.9768, 0.6125, -1.3999, 0.1878, 1.3759, -0.2551, -1.3868, -0.9826, 1.3107, 1.5126, -1.1336, 0.0792, 1.0816, -2.235, -0.628, 2.7821, -0.2812, -1.816, 0.8042, 1.1843, -0.1442, -1.3098, -0.8065, 1.1136, 0.3709, 0.0037, 1.0145, -0.9244, -1.456, 0.8026, 0.3025, 0.1177, 0.6391, -1.241, 0.1213, 1.9768, -1.2536, -2.0096, 0.944, 1.1409, 0.0937, -0.1692, 0.0448, -0.095, -1.5124, 0.1219, 2.5715, -0.9685, -2.1235, 2.0792, 1.114, -1.8472, -0.4651, 0.1842, 0.158, 0.9377, 0.2348, -0.0769, -0.5536, -1.2651, 0.6334, 1.0802, -0.4351, -0.0814, -0.1889, 0.21, 1.2909, -1.467, -2.0055, 2.04, 1.1396, -1.1811, 0.7646, 0.2917, -1.6679, -0.3895, 1.3175, 0.9859, -1.1494, -1.1493, 2.0733, 0.7238, -2.5611, -0.0785, 1.1262, -0.5748, 0.8837, 0.9294, -1.2618, -0.568, -0.1567, 0.165, 1.1982, -0.3385, -0.9631, 0.7878, 0.6889, -0.2889, -1.2162, -0.9407, 1.7808, 1.0197, -1.4167, 0.772, 0.3711, -2.5354, 0.4968, 2.4483, -0.877, -1.3236, 0.8205, 1.158, -0.3346, -1.8674, -0.0126, 1.3472, -0.4606, 0.4812, 1.1491, -1.7074, -1.0339, 1.0778, 0.0802, 0.3918, 0.1122, -1.171, 0.9601, 1.2146, -1.7308, -1.0976, 0.9146, 0.9181, 0.3074, -0.4621, 0.1567, -0.2157, -1.8572, 1.0081, 2.4881, -1.9429, -1.346, 2.4383, 0.1904, -1.7091, -0.3155, 0.1936, 0.5404, 0.4364, 0.1953, 0.3871, -1.2923, -1.101, 1.5133, 0.5157, -0.6884, 0.2592, -0.3054, 0.4942, 0.9815, -2.013, -1.0351, 2.1495, 0.3327, -0.6177, 0.7326, -0.434, -1.3622, -0.2094, 1.3754, 1.0064, -1.8178, -0.6437, 2.6541, -0.3844, -2.551, 0.831, 0.6897, -0.5763, 1.1917, 0.4675, -1.1255, -0.7399, -0.3029, 0.9677, 0.8402, -1.0426, -0.1483, 0.8277, 0.0738, -0.0928, -1.3221, -0.5842, 2.1237, 0.27, -1.1566, 1.1779, -0.6121, -2.1933, 1.3908, 1.7558, -1.0701, -1.0511, 0.7453, 1.3993, -0.865, -1.9864, 0.9818, 1.0145, -0.9258, 1.1896, 0.7685, -2.2243, -0.4756, 1.028, 0.2333, 0.47, -0.531, -0.6723, 1.2973, 0.1798, -1.4671, -0.4227
|
| Instructions |
This is a sampled audio waveform created by summing pure sine waves. Each sine wave has a rationally-related frequency (consonant musical interval). To decode:
1. Compute FFT of the waveform to find frequency peaks
2. Apply a Hann window before FFT to reduce spectral leakage
3. Sort peaks by frequency (low to high)
4. For each adjacent pair, compute: semitones = 12 * log2(f2/f1)
5. Round semitones to the nearest integer
6. Map each semitone count to a letter using the table
Concatenate letters in order.
WARNING: Noise floor is present (0.02). Filter frequencies with magnitude below the noise floor estimate.
|
| Semitone To Letter |
{
"0": "A",
"2": "B",
"3": "C",
"4": "D",
"5": "E",
"7": "F",
"8": "G",
"9": "H",
"10": "I",
"11": "J",
"12": "K",
"14": "L",
"15": "M",
"16": "N",
"17": "O",
"19": "P",
"21": "Q",
"22": "R",
"24": "S",
"26": "T",
"28": "U",
"29": "V",
"31": "W",
"33": "X",
"35": "Y",
"36": "Z"
}
|
| Hann Window Formula |
w[i] = 0.5 * (1 - cos(2*pi*i/(n-1)))
|
| Fft Tip |
Sample rate = 4000 Hz (Nyquist = 2000 Hz). All signal frequencies are between 80 Hz and 1900 Hz.
|
| Hint |
5 frequencies → 4 semitone intervals → 4 letters. Apply Hann window, FFT, find peaks, compute log2 ratios.
|
| Answer Format |
single lowercase letter
|
author's note: Pool fill: wave-superposition diff 5
— website sponsored —
[ ad space ]