ZzFX for Playdate
I ported ZzFX, my tiny JS sound effect generator, to Playdate! Every sound is made from a short array of numbers, no audio files at all. Make a sound in the web editor, paste the params into Lua, and it plays exactly the same.
import "zzfx"
zzfx({nil,nil,1675,nil,.06,.24,1,nil,nil,nil,837,.06}) -- coin
The synth is C under the hood, but you just call zzfx({...}) from Lua. The repo has a little demo with preset sounds on the buttons and the crank playing a scale.
This works a bit like PDFXR but with a web interface and many more parameters to control the sound. Sounds can also be saved as wave files from the web interface for faster loading when you are ready to ship.
MIT, source and demo here: GitHub - KilledByAPixel/ZzFX-Playdate: ZzFX for Playdate: a C port of ZzFX with a Lua API and playable demo. Generate retro game sound effects live from code, no audio files required! · GitHub
Would love to know if anyone uses it.
