PUZZLE #4949: Wave Superposition Cipher (diff 6)
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 |
6
|
| Sample Rate |
4000
|
| Duration |
0.25
|
| Num Frequencies |
5
|
| Waveform |
-0.9306, 0.9019, 1.8816, 1.7607, 1.1397, -0.1631, -2.0487, -3.1297, -2.2321, -0.7182, 0.1771, 0.6943, 0.8608, 0.2028, -1.1114, -1.4904, -0.5396, 0.2349, 0.2039, 0.3676, 0.597, 0.0612, -0.2996, 0.5626, 1.896, 2.185, 1.4984, 0.69, -0.3287, -1.5882, -1.8336, -0.2503, 1.4869, 1.8603, 1.5396, 0.7463, -0.8725, -2.7174, -2.9252, -1.6194, -0.1778, 0.3719, 0.8312, 0.721, -0.3607, -1.394, -1.2302, -0.1481, 0.2363, 0.1987, 0.4653, 0.3427, -0.1995, -0.0521, 1.1663, 2.2143, 1.9504, 1.139, 0.2643, -0.9674, -1.9587, -1.2341, 0.6119, 1.8345, 1.807, 1.2768, 0.186, -1.7414, -3.0576, -2.5377, -0.949, 0.0715, 0.6026, 0.8875, 0.3654, -0.9035, -1.4376, -0.7142, 0.1333, 0.2329, 0.2622, 0.4845, 0.0711, -0.3666, 0.3473, 1.7653, 2.1794, 1.6215, 0.845, -0.1345, -1.4529, -1.8666, -0.5796, 1.2348, 1.9142, 1.6596, 0.9935, -0.571, -2.503, -3.0122, -1.8952, -0.3913, 0.3078, 0.7459, 0.8491, -0.0894, -1.2874, -1.2239, -0.2183, 0.2608, 0.2324, 0.4234, 0.3875, -0.2119, -0.2237, 0.9469, 2.1329, 2.0708, 1.2492, 0.4641, -0.6959, -1.8245, -1.5008, 0.2659, 1.6933, 1.8954, 1.4647, 0.4533, -1.409, -2.9379, -2.6966, -1.1678, -0.0583, 0.4471, 0.833, 0.5443, -0.7261, -1.484, -0.7888, 0.0333, 0.2715, 0.2826, 0.4461, 0.1866, -0.395, 0.1558, 1.5591, 2.2338, 1.7504, 0.9516, 0.0318, -1.2795, -1.9592, -0.8448, 1.0254, 1.8646, 1.7516, 1.1269, -0.2488, -2.191, -3.0749, -2.1716, -0.634, 0.1817, 0.6372, 0.789, 0.0876, -1.149, -1.2585, -0.376, 0.2245, 0.2431, 0.2882, 0.4098, -0.1032, -0.3402, 0.7401, 2.017, 2.2656, 1.434, 0.6313, -0.4036, -1.7499, -1.6868, -0.0646, 1.5517, 1.9097, 1.5432, 0.6893, -0.9753, -2.7497, -2.8433, -1.5228, -0.214, 0.3893, 0.8369, 0.5883, -0.4093, -1.3925, -1.0006, -0.0206, 0.3578, 0.2383, 0.4602, 0.1637, -0.3491, -0.0522, 1.3143, 2.3044, 1.9068, 1.1523, 0.2905, -1.0363, -1.994, -1.2159, 0.659, 1.8531, 1.8734, 1.3453, 0.0536, -1.8806, -3.0409, -2.3278, -0.905, 0.0023, 0.5123, 0.7873, 0.2425, -0.9842, -1.4231, -0.4658, 0.2338, 0.2363, 0.2356, 0.4063, -0.0148, -0.4447, 0.4984, 1.8998, 2.3184, 1.6137, 0.7764, -0.1948, -1.5889, -1.8831, -0.3945, 1.319, 1.9065, 1.7134, 0.8922, -0.6746, -2.6114, -2.9456, -1.6915, -0.3876, 0.2647, 0.7175, 0.7151, -0.2566, -1.3327, -1.0584, -0.0654, 0.2619, 0.2544, 0.3446, 0.3209, -0.2918, -0.1559, 1.1668, 2.2708, 2.1173, 1.2832, 0.4105, -0.8244, -1.9695, -1.5367, 0.3587, 1.7357, 1.8314, 1.3602, 0.4001, -1.5249, -2.8948, -2.547, -1.039, -0.0776, 0.4372, 0.7655, 0.3741, -0.7457, -1.3363, -0.6133, 0.1679, 0.3083, 0.2336, 0.3863, -0.0044, -0.4575, 0.1882, 1.7488, 2.3725, 1.7884, 0.9832, -0.0245, -1.367, -2.004, -0.7929, 1.107, 1.9003, 1.734, 1.0866, -0.3863, -2.2906, -2.9732, -1.9171, -0.5336, 0.1055, 0.58, 0.7388, -0.0624, -1.1803, -1.0817, -0.1315, 0.3262, 0.1696, 0.3082, 0.2857, -0.2304, -0.2831, 0.8941, 2.1937, 2.2141, 1.449, 0.5842, -0.6723, -1.8643, -1.733, -0.0544, 1.5529, 1.9085, 1.552, 0.6401, -1.1651, -2.8159, -2.7227, -1.3216, -0.1868, 0.3195, 0.7164, 0.4997, -0.6088, -1.3283, -0.715, 0.1838, 0.3051, 0.1741, 0.3098, -0.013, -0.4685, 0.0729, 1.51, 2.4106, 1.9669, 1.1467, 0.1924, -1.257, -2.0727, -1.1176, 0.8312, 1.8654, 1.7615, 1.2352, -0.0471, -1.941, -2.8845, -2.127, -0.7288, 0.0909, 0.4768, 0.7452, 0.1328, -1.0211, -1.1948, -0.2459, 0.3321, 0.2285, 0.2718, 0.3253, -0.2496, -0.4811, 0.5638, 2.0937, 2.2959, 1.6063, 0.8007, -0.3643, -1.7497, -1.8796, -0.2901, 1.3754, 1.8915, 1.636, 0.859, -0.8055, -2.6106, -2.8459, -1.567, -0.3929, 0.1787, 0.6618, 0.5904, -0.3984, -1.2758, -0.8262, 0.1422, 0.3693, 0.2087, 0.2955, 0.1176, -0.4208, -0.1675, 1.3206, 2.3955, 2.1258, 1.3102, 0.3736, -1.016, -2.028, -1.3644, 0.426, 1.7509, 1.8105, 1.3458, 0.2254, -1.6324, -2.8736, -2.3837, -0.9404, -0.1315, 0.3995, 0.7435, 0.241, -0.8646, -1.263, -0.4373, 0.2584, 0.2718, 0.1555, 0.2766, -0.198, -0.5591, 0.3425, 1.8749, 2.3951, 1.8024, 0.9802, -0.1325, -1.5769, -2.0717, -0.6312, 1.1151, 1.8248, 1.6616, 1.0573, -0.415, -2.3086, -2.9345, -1.8513, -0.542, 0.1117, 0.5846, 0.6441, -0.2003, -1.1697, -0.9336, 0.0301, 0.4074, 0.2437, 0.2673, 0.1064, -0.4212, -0.3911, 1.0869, 2.3054, 2.2209, 1.4416, 0.5858, -0.7535, -2.0065, -1.6912, 0.1291, 1.5852, 1.9031, 1.4938, 0.5433, -1.2692, -2.824, -2.5154, -1.1846, -0.2079, 0.197, 0.6332, 0.3539, -0.7451, -1.321, -0.4891, 0.2678, 0.3492, 0.1826, 0.2539, -0.0973, -0.5506, 0.1351, 1.7256, 2.469, 1.9768, 1.181, 0.119, -1.4212, -2.1554, -1.0029, 0.8599, 1.7398, 1.7464, 1.1675, -0.194, -2.0657, -2.9171, -1.9801, -0.6526, -0.0089, 0.4068, 0.6536, -0.0304, -1.0541, -1.0472, -0.0444, 0.4036, 0.2451, 0.1902, 0.1857, -0.4085, -0.4525, 0.725, 2.2118, 2.3486, 1.6381, 0.7897, -0.4875, -1.9371, -1.8865, -0.2027, 1.3789, 1.8584, 1.6106, 0.7615, -0.9502, -2.636, -2.7007, -1.3819, -0.2952, 0.1946, 0.5605, 0.4776, -0.5403, -1.265, -0.6295, 0.2584, 0.4175, 0.1403, 0.2892, -0.0919, -0.5276, -0.1329, 1.4944, 2.4479, 2.1109, 1.2624, 0.3408, -1.1358, -2.1598, -1.309, 0.6014, 1.797, 1.7517, 1.3476, 0.1689, -1.7648, -2.8588, -2.1777, -0.8984, -0.1228, 0.2956, 0.688, 0.0761, -0.9446, -1.1572, -0.1393, 0.4619, 0.3422, 0.1735, 0.1684, -0.3805, -0.5734, 0.5504, 1.9966, 2.5006, 1.8254, 0.9165, -0.2373, -1.7138, -2.051, -0.5449, 1.1893, 1.8616, 1.6484, 0.9813, -0.5999, -2.3979, -2.737, -1.6401, -0.4779, 0.0898, 0.4287, 0.5451, -0.3677, -1.1849, -0.7735, 0.2476, 0.4737, 0.1765, 0.2208, -0.0007, -0.6029, -0.3098, 1.1656, 2.3721, 2.2811, 1.4467, 0.5473, -0.9672, -2.0857, -1.5107, 0.2385, 1.5755, 1.8093, 1.506, 0.527, -1.3817, -2.8503, -2.4092, -1.0833, -0.1621, 0.1627, 0.557, 0.2771, -0.808, -1.1113, -0.3229, 0.4449, 0.3042, 0.1975, 0.1707, -0.3103, -0.7137, 0.2702, 1.9282, 2.5241, 1.9677, 1.0884, -0.0055, -1.5184, -2.1385, -0.8849, 0.9123, 1.776, 1.6796, 1.1996, -0.2166, -2.1576, -2.7992, -1.8239, -0.6452, -0.0606, 0.3866, 0.6301, -0.1722, -1.095, -0.9145, 0.1596, 0.4638, 0.2838, 0.1989, 0.048, -0.5098, -0.4857, 0.962, 2.3622, 2.3896, 1.6117, 0.757, -0.6388, -1.9703, -1.8599, -0.1033, 1.4641, 1.778, 1.5649, 0.725, -1.0546, -2.6697, -2.5667, -1.2885, -0.3105, 0.1243, 0.5313, 0.3705, -0.5808, -1.1517, -0.4214, 0.4712, 0.3729, 0.2128, 0.1476, -0.2506, -0.7678, 0.024, 1.641, 2.4935, 2.1418, 1.3461, 0.2117, -1.2727, -2.1585, -1.2276, 0.6195, 1.6622, 1.7445, 1.2957, 0.1101, -1.8583, -2.8089, -2.0517, -0.7764, -0.1707, 0.2546, 0.5207, -0.0204, -1.0456, -0.9778, 0.0363, 0.5654, 0.292, 0.1701, 0.0512, -0.5017, -0.5895, 0.6864, 2.142, 2.4824, 1.8133, 0.9476, -0.38, -1.8695, -2.0063, -0.4712, 1.2645, 1.7704, 1.6344, 0.9771, -0.6977, -2.4933, -2.6343, -1.4104, -0.4825, -0.0691, 0.4089, 0.3839, -0.4769, -1.1629, -0.5344, 0.4407, 0.5054, 0.2229, 0.1816, -0.1289, -0.7305, -0.2578, 1.398, 2.5367, 2.3022, 1.4792, 0.4593, -1.0432, -2.2114, -1.4796, 0.3044, 1.5736, 1.7246, 1.4082, 0.3606, -1.5135, -2.8118, -2.1825, -0.9816, -0.2056, 0.1054, 0.5261, 0.115, -0.8916, -1.0475, -0.0852, 0.5485, 0.3928, 0.1418, 0.0989, -0.4828, -0.7582, 0.3137, 2.0039, 2.5742, 2.0047, 1.1393, -0.1433, -1.7123, -2.1874, -0.7815, 0.9749, 1.7542, 1.6965, 1.1403, -0.3466, -2.199, -2.7342, -1.6665, -0.5725, -0.0937, 0.2845, 0.4458, -0.2876, -1.1569, -0.6543, 0.3352, 0.492, 0.2947, 0.1992, -0.1209, -0.7146, -0.4905, 1.0888, 2.4674, 2.4191, 1.7298, 0.6969, -0.7486, -2.1543, -1.7265, -0.0149, 1.3612, 1.7161, 1.5338, 0.581, -1.1772, -2.6681, -2.341, -1.1472, -0.3408, 0.0141, 0.4685, 0.2296, -0.7202, -1.1003, -0.2381, 0.5324, 0.4118, 0.2278, 0.0752, -0.3636, -0.8193, 0.1249, 1.7949, 2.6093, 2.1305, 1.3127, 0.1474, -1.4472, -2.2604, -1.0607, 0.748, 1.6279, 1.6819, 1.2832, -0.0552, -1.9235, -2.684, -1.8325, -0.7054, -0.1851, 0.164, 0.4799, -0.162, -0.9806, -0.7614, 0.3188, 0.6017, 0.2859, 0.1842, -0.0829, -0.6633, -0.6003, 0.8229, 2.2864, 2.5472, 1.8212, 0.947, -0.5295, -1.9908, -2.0224, -0.258, 1.2772, 1.7147, 1.5833, 0.9163, -0.8212, -2.4353, -2.5274, -1.269, -0.4266, -0.0467, 0.3395, 0.2961, -0.6299, -1.1033, -0.3356, 0.567, 0.5672, 0.2341, 0.0586, -0.3409, -0.8154, -0.1959, 1.5705, 2.6195, 2.2989, 1.556, 0.4278, -1.2116, -2.2964, -1.4011, 0.4422, 1.4845, 1.6349, 1.4394, 0.2563, -1.6068, -2.6584, -2.0294, -0.8509, -0.3042, 0.0698, 0.3755, 0.0001, -0.9048, -0.9018, 0.135, 0.6329, 0.4088, 0.1885, -0.0421, -0.5697, -0.777, 0.4342, 2.1535, 2.562, 1.9969, 1.1714, -0.195, -1.7863, -2.0674, -0.5966, 0.9919, 1.6476, 1.6268, 1.0417, -0.4586, -2.3128, -2.5919, -1.5072, -0.5466, -0.0733, 0.2469, 0.3347, -0.4198, -1.1046, -0.4535, 0.5182, 0.6579, 0.2378, 0.144, -0.2635
|
| 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.03). 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 6
— website sponsored —
[ ad space ]