chr15m / jsfxr

JavaScript sound effects generator.
http://sfxr.me
The Unlicense
271 stars 25 forks source link

Support for other output types #3

Closed gingerbeardman closed 4 years ago

gingerbeardman commented 4 years ago

As well as serialising, it would be great if I could get it to output directly in a format I need to use.

I am working on a game for Playdate https://play.date and can provide a template for the synth functions it uses when the time comes.

chr15m commented 4 years ago

You can get a raw, normalized buffer of the audio by doing mysoundeffect.generate().buffer. If this is sufficient I will document it more clearly.

gingerbeardman commented 4 years ago

Don't worry.

I guess it will be easy enough for me to code a reader for the JSON, it maps pretty well anyway.

Cheers!