Skip to content
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

Open
alice-mkh opened this issue Sep 1, 2020 · 4 comments · May be fixed by #313
Open

Generating noise in runtime #11

alice-mkh opened this issue Sep 1, 2020 · 4 comments · May be fixed by #313
Labels
enhancement New feature or request
Milestone

Comments

@alice-mkh
Copy link

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

@rafaelmardojai rafaelmardojai added the enhancement New feature or request label Sep 1, 2020
@Porrumentzio
Copy link
Contributor

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
Here's an interesting one: https://python-acoustics.github.io/python-acoustics/generator.html?highlight=brown%20noise

@rafaelmardojai
Copy link
Owner

There's also:

@rafaelmardojai
Copy link
Owner

But probably we can make this directly with GStreamer (https://gstreamer.freedesktop.org/documentation/audiotestsrc/index.html)

@rafaelmardojai rafaelmardojai added this to the 0.4.0 milestone Sep 11, 2020
@rafaelmardojai rafaelmardojai mentioned this issue Sep 18, 2020
22 tasks
@rafaelmardojai rafaelmardojai modified the milestones: 0.4.0, 0.5.0 Mar 26, 2021
@rafaelmardojai rafaelmardojai modified the milestones: 0.5.0, 0.6.0 Sep 17, 2021
@rafaelmardojai rafaelmardojai linked a pull request Sep 17, 2023 that will close this issue
@octoshrimpy
Copy link

While it would be way too complex for e.g. coffee shop sounds

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:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants