Skip to content

Godot plugin that adds the SfxrStreamPlayer node to generate sound effects inside the editor.

License

Notifications You must be signed in to change notification settings

play3577/godot-sfxr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GodotSfxr

Godot plugin that adds the SfxrStreamPlayer node to generate sound effects inside the editor.

SfxrStreamPlayer Node

Ported from jsfxr (by Eric Fredricksen), which is a port from the original sfxr (by DrPetter).

Installation

  • Install from the Godot Asset Library*.

  • Clone or download this repository, and copy the contents of the "addons" directory to the "addons" directory of your Godot Project.

* The download from the Godot Asset Library might not be up to date. You can use Github to always get the latest version.

Usage

Add the node: SfxrStreamPlayer.

image

Select a preset sound effect under the Generators group in the inspector.

That will generate and save an AudioStreamSample resource with the audio data.

image

You can adjust the sound parameters on the inspector as needed.

The sound will play automatically after being generated, but you can also click on the Playing property to make it play.

If for some reason you need to regenerate the sound (maybe you deleted the stream resource), you can use the Force Rebuild option under the Actions group.

image

Everything else works as in the regular AudioStreamPlayer node.

For example, you can call the play function on the node, or connect to the finished signal.

image

You can also save the generated stream as a resource so you can reuse it elsewhere (like in an AudioStreamPlayer2D or AudioStreamPlayer3D).

image

About

Godot plugin that adds the SfxrStreamPlayer node to generate sound effects inside the editor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • GDScript 100.0%