https://pastebin.com/p6PmeQDm
Just sharing how “magical” the CLI can be. You are welcome.
-EDIT Did a little “oopsie” there. My bad. It’s fixed now.
-EDIT2 Nvm that, lemmy disliked my code for some reason. It’s in the pastebin link. And the code in there is working as intended.
If you want to run some less low-level code to explore the kinds of sounds that code like this can create, I wrote a python applet that lets you explore random and custom functions interactively. It comes with several presets for interesting functions I’ve discovered on various websites.
YouTube video
source code