357 points · by matteason · 2y ago · 129 comments
I appeared on The Economist's The Intelligence podcast [0] this week talking about Ambiphone and another ambient music project, Ambient ScotRail Beats [1] - I'm on at about 17:30
There's a big selection of music and sounds already but I'm always adding more - if there's anything you'd like to see added, let me know!
[0] https://www.economist.com/podcasts/2024/01/01/why-2024-could...
Honestly, I don't really use white-noise generators so I didn't plan on using it, myself, but after realizing it allows layering the sounds, I've built a really nice little soundscape and find myself missing a function that would allow me to transfer that design (selected sounds and volumes) to another instance of the app.
Totally not necessary, of course! Easy enough to re-configure. Just something I thought I might use, in case you were interested.
I'm building the ability to save mixes at the moment actually - good point about being over to move them over to a new device. At the moment I'm just storing saved mixes in localstorage but people will definitely want the ability to sync at some point. I've been trying to avoid having an account system in the interests of keeping things simple but I might have to bite the bullet or come up with another clever way to keep things in sync
These might help:
https://www.jvt.me/posts/2019/08/01/node-parse-url-fragment/
https://news.ycombinator.com/item?id=37118124
https://www.eff.org/deeplinks/2023/12/meet-spritely-and-veil...
(Otherwise, encode-state-in-url-hash or export-to-json-and-paste aren't too bad, unless you do want "social")
Something easy for a human to transfer like honey-chair-balcony or something. Store the settings in the backend against this identifier and then you can retrieve it later? So you still need a backend but no need for accounts
But I will say that I have a need to sync data, which is why I'm putting effort into getting that syncing working (as well as compressed and encrypted). I really doubt you would need something robust for this type of thing. I'd, personally, be perfectly happy to get a json "export" of your local storage values that I could just "import" into a new instance of the app. I'll email it to myself. No need to complicate it with automation and all of the baggage that comes along with accounts.
If nothing else, a manual import/export is a fully-featured first implementation that can be iterated into something more robust.
I hate that most of these apps are subscription based for no good reason. This is so clean and nice...
One thing that would be awesome would be an option to preload and cache the noises. I regularly use white noise machines in offline situations (planes, remote camp ground), offline mode would make it the ultimate machine!
The developer earning a living?
You're here so I'll charitably assume you've managed a web server ever.
There is no such thing as 'static'.
If you are looking for additional things to add, those with tinnitus are likely to have suggestions.
I had a scare with tinnitus several weeks ago, where it suddenly became very apparent for a few days before subsiding to a point where I don’t notice it unless I specifically listen for it. This had me desperately searching for noise generators so I could get to sleep.
“Grey” and “pink” noise, and some kinds of cricket noise seemed to be most suitable for masking my type (which is very similar to the high pitch sound an old analog tv makes when it’s on). Heavy rain is also good, but it’s hard to find something that is suitable because most have some additional water splashing and gurgling, which triggers my misophonia.
It's definitely going to vary from person to person so if anyone else has any suggestions of the types of noise that might help them I'm all ears. I'm also thinking of adding more controls to individual sounds so you might be able to control, for example, the exact pitch of the 'bass rumble' sound, which may help people zero in on the frequency that helps mask their tinnitus
Some kind of 9800Hz statis/hiss, reminiscent of crickets. Masks my tinnitus perfectly and doesn't seem to trigger excessive attention. Has a very quick intro bit, but not talking after: https://www.youtube.com/watch?v=2I-20-jKVF0
"Grey" noise, whatever that's supposed to mean. A low hum/rumble similar to ocean waves but more constant. Also has a hiss added. Very non-intrusive: https://www.youtube.com/watch?v=HSQ_gW7iVis
"Shimmer", very reminiscent of crickets but much smoother and without all the little peaks that would normally activate my attention: https://www.youtube.com/watch?v=Ke2BopotSIU
There is a white noise generator, which "cat /dev/urandom | /dev/audio" or a couple of lines of C code will accomplish. With just a few controls you can tailor the spectrum easily.
Then there is an "ambient music generator" which you can knock together in a few hours with Csound, Supercollider, Pd, Chuck/Faust and the like.
Then there's an "ambient music application" which in addition to inbuilt generators works with with online libraries of generators, seeds, patterns, sample loops, and a package/element manager for getting and adding "songs". Last time I built one of those it was a few weeks of effort.
Then there's getting all that to run on smartphone, on multiple platforms, getting around all the quirks, permissions and general madness that is phone dev ecosystem.
Well done on that last point. Seems the last of these is what the author has created and I kinda think it deserves a better name than "white noise generator".
I didn't realise there is still quite a culture of "noise generators" for people wanting to sleep, read or meditate.
On the music point - at the moment it's just using looped versions of some (great) free tracks I've found, but I'm experimenting with generative music at the moment, including using environmental stimuli (mic, light level, accelerometer etc) to trigger changes in the music and bring in live samples from your surroundings. Early days but it's been fun to experiment with.
So I made an app focused (hehe.) on ease of switching between noise intensity. There's a long explanation why it's important if you want one (https://incentiveassemblage.substack.com/p/why-is-nobody-ser...), but if you're the kind of nerd who knows about 'flow state' and 'Yerkes-Dodson law', you pretty much got everything covered. The core point is: if intensity of your main activity is changing, your background noise should too, so that you maintain the same total level of arousal. Most likely double so for ADD people.
My current solution is to use media buttons (forward/backward) to control intensity. It took much more work than you'd expect to get media interface to do this without breaking currently playing sounds. In general anything that isn't 'Play this sound' works much worse than one would anticipate with how prevalent media is on the internet - I see ambiphone does the same thing with playing sounds separately, but you saved yourself from managing media interface, so I can't quite tell how much pain exactly you have experienced with this.
Yeah it has been painful. It took a lot of trial and error to get it working consistently across browsers, from absolute basics like getting gapless looping audio working consistently across browsers to maintaining playback while the screen's off to iOS treating background audio differently in PWAs vs Safari. I've managed to get it in a fairly hack-free state now but I am definitely worried about browsers shifting underneath me and breaking things in the future. Best of luck with your app too!
I'm really curious where do you get the base sounds from? For example where are the coffee shop or different rain sounds from.
The one that I'd love to know about is the music section, I listen to a lot of the ambiant stuff on apple music and spotify, where do you get your ambiant track from? I always have to search "spa music" and see what I like from the results.
Acutally one last one, how on earth did you get a shipping forcast? Haha. Is that one track or like a chain of random ones?
Thanks again! I'm going to use this a lot.
The binaural beats I made for someone who asked for them in these comments and the shipping forecast is one track of me reading a made-up (but structurally accurate, I think) forecast in my best Radio 4 voice :)
Its main advantage is that it's an app (at least on Android) and that it works perfectly even when offline.
It has a wide variety of sounds to mix and match, as well as an option to save favorite combinations for quick access.
I'm testing a PWA version at the moment too so it'll be installable to your home screen - the test version at https://test.ambiph.one is PWA-enabled if anyone would like to try it out
Kathy Clugston: https://youtu.be/PJQJ61abfR0
Zeb Soanes: https://youtu.be/_qt6pECdxg8
https://spinoff.nasa.gov/Spinoff2015/hm_2.html
https://www.deseret.com/2013/7/1/20521855/about-utah-this-ap...
I have it saved and will use it again.
Also… whatever way I’ve configured it, it sounds like a boards of Canada track :)
Support this guy, people: https://ko-fi.com/matteason
Glad the gamma worked for you. I'd never really used binaural beats before but there seem to be a lot of things claiming to be binaural beats (especially on YouTube) that are actually just relaxing music? So I made them from scratch to make sure they're accurate
Currently listening to Strong Wind 5% + Fire 10% + PCIII 8% + Wind Chimes 1% + Heartbeat 1% + Clock Ticking 5% + Printer 2% + Morse Code 0.5% + Numbers Station 5%
I'm starting to find that my mix is noticeably repetitive after a few minutes. I would like the app to automatically bring in and out other selected sounds over a period of time to reduce the repetition.
However, I know this flies in the face of simplicity, I don't know how you'd go about adding that in a way that's easy to use? Perhaps you add some "timers" and link them to sounds, such that each "timer" fades in/out over some preset periods (1/5/10/15 minutes ?)
I played Kirk Osamayo- Realization to test it and it put me into a 5 minutes of refreshing nap.
Feature request: Deep-links so I can share or bookmark a 'preset'.
mynoise.net
Also, didn't expect to see number stations pop up in there, nice surprise.
Couple of suggestions I'd need before using properly:
- Reset button
- Save to URL so I can quickly reload with same presets
No idea why all of them are subscriptions or have tons of ads and such.
What'd you make it with?
The sounds are FLAC files, which is the only compressed format which loops seamlessly across all browsers. Sound files are hosted in an S3 bucket, which is behind Cloudflare (free) to minimise S3 egress costs, so thankfully it doesn't cost much to run at all.
The sounds are all permissively licensed and mainly sourced from freesound.org and freemusicarchive.org - I'm hugely grateful to everyone who shared such high-quality sounds and music for free. There's a list of credits at https://ambiph.one/acknowledgements
Can we maybe have apollo mission chatter?
Coincidentally I'm also building a live ISS tracker which embeds NASA's live camera stream [0]. Sometimes I have Ambiphone and the ISS tracker running at the same time and it's nice when the ISS chatter pops up, so I think the Apollo recordings would work really well.