💾 Archived View for thrig.me › blog › 2023 › 10 › 26 › LFO.gmi captured on 2023-11-04 at 11:22:59. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Or low frequency oscillators show up in all sorts of places, though I did not know until recently that they are called LFO.
Previous uses were in composition where I was like hey what if I put some sin waves together and let them move the pitch selection around.
Another use is in roguelike level procgen where (with as always careful function and parameter selection) sin waves convert to an elevation map, so maybe "#" are mountains, "~" are swamps and "." level ground. Noise can be added, or not. Colors might help, along with graphical tiles and a broader selection of ground types? You'll need a big terminal for the following, or maybe less -S.
More detail (roads, ruins, ranches) might be layered on top by other algorithms. More complexity might be had by triggering one of several different functions when a base LFO reaches particular values.
https://thrig.me/src/ministry-of-silly-vaults.git
https://thrig.me/src/lacrida.git