I’m looking for a way to “smooth” the noise. Maybe instead of returning
.5, .6, .3 etc.
it would return
.5, .5, .6, .6, .3, .3
basically I want to hold the noise value for a few iterations before getting a new noise value.
Is something like that possible? I’ve looked into mapping, but that doesn’t seem to smooth it, just increase the size.
I’m visualizing it like zooming in on the noise somehow.
This looks promising. One issue though is that I am using noise in several different places, and I only want to set the noiseDetail() for one of them. I’m assuming you can only set noiseDetail once per sketch?
You can also accomplish this with a stepping counter. Create an object with two settings: the number of steps you want to repeat (e.g. 3) and the value you want to increment by every cycle (e.g. 0.005). Now you can call it again and again, and it will give you 0.005, 0.005, 0.005, 0.01, 0.01, 0.01, 0.015, 0.015, 0.015… and you can use that as input to noise().