i would recommend using turbowarp for this project if you don't want your computer to sound like a jet engine. (I did not optimize this Dx) https://turbowarp.org/1311443530
basically a rough and more compact rewrite of @sureornot 's 3d perlin noise. i also had a look at @Layzej 's 2d perlin noise project so thats why there are a few snippets of code from that project