Shop OBEX P1 Docs P2 Docs Learn Events
Goat Sound — Parallax Forums

Goat Sound

ArchiverArchiver Posts: 46,084
edited 2001-04-25 04:13 in General Discussion
Hi..
I was doing a project using BS2-SX, and I needed to generate a
goat's sound.. you know..a short "maaaaaaa'" I know this sounds
stupid but it will really enhance my project. I have another BS2-SX
that I can totaly use for this, and I have the wave file (about 1
second) is there a way to digitze that file into a lookup table for
the basic stamp to use to generate the proper FREQOUT ?
Thanks

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-04-24 14:39
    Good Morning

    What you could do is pick up a digital record/playback module from
    RatShack for about ten dollars. This module includes a speaker/mic
    and rec/play pushbuttons. I believe this module can store 20 seconds
    of audio.

    Interfacing this module to the BS2 ia a piece of cake. An
    optoisolator is all you need.

    Good Luck

    Rich
    http://geocities.com/rbc1956
    iceninevt@y...



    --- In basicstamps@y..., prince_of_egypt@y... wrote:
    > Hi..
    > I was doing a project using BS2-SX, and I needed to generate a
    > goat's sound.. you know..a short "maaaaaaa'" I know this sounds
    > stupid but it will really enhance my project. I have another BS2-SX
    > that I can totaly use for this, and I have the wave file (about 1
    > second) is there a way to digitze that file into a lookup table for
    > the basic stamp to use to generate the proper FREQOUT ?
    > Thanks
  • ArchiverArchiver Posts: 46,084
    edited 2001-04-25 04:13
    >Hi..
    > I was doing a project using BS2-SX, and I needed to generate a
    >goat's sound.. you know..a short "maaaaaaa'" I know this sounds
    >stupid but it will really enhance my project. I have another BS2-SX
    >that I can totaly use for this, and I have the wave file (about 1
    >second) is there a way to digitze that file into a lookup table for
    >the basic stamp to use to generate the proper FREQOUT ?
    >Thanks

    The BS2 is too slow to play back a wave file. Rich suggested that
    you use a sound recorder chip, and that would certainly be a good way
    to get a realistic sound.

    If you really want to do it with freqout, it will be an
    approximation. But it is fun to experiment, and you _can_ get
    suggestive results. Try experimenting with a beat note to get the
    aaaaaa sound at about 4 beats per second at the best frequency, say
    500 hertz (I don't know!?):
    freqout 0,2000,500,504 ' 2 seconds, 500hz, 4 hz beat note.
    If you want it to fall in pitch, then break it down:
    bleat:
    freqout 0,500,500,504 ' .5 sec, 500hz, 4 hz beat note.
    freqout 0,500,490,494 ' .5 sec, 490hz, 4 hz beat note.
    freqout 0,500,480,484 ' .5 sec, 480hz, 4 hz beat note.
    freqout 0,500,470,474 ' .5 sec, 470hz, 4 hz beat note.

    I don't know about the "m" to start, but, who's listening?

    -- Tracy
Sign In or Register to comment.