I'm looking for a quick-and-dirty way of converting something close to a sine wave to a narrow pulse wave. Please see the image: a low bass note played through a broken transformer. I'm trying to re-create the effect, preferably using discrete components.
There is a way to convert a cosine and sine waves into a pulse. I do this in RF.
First of all you have to have both real and imaginary waves. We start with just a real wave and then perform a complex multiply. After some digital filtering you get both real and imaginary waves. For my project there are about 2 or 3 cycles at some frequency.
From trigonometry, cosine^2 + sine^2 = 1;
Your perform this equation on each sample.
This will give you a pulse.