-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating noise in runtime #11
Comments
That's a great idea! I don't know how to implement it but there are plenty of examples on a simple search: https://duckduckgo.com/?t=ffab&q=generate+white+noise+python&ia=web |
But probably we can make this directly with GStreamer (https://gstreamer.freedesktop.org/documentation/audiotestsrc/index.html) |
I have some experience with audio designing for this specific purpose! The way I do it on cognii is by grabbing a 15 second clip from anywhere in the file, fading in the first 5s, playing the middle 5s at full volume, and fading out the last 5s. while the last 5s fade, the next randomly picked section is fading in its initial 5s, so it gives the illusion of randomized infinite audio from a file as small as 1 minute. there's a couple things to worry about, specifically keeping constant volume for coffee-shop or train, but that can be mitigated with a bit of planning: |
As a more general solution for #9, a thing that would prevent patterns completely is generating the sounds on the fly instead of just playing a preexisting loop.
While it would be way too complex for e.g. coffee shop sounds, it should be relatively simple for white/pink noise.
See also: https://twitter.com/mattdm/status/1300908885805543424
The text was updated successfully, but these errors were encountered: