Enhanced sfxr for Love2D
A downloadable tool for Windows and macOS
sfxr.lua is a port of DrPetter's sfxr Flash tool to Lua and Love2D.
It features both source code that enables you to play back sounds in your games and a demo app that is used to create sounds just like the original Flash tool.
I noticed some bugs in the demo app so set about fixing them:
- fix: getDirectoryItems (from a PR)
- fix: off by one sample length error (from a PR)
- fix: space bar was not playing the sound
- fix: selected wave form was being ignored (sounds were always square wave)
- fix: loaded wave form not updating the interface (but sound was playing correctly)
Then I got carried away and added some new features:
- add: clone method added to sfxr.lua
- add: history form with list of previous sounds, save current, and undo/redo
- add: “play on changes” so that any time you adjust a sound it plays automatically
- add: keyboard navigation in file picker (A–Z: jump to files, Enter: choose, Esc: close picker)
- add: window title reflects the most recent loaded/saved file
- add: window title and filename reflects last operation
- add: file selector shows data directory path
- add: unified save directory across platforms
I announced it on the Love2D forum and on my blog.
Source code download is included here, until I have to time to add it to GitHub.
Keys
- SPACE = Generate and Play
- L = Load .lua
- O = Save .lua
- K = Load .sfs
- I = Save .sfs
- ESC = close/quit
- A–Z = skip to file in picker
- ENTER = choose selected file
Where my files at?
- macOS .app: ~/Library/Application Support/sfxr/sounds
- macOS .love: ~/Library/Application Support/LOVE/sfxr/sounds
- Windows .app: %APPDATA%\sfxr\sounds
- Windows .love: %APPDATA%\LOVE\sfxr\sounds
Credits
Updated | 29 days ago |
Status | Released |
Category | Tool |
Platforms | Windows, macOS |
Rating | Rated 5.0 out of 5 stars (1 total ratings) |
Author | gingerbeardman |
Tags | LÖVE, lua, sfxr, Sound effects, Soundtoy |
Download
Install instructions
- Download the app that matches your operating system
- Or download the .love file if you want to run it directly
- Or download the source code if you want to hack on it
Development log
- One more thing...29 days ago
- Where my files at?36 days ago
- "Enhance!"37 days ago
Leave a comment
Log in with itch.io to leave a comment.