sfxr.lua - Generate sounds dynamically at runtime

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
nucular
Prole
Posts: 22
Joined: Sun Mar 16, 2014 1:23 pm

Re: Pure Lua port of the sfxr sound generator

Post by nucular »

Thank you. Yeah, it's not really production-ready but hopefully I'll find the time to improve it steadily.

Btw, I added simple saving/loading functionality and increased the size of the GUI lately.
User avatar
nucular
Prole
Posts: 22
Joined: Sun Mar 16, 2014 1:23 pm

Re: Pure Lua port of the sfxr sound generator

Post by nucular »

Big update and bump!
Thanks to the awesome contributions of jorio (and josefnpat), many of my stupid mistakes were fixed!
sfxr.lua now sounds just like the original and can even load the binary parameter files of it! Also, the crash and all other issues were closed!
EDIT: Oh, and it's much faster now too :D
User avatar
Cryogenical
Prole
Posts: 49
Joined: Mon Apr 28, 2014 5:23 pm

Re: sfxr.lua - Generate sounds dynamically at runtime

Post by Cryogenical »

Just crashed trying to save lua.
http://gyazo.com/05f5679449db47562a9e123ca0bad6e6
User avatar
Chèvre
Prole
Posts: 16
Joined: Sun Sep 16, 2012 4:53 pm
Location: France

Re: sfxr.lua - Generate sounds dynamically at runtime

Post by Chèvre »

Hi! I'm jorio on GitHub. I find this project really neat!

Do you want sfxr.lua to be a 1:1 clone of sfxr, or are you open to pull requests for new features that the original doesn't have? E.g. triangle wave, brownian noise, stuff like that.
User avatar
nucular
Prole
Posts: 22
Joined: Sun Mar 16, 2014 1:23 pm

Re: sfxr.lua - Generate sounds dynamically at runtime

Post by nucular »

Cryogenical wrote:Just crashed trying to save lua.
That's weird because it works fine for me under Windows 7. Did you doubleclick the .love file or used the command line?
Chèvre wrote:Do you want sfxr.lua to be a 1:1 clone of sfxr, or are you open to pull requests for new features that the original doesn't have? E.g. triangle wave, brownian noise, stuff like that.
Now that it gets the base features right, new features would be great. It'd have to throw an error when saving to the binary format though or something, to avoid compatibility issues.
User avatar
Cryogenical
Prole
Posts: 49
Joined: Mon Apr 28, 2014 5:23 pm

Re: sfxr.lua - Generate sounds dynamically at runtime

Post by Cryogenical »

nucular wrote:
Cryogenical wrote:Just crashed trying to save lua.
That's weird because it works fine for me under Windows 7. Did you doubleclick the .love file or used the command line?

I ran the demo, customized a bit on the "noise", and then clicked save lua
If it helps any, I'm on windows 8 x64
User avatar
kikito
Inner party member
Posts: 3153
Joined: Sat Oct 03, 2009 5:22 pm
Location: Madrid, Spain
Contact:

Re: sfxr.lua - Generate sounds dynamically at runtime

Post by kikito »

I got the same error on the same line (sfxr.lua:1022) after clicking around a bit and then clicking "Save Lua".

I am using the .love file on the OP. Maybe you forgot to replace it with a version without bugs? Line 22 on github looks empty.
When I write def I mean function.
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: sfxr.lua - Generate sounds dynamically at runtime

Post by undef »

I get an error if I try to export to wav:

sxfr.lua:920: attempt to index upvalue 'f' (a nil value)

Other than that it seems a lot more stable from when I last tried it.
It's quite fun to use actually :)
twitter | steam | indieDB

Check out quadrant on Steam!
User avatar
nucular
Prole
Posts: 22
Joined: Sun Mar 16, 2014 1:23 pm

Re: sfxr.lua - Generate sounds dynamically at runtime

Post by nucular »

These crashes should hopefully be fixed now. I also added a simple file picker.
User avatar
undef
Party member
Posts: 438
Joined: Mon Jun 10, 2013 3:09 pm
Location: Berlin
Contact:

Re: sfxr.lua - Generate sounds dynamically at runtime

Post by undef »

Seems to work fine now.
Thanks a lot, this will come in handy!
twitter | steam | indieDB

Check out quadrant on Steam!
Post Reply

Who is online

Users browsing this forum: No registered users and 229 guests