Profile image

Tone Generator

106k hpgbproductions  3.5 years ago
2,031 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
    10.6k 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

    14 days ago
  • Profile image

    @windshifter1 no sound files

    14 days ago
  • Profile image
    10.6k windshifter1

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

    15 days ago
  • Profile image

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

    +1 one month ago
  • Profile image

    @hpgbproductions This is a incridible mod btw👏👏.

    5 months ago
  • Profile image

    @RaptorAerosystemsCorp despair

    5 months ago
  • Profile image

    I hope this mod are able to be use in android platform

    5 months 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 10 months ago
  • Profile image
    23.5k TylerWildDog

    how can I make a RWR?

    11 months 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.2 years ago
  • Profile image
    46.4k PlaneFlightX

    @hpgbproductions Okay, I understand.

    1.6 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.

    1.6 years ago
  • Profile image
    46.4k 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 1.6 years ago
  • Profile image
    1,163 Ryder1221

    im trying to make better lock on sounds

    +2 1.7 years ago
  • Profile image
    46.4k PlaneFlightX

    @hpgbproductions Did it, got it working. Thanks.

    2.0 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.0 years ago
  • Profile image
    46.4k 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.0 years ago
  • Profile image
    46.4k PlaneFlightX

    @hpgbproductions Okay, thank you, will do.

    2.0 years ago
  • Profile image

    @PlaneFlightX set the minimum and maximum distance

    2.0 years ago
  • Profile image
    46.4k 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.0 years ago
  • Profile image
    6,217 Samfpanzer

    Put it in a missile and play the final countdown

    2.1 years ago
  • Profile image

    Noteblock

    +3 2.9 years ago
  • Profile image
    2,030 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.1 years ago
  • Profile image
    2,030 NikoFox

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

    3.1 years ago
  • Profile image

    @NikoFox SHUT UP NOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB

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