by graphitout on 11/11/23, 8:52 PM with 22 comments
There is a command-line piano app in the examples directory if you want to play with it. Here is the link: https://github.com/charstorm/koelsynth/tree/main/examples/si...
My next target is to attach this to some kind of physics simulation - like a bunch of balls moving around in a box with some internal walls. When the ball hits certain trigger points, it produces the sound.
by chaosprint on 11/12/23, 7:20 AM
Have you tried to port it to WASM?
Python can also call the wasm with wasmer
I ported https://github.com/chaosprint/glicol for my Python audio project using the same method
for your physics idea, with wasm, perhaps it can be something like this?
by nightowl_games on 11/12/23, 12:27 AM
I added a music block to Goober Dash level editor:
https//gooberdash.winterpixel.io/
When your Goober, or a physics crate, hits the music block, it plays a note. I didn't release this branch yet. Can I use the piano notes from this lib in our game? I wouldn't be adding the generator code to the game, I just need sound files.
by tempodox on 11/12/23, 7:33 AM
However, Wikipedia has a better diagram and explanation of ADSR:
by briancr on 11/14/23, 1:25 PM
by driggs on 11/12/23, 2:20 AM
Does that also make for relatively simple software FM synthesis?