💾 Archived View for thrig.me › blog › 2023 › 10 › 26 › LFO.gmi captured on 2023-11-14 at 07:43:03. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-11-04)

🚧 View Differences

-=-=-=-=-=-=-

LFO

Or low frequency oscillators show up in all sorts of places, though I did not know until recently that they are called LFO.

synths and fiddle with a knob

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.

/music/sin-function1.mp3

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.

map1.txt

map2.txt

map3.txt

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