News for hackers. Stuff that matters.
Re:Spotify podcasters are making $18k a month with nothing b... by mft_ on Sunday June 05, 2022 @09:34AM (#31630841)
Thanks - really good to discover this!

Interesting to note the size of the samples that Apple is using:

* Balanced noise: 1.8MB

* Bright noise: 1.8MB

* Dark noise: 1.8MB

* Ocean: 62.4MB

* Rain: 63.7MB

* Stream: 72.1MB

That's a lot of effort to ensure your background water sounds are (presumably) high fidelity and non-repeating!

Re:Spotify podcasters are making $18k a month with nothing b... by andrepd on Sunday June 05, 2022 @03:19PM (#31633997)
If you're interested in high quality background noise, I'll plug this absolutely amazing site: mynoise.net
Re:Spotify podcasters are making $18k a month with nothing b... by laybak on Sunday June 05, 2022 @07:31PM (#31635812)
wow didn't realize background noise can get so sophisticated haha
Re:Spotify podcasters are making $18k a month with nothing b... by amelius on Sunday June 05, 2022 @09:45AM (#31630934)
Doesn't the finite size imply that they are in fact repeating?
Re:Spotify podcasters are making $18k a month with nothing b... by natly on Sunday June 05, 2022 @10:08AM (#31631120)
In this case they're probably recordings, but you could imagine that they'd be procedurally generated in which case not necessarily. A call to `Math.random()` is a finite length 'file' but won't repeat.
Re:Spotify podcasters are making $18k a month with nothing b... by aftbit on Sunday June 05, 2022 @04:36PM (#31634593)
A call to Math.random() will in fact repeat eventually. The backing PRNG has a finite period.
Re:Spotify podcasters are making $18k a month with nothing b... by shhsshs on Sunday June 05, 2022 @04:41PM (#31634624)
Yeah, after it loops in several hundred years and I hear a pattern I've already heard, I'll be really annoyed!
Re:Spotify podcasters are making $18k a month with nothing b... by MichaelBurge on Sunday June 05, 2022 @05:26PM (#31634998)
The human brain is also finite, so even a true infinite random sequence would give the listener finitely many states.

So it doesn't matter whether a sequence is finite or not.

Re:Spotify podcasters are making $18k a month with nothing b... by sudosysgen on Sunday June 05, 2022 @06:08PM (#31635269)
It may be partly affected by fully random effects such thermal noise, meaning there will be no period.
Re:Spotify podcasters are making $18k a month with nothing b... by JJMcJ on Sunday June 05, 2022 @11:37AM (#31631940)
Good ones are loopable so there is no discontinuity when they repeat.

And the size of those files implies they are probably minutes in length, at the very least, so you probably don't notice the repetition.

Re:Spotify podcasters are making $18k a month with nothing b... by throwoutway on Sunday June 05, 2022 @09:47AM (#31630955)
Yes. I can detect repetition of ocean “white noise” if the length is too short. But a long enough track is just fine
Re:Spotify podcasters are making $18k a month with nothing b... by PartiallyTyped on Sunday June 05, 2022 @12:50PM (#31632662)
Not necessarily.

In theory one can construct a chaotic (this is a precise definition) function with very little data that could replicate that class of noise with finite data.

Infinite lists are also another beautiful construct in lazily evaluated languages.

Re:Spotify podcasters are making $18k a month with nothing b... by Retric on Sunday June 05, 2022 @12:59PM (#31632741)
Not at a fixed rate with finite computing power or finite memory. Essentially a fixed algorithm needs ever increasing or infinite levels of precision in it’s calculations to avoid loops.
Re:Spotify podcasters are making $18k a month with nothing b... by jacobolus on Sunday June 05, 2022 @01:57PM (#31633316)
> Not at a fixed rate with finite computing power or finite memory. Essentially a fixed algorithm needs ever increasing or infinite levels of precision in its calculations to avoid loops.

If you start talking about true “infinity” then sure. You need to store enough state (or if you like, receive some input) for your computed output to be unique. And counting to infinity takes infinite amounts of memory. Infinity is not accessible to humans, and is best thought of as a thought experiment rather than a part of empirical reality.

But if you do 44kHz samples, a counter stored in a 32-bit integer that ticks up once per sample is enough state to give you all unique [i.e. non-looping] samples for about a day. A 64-bit integer will give you all unique samples for 13 million years. With a 75-bit integer you can get all unique samples for longer than the history of the universe so far.

So in practice, the “increasing” amount of memory required doesn’t (necessarily) grow fast enough to worry about.

Re:Spotify podcasters are making $18k a month with nothing b... by mejutoco on Sunday June 05, 2022 @06:14PM (#31635314)
Can prime numbers be used as lengths/periods so that there is no perceptible repetitions.

I saw this trick and used it to animate different parts of an animation (each part every p frames, where p is a prime) and it works very well.

Re:Spotify podcasters are making $18k a month with nothing b... by karmakaze on Sunday June 05, 2022 @01:51PM (#31633268)
So like emitting 1, 0, 1, 1, 0, 1, 1, 1, 0, ...?

Doesn't need much to generate. It would need a wide counter but a MB is a lot of bits.