A port of the sfxr sound effect synthesizer to Lua, mainly for usage with the Löve framework - Keywords: library sound love2d https://github.com/nucular/sfxrlua

nucular 822323c8bf Merge pull request #16 from pgimeno/fix-save-as-lua-button пре 9 година
loveframes @ a02fafd902 2ca33bd6d5 Added LoveFrames as a submodule so I can start to build a fancy GUI as a demo пре 10 година
spec 24ad42b0ad Start adding unit testing with busted and Travis-CI пре 10 година
.gitmodules 2ca33bd6d5 Added LoveFrames as a submodule so I can start to build a fancy GUI as a demo пре 10 година
.travis.yml 24ad42b0ad Start adding unit testing with busted and Travis-CI пре 10 година
LICENSE bcb4606b3c Initial commit пре 10 година
README.md 7c7060875a Added Travis-CI badge пре 10 година
conf.lua 593bf96742 Made demo window height larger and added Save/Load/Export buttons пре 10 година
main.lua 43f931ebae Fix save as Lua button пре 9 година
sfxr.lua bc4ebf3728 Reset parameters to default before loading from a file пре 10 година

README.md

sfxr.lua

Build Status

A port of the sfxr sound effect synthesizer to pure Lua, designed to be used together with the awesome Löve game framework.

Example usage

These examples should play a randomly generated sound.

With Löve 0.9.x:

local sfxr = require("sfxr")

function love.load()
    local sound = sfxr.newSound()
    sound:randomize()
    sound:play()
end

With lao:

require("ao")
local sfxr = require("sfxr")

local driverId = ao.defaultDriverId()
local device = ao.openLive(driverId, {bits = 16, rate = 44100, channels = 1})

local sound = sfxr.newSound()
sound:randomize()

local buffer = sound:generateString()
device:play(buffer, #buffer)

More documentation is available at the Project Wiki