Pure haxe implementation of Sfxr.
Wave data is stored in haxe.io.Bytes and can easily be integrated to your framework of choice.
All parts of the library are contained in a single import.
Example of loading a preset and generating 16 bit mono wave data.
import Sfxr;
function generate_wave_data():Void
{
var synth:Synth = new Synth();
var preset = Configure.explosion();
var wave_data:Bytes = synth.generate(preset);
}
Generate each of the preset variants and save to disk.
cd tests
haxe make_waves.hxml
Original C++ implementation - see http://www.drpetter.se/project_sfxr.html
https://github.com/grimfang4/sfxr
HaXe/Flash implementation
https://github.com/grimfang4/sfxr
Flash as3 implementation
https://github.com/SFBTom/as3sfxr
Haxe/OpenFL implementation