![]() |
The sound effect thread - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: How-To & Tutorials (https://forum.boriel.com/forumdisplay.php?fid=13) +---- Thread: The sound effect thread (/showthread.php?tid=1891) |
The sound effect thread - worcestersource - 2022-02-19 Hello everyone, I thought this would be a nifty place to pop some routines to make sound effects without resorting to asm. Code: sub soundBwop() Which makes a nice 'bwop' sound. it'll also change your border colour, so add the border value to the out statement to stop it changing colour. For example, for the a blue border: Code: out 254, (y * 8) + 1 You can play around with this, such as changing the 16 for an 8, or making y count down so the loop duration gets longer each time. Steve RE: The sound effect thread - boriel - 2022-02-19 A "classic" one made with beeps (will disrupt your interruptions a bit): Code: SUB explosion RE: The sound effect thread - Jbizzel - 2022-02-20 I use this white noise one all the time... Code: SUB noise () RE: The sound effect thread - worcestersource - 2022-02-23 Fantastic effect! Steve |