by somat · 3y ago · 0 comments
Now people don't want just any noise, they want artisanal boutique noise. so all you need is a bpf style language artists can plug into your noise generator, then people can pick the superior custom noise algorithm.
hashtag: only_half_joking
But honestly, we have a HomePod mini that does 99.999% of the work in the house. The HomePod has half-a-dozen or so background noises including rain, ocean and white noises
Then again, if Spotify really cared about saving bandwidth costs, they would have never gone to CDN from P2P.
My Android app (Chroma Doze, est. 2010) uses this algorithm to splice noise segments together:
When adding two streams together, the perceived amplitude stays constant
if x^2 + y^2 == 1 for amplitudes x, y.
A useful identity is: sin(x)^2 + cos(x)^2 == 1.
Thus, we can perform a constant-amplitude crossfade using:
result = fade_out * cos(x) + fade_in * sin(x)
for x in [0, pi/2]
But we also need to prevent clipping. The maximum of sin(x) + cos(x)
occurs at the midpoint, with a result of sqrt(2), or ~1.414.
Thus, for a 16-bit output stream in the range +/-32767, we need to keep the
individual streams below 32767 / sqrt(2), or ~23170.