-
Notifications
You must be signed in to change notification settings - Fork 0
Oscillator Noise
Eric Yancey Dauenhauer edited this page Jan 25, 2024
·
1 revision
SalamiVG ships with a bespoke noise function called "Oscillator noise". It is comparable to Simplex/Perlin noise, but of course slightly different.
Oscillator noise is inspired by FM synthesis, which modulate a base wave with additional waveforms. With the right parameters, it can return values that are similar to fBM.
The easiest public interface for Oscillator noise is createOscNoise(seed: string)
which returns a function that accepts 1 or 2 numeric arguments - essentially a 1D or 2D noise function.
If you want to explore more deeply, you can experiment with the Oscillator
class directly.
There is an example sketch using oscillator noise in the /examples folder of this repo. You can see the rendered output in the project README