Shop OBEX P1 Docs P2 Docs Learn Events
how make simple sound effects like a coin, fanfarias etc. w/o SD cards — Parallax Forums

how make simple sound effects like a coin, fanfarias etc. w/o SD cards

lcyepizlcyepiz Posts: 26
edited 2009-04-18 13:21 in Propeller 1
I traying to make a game , i traying to make sound effects
like coin, gun fire, winner sound, lost sound effects etc
but without SD card, the more simple sound producer.




thank in advance

Comments

  • Ahle2Ahle2 Posts: 1,179
    edited 2009-04-18 04:04
    Make a PSG in PASM, and then let it be controlled by some HUB-ram registers by other cogs.
    About the same way as the 6581/8580 SID or AY/YM chips works.
    It really shouldn't be too hard if you have any experience with PSGs and ASM.


    Example registers:

    Address - function
    $xx00 OSC1 - frequency LSB
    $xx01 OSC1 - frequency MSB
    $xx02 OSC1 - waveform type
    $xx03 OSC1 - duty cycle
    $xx04 OSC1 - volume
    .
    .
    .
    $xx10 OSC2 - frequency LSB
    '
    '
    And so on...
  • Timothy D. SwieterTimothy D. Swieter Posts: 1,613
    edited 2009-04-18 06:26
    The Hydra book discusses sound generation some. The source code is released on the web so you might be able to gather some gems of information from that code.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Timothy D. Swieter, E.I.
    www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
    www.tdswieter.com
  • ColeyColey Posts: 1,110
    edited 2009-04-18 08:43
    Hello Icyepiz and welcome to the forums...

    Try HSS http://forums.parallax.com/showthread.php?p=604722

    It's quite easy to produce nice sound effects, I did an envelope editor some time ago, I'll try and dig it out.

    Regards,

    Coley

    EDIT: Attached is a very simple envelope/waveform editor, I knocked it up to make the sounds for Baggers' Frogger Game wink.gif
    (you'll have to rename the attached file to .zip)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PropGFX - The home of the Hybrid Development System and PropGFX Lite

    Post Edited (Coley) : 4/18/2009 9:20:20 AM GMT
  • Ahle2Ahle2 Posts: 1,179
    edited 2009-04-18 12:45
    @·Coley
    @ Timothy D. Swieter

    Nice !
    This is my first look at the HSS, and it seems like a pretty competent little PSG.
    It's about the same degree of complexity as the PSG in the PC engine.

    I managed to code a complete implementation of it in less than 100 rows of code for my PCe/Turbografx16 emulator.
    That is how simple those PSGs were back in the days (SID is an exception of course)
  • MicrocontrolledMicrocontrolled Posts: 2,461
    edited 2009-04-18 13:21
    You can get a 128K EEPROM and then store the sound files in the extra space that the program doesn't use. You could also try
    to compress the sounds that you need. This post is written assuming that the problem here is space. I, however, would like to know how you make a sound WITH an SD card.
    If you own a Hydra Game Development kit then you can use the source for sound on it. I have attached some sound objects from the Hydra CD. If this is illegal to copy
    please tell me!!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Toys are microcontroled.
    Robots are microcontroled.
    I am microcontrolled.
Sign In or Register to comment.