![]() |
The sound effect thread - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: How-To & Tutorials (https://www.boriel.com/forum/forumdisplay.php?fid=13) +---- Thread: The sound effect thread (/showthread.php?tid=1891) |
The sound effect thread - worcestersource - 02-19-2022 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 - 02-19-2022 A "classic" one made with beeps (will disrupt your interruptions a bit): Code: SUB explosion RE: The sound effect thread - Jbizzel - 02-20-2022 I use this white noise one all the time... Code: SUB noise () RE: The sound effect thread - worcestersource - 02-23-2022 Fantastic effect! Steve |