Tone Generator
This mod contains two simple sound generator parts.
Tone Generator V.A.
Variable amplitude, fixed frequency. For sine, square, and sawtooth waveforms, plus white noise. Frequency setting is ignored for noise.
Input Controller controls volume and is clamped between 0 and 2.
(In the original version of the mod, the source sound waves were at 50% amplitude, which heavily limited the maximum volume)
Tone Generator V.F.
Variable frequency, fixed amplitude. For sine, square, and sawtooth waveforms.
Input Controller controls frequency in Hz.
Audio clips generated using Audacity.
Source code button is a link to the GitHub repository containing the assets.
Settings reference: Unity AudioSource
We are not responsible for any damage to health or property that may be caused by this software. Always check your volume settings first, and use the software responsibly. For safety, the sounds aren't very loud compared to other game sounds. (Note that if multiple Tone Generator blocks are used, the sound will be louder.)
Demonstrators
MIDI to Tone Generator Converter (MID2TGVA)
Repository (GitHub)
Dichromatic Lotus Butterfly ~ Ancients | Aircraft (SP) | Video (SP)
Tomboyish Girl in Love | Aircraft (SP)
Multi-Input Labs
Lab 1 | Aircraft (SP)
This demonstrates how to use one type of Tone Generator as a slave input for another type of Tone Generator, allowing production of sounds with variable amplitude and frequency.
Version History
210520 > Version 1.3
- [Addition] Multi-Input System. Allows the control of amplitude and frequency of a single waveform at the same time.
- [Improvement] The type of block ("Variable Amplitude" or "Variable Frequency") is now displayed under the part settings.
210513 > Version 1.1b
- [Fix] Now correctly shows up as 1.1 in game
- [Change] Possible small changes
210508 > Version 1.1
- [Change] Increase in the available amplitude range from (0..1) to (0..2)
- [Improvement] Audio sources now automatically pause when their frequency or amplitude are too low.
- Note: No backwards compatibility for aircraft using Tone Generator V.A. that set the input greater than 1.
- Note: The version still shows up as 1.0 in game.
1.0>
- Original release. Download this old version here.
@windshifter1 agreed
@hpgbproductions Would you be willing to make a mod for it, or at least try? It would be a truly transformative mod, one that is desperately needed in-game
@windshifter1 no sound files
@hpgbproductions Can this play sound files in SP to make custom engine sounds and the likes?
im surprised no one used this to make planes with unique sounds have their unique sounds...
@RaptorAerosystemsCorp despair
@TylerWildDog steps to make any simple sfx:
1. Get sound file
2. Use a program that can do a fourier transform of it
3. Implement in SP using VA blocks, and get it sounding right first
4. Implement switches or volume control with funky trees
how can I make a RWR?
how do it works???? i can't make anything!
plz do a tutorial video because i not a coder and i want only play music or cool noise in the game
thx
@hpgbproductions Okay, I understand.
@PlaneFlightX please don't include a copy of this mod in your mod
However, you can add different sfx blocks if you make them.
Hi, this mod has been very useful for realistic sounds in the SWL-120, and I have a question. Would it be okay if I use the source code so I can add this mod to the SWL-120's own mod? It would make it so the plane only requires one mod. If this were to happen I would credit you anywhere I publish the plane and other content relating to the plane.
im trying to make better lock on sounds
@hpgbproductions Did it, got it working. Thanks.
@PlaneFlightX set spatial blend to 1
I didn't know what it does before, but, this is an important setting
I tried that now, and I didn't notice any difference.
Note this is when I zoomed out in orbit or chase view.
@hpgbproductions Okay, thank you, will do.
@PlaneFlightX set the minimum and maximum distance
Little question, how do I make it so the volume decreases as I zoom out? Every other part in the game does it, why not this?
Put it in a missile and play the final countdown
Noteblock
@ledownloader123 ALSO HELL YEA I AM A NOOB, IM GLAD YOUR CORRECT, YOUR COMMENT IS GETTING AN UPVOTE, I LOVE IT WHEN PEOPLE ARE CORRECT!
@ledownloader123 NO I JUST WANTED AN ANSWER TO MY QUESTION AND I GOT AN ANSWER SO I ALREADY DID SHUT UP!
@NikoFox SHUT UP NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
How close are we on getting a vocaloid mod?