1-Bit Adventure (Music)

Game Introduction

◼ ◼ ◼ Notes ◼ ◼ ◼ This music was made following the limitations of internal PC "beep" speakers, which was often the only speaker you had if you had a PC in the 1980s. https://en.wikipedia.org/wiki/PC_speaker Those speakers can only generate a square wave tone, and only one tone at a time. Also, the volume has only two levels - on or off. However, the tone frequency can be changed very rapidly, which can be used to give the impression of polyphony (multiple tones played simultaneously). The result is quite rough, but effective, and it can also be used to create some interesting sound effects. I made this music in BeepBox, using a single square wave channel. I exported the song as WAV. I imported the sound data by opening the original WAV file in Audacity and exporting it as an unsigned 8-bit WAV file. I set the sample rate to 4000 Hz (very low), because any higher sample rate produced files that were too large for Scratch (more about that later). I also exported an mp3 version (much smaller than WAV files), to use as the actual audio. Next, I headed to a webpage that lets you convert files to hexadecimal data: https://tomeko.net/online_tools/file_to_hex.php?lang=en (I had to uncheck the first option and check the second) I copied the hexadecimal data into a text file and saved it. Now I only needed to make some changes in the Scratch project. I opened up the project, showed the WAVE DATA list, right clicked the list on the stage, chose "import", and chose the text data I saved previously. I also changed the SAMPLE RATE value to 4000, to match the sample rate I chose when I exported the WAV file in Audacity. I imported the mp3 file, checked the sound length (171.20 sec), and entered that number into the backdrop script. This simply makes the project stop at the appropriate time. Okay, let's talk about the sample rate. 8000 Hz is telephone quality, so 4000 Hz is half the quality of that, which is why the waveforms look a bit weird (low resolution) when rendered. Actually, you can import hex data with much higher sample rate, which produces much nicer waveforms, but then Scratch won't let you save the project. If you want to use a higher sample rate, you'll have to use a shorter sound than this. @Bubsry's original project uses a 60 sec sound and 11025 Hz sample rate. ◼ ◼ ◼ Credits ◼ ◼ ◼ Thanks to @Bubsry for the original project OSCILLOSCOPE: https://scratch.mit.edu/projects/305993737

How To Play

Click the green flag and enjoy the glory of the square waveform (slightly mangled visually) :)

Author

papipupepappa

Category

Game Information

Game Popularity

97 views

Collection Count

11 favorites