Guys, I need some help with this. I'm doing a small project for a friend who needs two different drum sounds per ATmega328. 8-bit is ok, the only problem is the envelope, as I can't do in software as it would sound terrible (and it does, I tested) since the whole thing is 8-bits.
The drum sounds already works, using PWM for the output, I can even get 6 voices per chip if I wanted, but that's no the case. I need just 2 voices, so I can use the flash to store longer samples.
If you want to check some of the code of the 6 voices drum sounds, here's the link of the project I created:
https://github.com/Beat707/BeatVoxThere's some youtube videos, just search on google for BeatVox
Now, here's what I want to do, to create the envelope using another PWM output, and have a Transistor(s) take care of the Envelope/VCA. I have seen circuits for VCAs for modular synths, but I want something dirty cheap and simple, to combine both outputs and have the second determinate the volume output. I know that there will be some DC problems, but maybe I could use a third PWM output to add DC as the Envelope lowers.
I will try to draw some pictures later this weekend to show what I have in mind. And yes, each PWM output will have its own filter to convert to a Voltage output, instead of a PWM output.
Anyway, thank you for any help.
Best Regards, WilliamK