From what I know, FREQOUT command can only play two frequencies at a time. Is there any way to play three or more notes at the same time on BASIC Stamp?
There is no way for the Stamp to play more than two notes at a time without external hardware.
A Propeller is more versatile. There are several frequency synthesis objects in the Propeller Object Exchange one of which can generate pulse streams at frequencies in the audio spectrum with a capacity of 320/<#streams> KHz using one of 8 cogs.
Alternatively, each cog can generate arbitrary waveforms at audio frequencies and transform them in a variety of ways. There's a stereo speech synthesizer that can generate four singing voices positioned at different locations in the stereo field.
If memory serves me - there is someone who actually do a three-tone on a PIC18F4550 microcontroller by using timers and three RC pairs for the sound decay, hence the "chime" effect. The whole program is written in BASIC.
I would not recommend multiple SoundPALs for playing chords. Each uses its own internal RC oscillator for timing, so keeping several of them synchronized would be a challenge.
@Phil...It wouldn't be a easy feat(And it might not work very well), but it could be done. I guess if he was gonna invest 45 dollars in something he might as well get a Propeller.
Comments
There is no way for the Stamp to play more than two notes at a time without external hardware.
A Propeller is more versatile. There are several frequency synthesis objects in the Propeller Object Exchange one of which can generate pulse streams at frequencies in the audio spectrum with a capacity of 320/<#streams> KHz using one of 8 cogs.
Alternatively, each cog can generate arbitrary waveforms at audio frequencies and transform them in a variety of ways. There's a stereo speech synthesizer that can generate four singing voices positioned at different locations in the stereo field.
http://www.parallax.com/StoreSearchResults/tabid/768/txtSearch/soundpal/List/0/SortField/4/ProductID/482/Default.aspx
You could hook up a few of them, and seeing as each one has it's own speaker, they could play chords
-Phil