Shop OBEX P1 Docs P2 Docs Learn Events
How Can I Play Chords in BASIC Stamp? — Parallax Forums

How Can I Play Chords in BASIC Stamp?

BIG BIG ALBIG BIG AL Posts: 7
edited 2010-10-11 18:07 in BASIC Stamp
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?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-10-05 22:54
    No

    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.
  • BIG BIG ALBIG BIG AL Posts: 7
    edited 2010-10-09 18:42
    Alright! Thanks a lot Mr. Green!
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-10-11 07:49
    Although the Basic Stamp can't do it by itself, that might not stop you from buying a couple of these...

    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
  • John A. ZoidbergJohn A. Zoidberg Posts: 514
    edited 2010-10-11 08:46
    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.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-10-11 09:00
    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
  • RavenkallenRavenkallen Posts: 1,057
    edited 2010-10-11 18:07
    @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.
Sign In or Register to comment.