loov / jsfx

Javascript Sound Effect Generator
MIT License
576 stars 49 forks source link

Added a createWave() method to jsfxlib #4

Closed hay closed 13 years ago

hay commented 13 years ago

Hi, i've added a simple createWave() method to jsfxlib. You don't want to generate a whole bunch of sounds all the time, so i thought it made sense to have a method to create a single sound. I've modified createWaves() to use the code as well so you don't have code duplication.