№
4404
10:00, sound.mov
(3.17MB)
%3Cvideo%20width%3D%22500%22style%3D%22position%3A%20static%3B%20pointer-events%3A%20inherit%3B%20display%3A%20inline%3B%20height%3A%20auto%3B%20max-width%3A%20100%25%3B%20max-height%3A%20100%25%3B%22%20controls%20autoplay%20loop%3E%3Csource%20src%3D%22%2Fbtb%2Fsrc%2F1725863406886-0.mov%22%3E%3C%2Fsource%3E%3C%2Fvideo%3E
got chat gpt to output this:
(128+127*sin(t/10))*((t>>10&3)+1)*(1+cos(t/10))
this was its explnation:
128 + 127 * sin(t / 1000): Generates a sine wave oscillating between 1 and 255. The frequency is scaled so that it fits within the 8 kHz sample rate. t / 1000 adjusts the frequency of the sine wave.
(t >> 10 & 3) + 1: Extracts a 2-bit pattern from t and adds 1 to make sure the result is always non-zero. This introduces variation based on the bitwise manipulation of t.
1 + cos(t / 5000): Adds a cosine modulation factor. The cos(t / 5000) oscillates between -1 and 1, so adding 1 scales it to range from 0 to 2. This modulates the amplitude of the waveform.