Yes, I know sound elements like NOTE have been suggested before and rejected for valid reasons, but this element is different. Instead of using the code to generate sound, sound files (.wav) are packaged with the game.
A helpful link on how to play these sound files with SDL2/C++: https://soundprogramming.net/programming/tutorial-using-sdl2-and-sdl_mixer-to-play-samples/. (This tutorial says it's for Linux, but it also mentions that using the right libraries, it can be converted for windows.)
Another tutorial here: https://gigi.nullneuron.net/gigilabs/playing-a-wav-file-using-sdl2/
A button in the top right labeled "S" could be added to enable/disable sound.
BEEP - Sound Effects
Characteristics:
- Color: rgb(167, 181, 170)
- Section: Powered Materials
- Description: "Sound Effect, plays sound when sparked".
- It is a solid, and does not melt, akin to FRME.
Description:
- 7 .TMP modes:
- .TMP of 1: Buzzer, makes a buzz/beep sound when sparked by any conductor. (https://freesound.org/search/?q=buzzer)
- .TMP of 2: Bell/Chime, makes a chime sound when sparked by any conductor. (https://freesound.org/search/?q=chime)
- .TMP of 3: Siren, makes a siren sound when sparked by any conductor.
(https://freesound.org/search/?q=siren)
- .TMP of 4: Laser, makes a phaser/laser sound when sparked by any conductor. (https://freesound.org/search/?q=laser)
- .TMP of 5: Gunshot, makes a gunshot sound when sparked by any conductor. (https://freesound.org/search/?q=gunshot)
- .TMP of 6: Bang/Explosion, makes a loud bang/explosion sound when sparked by any conductor. (https://freesound.org/search/?q=explosion)
- .TMP of 7: Machinery, makes a hydraulic/machinery sound when sparked by any conductor.
(https://freesound.org/people/Lewente/sounds/393398/)
- .TMP2 controls delay, or the time between played samples in frames. For example, a delay of 1000 means
that you have to wait 1000 frames to play another sound right after you played one.
Uses:
- Sound effects! You can make your save more immersive. For example, if you make a bank, you can have a siren sound effect when the alarm goes off.
- Jumpscares/Pranks (yes, this is inevitable with saves called "Turn your volume to the max" and they're just filled with BEEP set to the "Explosion" sound.)!
- Interactive saves! For example, if you make a quiz game, you can have a "Buzzer" sound play when the player gets an answer wrong, and a "Chime" sound play when the player gets the question correct.
That would be too complex. I suggested a NOTE element like that before, and while people liked it, nothing came of it.
Also, since my suggestion is sample based, to have all of those instruments (and gradients too?) would mean hundreds of samples, which would take up a lot of space.
Bumping This Forum Post
I'm actually not sure if this BEEP element will be added. Sound elements have been rejected, but the rejection note says, "Perhaps the best that can be done is some element that plays a note sound when sparked. Entire realistic sounds for a few random reactions would not sound good though.".
It should be less work for the developers in this case; I provided a tutorial for playing .WAV files in SDL2, and I provided links to where royalty-free sound effects could be found.
It would be nice for a developer to respond and give their thoughts about this element.