Shop OBEX P1 Docs P2 Docs Learn Events
Does anyone have a good FREQOUT sound for a.... — Parallax Forums

Does anyone have a good FREQOUT sound for a....

denodeno Posts: 242
edited 2007-09-15 02:41 in BASIC Stamp
Bell.· I need a good·sounding bell sound.

Thanks...Deno

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2007-09-14 22:33
    Since FREQOUT doesn't have direct control over attack and decay dynamics, it's hard to get a good bell sound. However, by selecting two frequencies very close together, attack/decay dynamics can be approximated over short time spans, due to the beat phenomenon the two frequencies produce. Here's the best I could come up with:

    FREQOUT SpeakerPin, 500, 500, 501
    
    
    


    It's more like an elevator bong as it passes each floor, rather than a clang.

    -Phil
  • TechnoRobboTechnoRobbo Posts: 323
    edited 2007-09-15 02:41
    No, but I have a bad one. Pretty good illusion with piezo speaker.

    'Techno Robbo's

    'Train bell

    ' {$STAMP BS2}
    ' {$PBASIC 2.5}

    OP· CON 12
    i VAR Byte
    OUTPUT oP
    DO
    · FOR i = 10 TO 120
    ··· PWM OP,i,1
    · NEXT
    LOOP


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Have Fun


    TR

    Post Edited (TechnoRobbo) : 9/15/2007 7:55:18 PM GMT
Sign In or Register to comment.