flat assembler
Message board for the users of flat assembler.

Index > Tutorials and Examples > how generated explosion sound ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1994
Roman 14 Aug 2025, 11:32
I looking examples generated explosion sound.
And theory,formules how do this.
Post 14 Aug 2025, 11:32
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4358
Location: Now
edfed 19 Aug 2025, 14:29
you can generate explosion with a bunch of oscillators, modulators and envoloppe generator.

you can search for any sound synthesis software, and look how they will generate your explosion.

for example, with a sytrus synth, you can play with knobs, until you find what you find convenient as an explosion sound. then, you just have to implement the synth with all elements i told you before.

https://www.kvraudio.com/product/sytrus-by-image-line

this synth is the most versatile i know and you can even find presets of explosions.

after, you need a sound analysis to get the components.

something like that.
Post 19 Aug 2025, 14:29
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4358
Location: Now
edfed 20 Aug 2025, 09:15
after trying...

you need a squarish ocscillator in descending pitch, shaped in a capacitor discharge enveloppe, passing through a reverb.


Description:
Download
Filename: explosion.zip
Filesize: 752.65 KB
Downloaded: 25 Time(s)

Post 20 Aug 2025, 09:15
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1994
Roman 20 Aug 2025, 18:31
I using xaudio2 and generating sounds for my games.
I want generating explosion sound and not using any files wav or mp3.
Post 20 Aug 2025, 18:31
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4358
Location: Now
edfed 21 Aug 2025, 16:25
yes, i get it. but all theses files are examples to show you the result, and how to make it using basic effects.

after, you just have to code the effects and it's ok.

if i should make sound synths, i will probably start by doing a periodic clock, something like 100kHz or more standard tick.

then, use the clock value to generate the signal using any formula, like sinus, triangle, square, and so on.
interpolate the signals to get clean curves because my sound generation couldn't be synch with the main clock, and will never have a stable resolution in time.

and then, send it to a sound buffer that will be played in loops by the sound driver.
Post 21 Aug 2025, 16:25
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.