3/27/2026 at 6:01:34 PM
Similarly, it's possible to take the derivative of a song. You can use a Fourier transform to express the song's waveform as a series of sin and cosine functions, then take the derivative.Imagine, for the sake of simplicity, you could express the song's waveform with the function 13 * sin(41x).
The derivative of this function is 533 * cos(41x).
Cosine, of course, is just a phase shifted sine, and the constant coefficient inside the function stays the same. So you're not changing anything about the shape of the wave, just stretching it vertically.
This has the effect of mimicking a "high pass filter," amplifying the volume of the highs.
by rappatic
3/27/2026 at 6:48:32 PM
Well, you get the frequency domain derivative. This is the same as scaling the time domain by a linear ramp. Not exactly hugely useful, unless you happen to be in radar.You can take the finite difference with eg np.diff(waveform) though.
by toxik