Sorry for the un-clear question.
What I want to build is an electronics Piano (toy).
It can generate piano sound , with fade out effect,
able to play/mix 2 voice/note simultaneous.
When above is done, I will add recoding & playback function.
Currently, what I have is using PIC micro to generate the music note.
But it is square wave only, how I do "fade out" and mix atleast 2 notes?
So I am thinking of FM synthesis technique, because it can generate a close to piano sound effect.
I have try PWM & wave table method, but look like my 20Mhz PIC don't have enough house power to do the job, the sound is horrible...may be problem due to my un-optimize C code.
Another idea is interface to a simple analog circuit that can generate
require tone/wave with fade out.
How is actually the electronic piano(toy) generate sound?
Any suggestion?
Thank you very much.