Victor
Joined: 27 Oct 2003 Posts: 12
|
Polyphonic sound |
Posted: Wed Oct 27, 2004 9:13 pm |
|
|
Is it possible to play polyphonic sound with 16F628 or even 16F630 (no H/W PWM)?
I have try Ex_tone.c, but it is single tone and not so impress to me.
I have try PICSound by Roman Black, but it require a lot of memory.
Search on the forum, mark r. hahn provide a method by cycle thru the tables at the appropriate rates; add the samples from each table together
and dump the result to some kind of D to A device. (or PWM)
const byte square[] = {
0x64,0x64,0x64,0x64,0x00,0x00,0x00,0x00
};
const byte triangle[] = {
0x00,0x16,0x32,0x48,0x64,0x48,0x32,0x16
}
But I like to generate "Jingle bell" sound, if to using above method,
what waveform and rate I need to generate that kind of "bell" sound?
Or can someone show me other possible method on generate "bell" sound? |
|