White Noise Pink Noise and Brown Noise Are Different Frequency Distributions
White noise has equal energy at all frequencies. Pink noise has equal energy per octave. Brown noise emphasizes lower frequencies. These are not marketing terms. They are precise mathematical descr...

Source: DEV Community
White noise has equal energy at all frequencies. Pink noise has equal energy per octave. Brown noise emphasizes lower frequencies. These are not marketing terms. They are precise mathematical descriptions of frequency distributions. White noise White noise has equal energy at every frequency. It sounds like TV static or a waterfall. function whiteNoise(audioCtx, duration) { const sampleRate = audioCtx.sampleRate; const buffer = audioCtx.createBuffer(1, sampleRate * duration, sampleRate); const data = buffer.getChannelData(0); for (let i = 0; i < data.length; i++) { data[i] = Math.random() * 2 - 1; } return buffer; } Each sample is independently random. Because there are more high frequencies than low frequencies in any given bandwidth, white noise sounds "bright" or "hissy." Pink noise Pink noise has equal energy per octave (not per frequency). Because each octave covers a wider frequency range as you go higher, pink noise has less energy at high frequencies. It sounds like steady r