Skip to content
forked from nucular/sfxrlua

A port of the sfxr sound effect synthesizer to Javascript, mainly for usage in HTML5 games

License

Notifications You must be signed in to change notification settings

kdrnic/sfxr.lua.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sfxr.lua.js

A port of the sfxr sound effect synthesizer to pure Javascript, designed to be used in HTML5 games.

Example usage

These examples should play a randomly generated sound.

var AudioContext = window.AudioContext || window.webkitAudioContext;
var audioCtx = new AudioContext();
var sound = new sfxr.Sound();
sound.randomExplosion();
sound.play(sfxr.FREQ_44100, audioCtx);

More documentation will be available at the Project Wiki

About

A port of the sfxr sound effect synthesizer to Javascript, mainly for usage in HTML5 games

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.9%
  • HTML 6.1%