Profile image

Tone Generator

109k hpgbproductions  4.0 years ago
2,260 downloads
Version 1.3 Part

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.

  • Log in to leave a comment
  • Profile image

    @windshifter1 agreed

    +1 5 months ago
  • Profile image
    16.8k windshifter1

    @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

    +1 7 months ago
  • Profile image

    @windshifter1 no sound files

    7 months ago
  • Profile image
    16.8k windshifter1

    @hpgbproductions Can this play sound files in SP to make custom engine sounds and the likes?

    7 months ago
  • Profile image

    im surprised no one used this to make planes with unique sounds have their unique sounds...

    +1 8 months ago
  • Profile image

    @RaptorAerosystemsCorp despair

    one year ago
  • Profile image

    @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

    +5 1.5 years ago
  • Profile image
    23.7k TylerWildDog

    how can I make a RWR?

    1.5 years ago
  • Profile image

    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

    +5 1.8 years ago
  • Profile image
    49.3k PlaneFlightX

    @hpgbproductions Okay, I understand.

    2.2 years ago
  • Profile image

    @PlaneFlightX please don't include a copy of this mod in your mod
    However, you can add different sfx blocks if you make them.

    2.2 years ago
  • Profile image
    49.3k PlaneFlightX

    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.

    +1 2.2 years ago
  • Profile image
    1,208 Ryder1221

    im trying to make better lock on sounds

    +2 2.2 years ago
  • Profile image
    49.3k PlaneFlightX

    @hpgbproductions Did it, got it working. Thanks.

    2.6 years ago
  • Profile image

    @PlaneFlightX set spatial blend to 1
    I didn't know what it does before, but, this is an important setting

    2.6 years ago
  • Profile image
    49.3k PlaneFlightX

    I tried that now, and I didn't notice any difference.
    Note this is when I zoomed out in orbit or chase view.

    2.6 years ago
  • Profile image
    49.3k PlaneFlightX

    @hpgbproductions Okay, thank you, will do.

    2.6 years ago
  • Profile image

    @PlaneFlightX set the minimum and maximum distance

    2.6 years ago
  • Profile image
    49.3k PlaneFlightX

    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?

    2.6 years ago
  • Profile image
    6,593 Samfpanzer

    Put it in a missile and play the final countdown

    2.7 years ago
  • Profile image

    Noteblock

    +3 3.5 years ago
  • Profile image
    2,037 NikoFox

    @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!

    +1 3.6 years ago
  • Profile image
    2,037 NikoFox

    @ledownloader123 NO I JUST WANTED AN ANSWER TO MY QUESTION AND I GOT AN ANSWER SO I ALREADY DID SHUT UP!

    3.6 years ago
  • Profile image

    @NikoFox SHUT UP NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB

    +1 3.7 years ago
  • Profile image
    30.1k ALTMTR

    How close are we on getting a vocaloid mod?

    +1 3.8 years ago
  • Log in to see more comments