Remix.run Logo
▲ Button Sounds – collection of professionally-recorded button clicks and presses(buttons.joshwcomeau.com)
282 points by gaurang_tandon 5 hours ago | 29 comments
▲KellyCriterion an hour ago | parent | next [-]

OT:

a friend was working for a very large automotive manufacturer. He was working in the "audio control".

In the "audio control" responsible for meassuring if each of the poduced cars doors had the >correct sound< when opening/closing the door and how it sounds if you pick/release the door handle.

He explained that car manufacturers investing huge money to get >that specific brand touch< when you are experiencing the >audio performance< of a car: They found out that some sounds/frequency spectrums are perceived as of higher/better quality than others, thus designers even have attention on how it sounds if your put your bunch of keys with the car key attached onto a wood table etc.

▲hunter2_ an hour ago | parent [-]

I wonder what such a service might be called outside of that industry. Like if consultants were brought in to help product designers who don't need someone with this skillset around everyday, what would they say is the name of what they offer? "Audio control" seems a bit overloaded.

▲cootsnuck 25 minutes ago | parent | next [-]

I'd assume some kind of "sound design" offering. Came across this company that seems to do exactly that in the automotive industry: https://www.head-acoustics.com/applications/automotive/sound...

▲KellyCriterion 28 minutes ago | parent | prev [-]

>what would they say is the name of what they offer?

Id say classic engineering offices/companies are sourced; there are tons of smaller engineering shops, specialized in whatever niche; e.g. I know a company supporting online subscription services in finding "the optimal price" for their subscriptions for different customer bucktes. So I would bet therefore that companies doing such things already exist.

▲masenf 4 hours ago | parent | prev | next [-]

> Frustratingly, browsers can decide to block a website from playing any sound. iOS Safari seems particularly strict about this. So, if you’re not hearing a click sound when tapping the big red button, please check out this website on a desktop computer.

While I understand this behavior from Apple in a user-first perspective and do find audio on mobile web to be annoying in most cases, an easy way to allow audio to play on an iPhone that isn't "use a desktop" seems to be flipping the hardware switch to turn off silent mode.

I'm not proud to admit it took 5 minutes of poking and a Google/Gemini search to figure that out...

▲josephg 3 hours ago | parent | next [-]

The general rule is that audio in a tab on ios is banned until a user initiated event (eg a play button) plays audio. After that, audio works.

After a lot of trial and error, I've taken to putting a button on any page I make that uses audio with the label "Click here to unmute". Have it play a silent audio clip when it's pressed. After that, audio works.

The UI on this page should work fine on ios if the big red play button simply plays audio directly via webaudio. Who knows how it's actually coded though. It looks like an LLM's work. Probably a mess.

▲harrisi 2 hours ago | parent | next [-]

Largely not an LLM's work as far as I can tell: https://github.com/joshwcomeau/button-sounds

Also, here's the author's AI policy: https://www.joshwcomeau.com/ai-policy/

They're also a somewhat active user here.

▲hunter2_ 2 hours ago | parent | prev [-]

> I've taken to putting a button on any page I make that uses audio with the label "Click here to unmute". Have it play a silent audio clip when it's pressed. After that, audio works.

So anyone who wants to defy the reason for this limitation simply needs to lead the visitor to click something that doesn't reload the page? Instead of "unmute," maybe a throbbing "next" arrow or any innocuous link such as a menu item...

I wonder if some set of navigation-like things, such as doing a history.pushState() to change the address bar, cancels what this trick would otherwise achieve.

▲al_borland 3 hours ago | parent | prev | next [-]

Having audio in the browser respect the silent mode switch seems perfectly reasonable.

I would find it frustrating if my phone was set to silent and it played button noises on a website.

▲Barbing 4 hours ago | parent | prev [-]

Dev should be able to work around it though a minimum one user tap on page should be required, IIRC.

RE: your solution - For iPhones with action buttons, can disable silent mode in control center.

▲normcu 3 minutes ago | parent | prev | next [-]

I remember i had tried similar things before as mobile apps. But now i'll able to try them on my computer as well. Thanks

▲hunter2_ an hour ago | parent | prev | next [-]

This is really cool. I have a suggestion, though: the samples within a button seem to have several modification types including a pitch shifter. For example, "DOWN4" under the "Multi-sampled sounds" heading sounds nearly a semitone lower than the other DOWN variants. I suggest eliminating all pitch shifting (or at least confining your use to a few cents), leaving only timbre variation. Go nuts creating variation through EQ, distortion, formant shifting, reflections/delay/reverb, etc. but keep the pitch locked. Why? Because the pitch of everything in this world is based on its resonant frequency, which is based on the size of whatever can vibrate, and in the case of a button it's resonating based on the size of the button. Many aspects of the sound would change based on things like how quickly the button is pushed or how much dampening the finger pushing it imparts, but the fundamental pitch is not one of them.

When playing a violin, if you move up the fingerboard, the pitch of the string increases. But if instead of playing the string you knock on the body as if knocking on someone's front door, the main pitch of that knocking never changes. The sympathetic vibrations of the strings will have frequencies that vary as the finger position varies, and the brightness and RT60 of the reverberation through the wood will vary from knock to knock, but the fundamental frequency generally excited by the knock only changes if the violin's volumetric size changes, and it never will.

Maybe a drum is a better example than a violin, since it's "unpitched" and yet still gets tuned to have some fundamental frequency. Only the noisy stuff varies from hit to hit, and the fundamental frequency does not (until you re-tune, or from temperature/humidity changing).

▲lukeify 2 hours ago | parent | prev | next [-]

I've never seen a Josh Comeau project that isn't polished to 110%.

▲broabprobe 3 hours ago | parent | prev | next [-]

This is extremely satisfying, a total joy to play around with and a huge resource for people who like clicky button sounds! Thank you for putting it together!

▲hn-aarvin 3 hours ago | parent | prev | next [-]

> Frustratingly, browsers can decide to block a website from playing any sound. iOS Safari seems particularly strict about this. So, if you’re not hearing a click sound when tapping the big red button, please check out this website on a desktop computer.

FYI, setting `navigator.audioSession.type` to `"playback"` will allow the sounds to play on iOS even when silent mode is on. (It defaults to `"ambient"`.)

On iOS versions below 16.4, this won't work as reliably; there are hacks you can do with `AudioContext`^[1] instead.

[1]: https://github.com/feross/unmute-ios-audio

▲cootsnuck 35 minutes ago | parent | prev | next [-]

This is so neat! I've been wanting to make more like tactile user interfaces for web apps and the like. Looking forward to playing around with these sounds!

▲LytraX 40 minutes ago | parent | prev | next [-]

Thats awesome! Great work there and very polished. The live sounds combinations monitor is very cool. Even the Winamp player brings back a lot of memories!

▲lanewinfield 3 hours ago | parent | prev | next [-]

This is phenomenal and very thoughtful to offer for free. The varying in the up and down really does make it.

▲Retr0id 2 hours ago | parent | prev | next [-]

Awesome, I've always wanted to build a web UI with some nice clunky toggle switches, if I ever get around to it I might use some of these samples.

▲HarVa an hour ago | parent | prev | next [-]

actually this is been almost 10-20 years since where the website felt messy and vibing with sounds and effects, but really the work brought me back to past. We will definitely try to use this work.

▲isomorphic 3 hours ago | parent | prev | next [-]

The sounds with multiple samples are very nicely done.

For me this website spins up the fans on my M4 Pro Mac mini when running it in Firefox Developer Edition.

Ironically, I think it's the "Whimsical Animations" ad banner.

▲functionmouse 4 hours ago | parent | prev | next [-]

> The sounds were recorded in the same sound-treated room using a Zoom H4 recorder, with additional processing to remove noise in Adobe Audition. The only exceptions are synth-on and synth-off, which were created digitally using the Current VST synth. All sounds are stereo.

This is impressive, nice work, thanks for this contribution! A writeup on this process specifically could be intriguing. Just to clarify, I understand you've chosen to license the sounds themselves are under the MIT license?

▲mattjoyce 2 hours ago | parent | prev | next [-]

I hope more are added, would love to hear some toggles switches.

▲moi2388 37 minutes ago | parent | prev | next [-]

No sound whatsoever in iOS

▲Docpixelkb 35 minutes ago | parent | prev | next [-]

it a very cool site

▲riazrizvi an hour ago | parent | prev | next [-]

Very nice!

Commenting as my bookmark.

▲anonymous908213 3 hours ago | parent | prev | next [-]

Very cool, the sound quality is great and the attention to detail is something to commend.

▲antonvs 2 hours ago | parent | prev | next [-]

IPO when?

▲DonHopkins 4 hours ago | parent | prev [-]

Industrial Bakelite Klunky Resonating Rotating Springy Switch Sounds:

https://www.youtube.com/shorts/o_n5W2I2p_M

Switch Courtesy of the Amsterdam Bakelite Collection:

https://www.amsterdambakelitecollection.com/collection.php

Majestic Stone Zen Garden Gorilla Courtesy of Boeddha Beelden:

https://www.youtube.com/shorts/YKHP_ZxneBQ