Live data from Hacker News

Ask HN: Does anyone use sound effects in their dev environment?

news.ycombinator.com

121–130 of 336 posts

Re: Ask HN: Does anyone use sound effects in their dev environment?

#121

It isn't exactly what you have in mind, but I use `play` as well as a terminal theme color change to tell me when I'm using one or another language's keyboard layout. If you put & in front of play, you can make chords. Here's an example: # Define notes for major seventh chord starting on A 440 A=440 C_SHARP=554.37 E=659.25 G_SHARP=830.61 if [[ "$layout" == "Finnish" ]]; then # Play a major seventh chord ascending kit…

Forking each sox command to the background causes samples to play non-deterministically and step over each other. Here's a better way:

    # Define notes for major seventh chord starting on A 440
    A=440
    C_SHARP=554.37
    E=659.25
    G_SHARP=830.61

    case "$layout" in
    Finnish)
      kitty +kitten themes --reload-in=all Apprentice &
      play "|sox -np synth 0.2 sine $A" \
           "|sox -np synth 0.2 sine $C_SHARP" \
           "|sox -np synth 0.2 sine $E" \
           "|sox -np synth 0.2 sine $G_SHARP" \
           vol -30dB 2>&- &
      ;;
    'English (US)')
      kitty +kitten themes --reload-in=all Default &
      play "|sox -np synth 0.2 sine $G_SHARP" \
           "|sox -np synth 0.2 sine $E" \
           "|sox -np synth 0.2 sine $C_SHARP" \
           "|sox -np synth 0.2 sine $A" \
           vol -30dB 2>&- &
      ;;
    *) echo >&2 'Invalid $layout - must be "Finnish" or "English (US)"'; exit 1
    esac

Re: Ask HN: Does anyone use sound effects in their dev environment?

#123

Earlier quoted context omitted.

Yes, this. Imagine an elevator, gas pump, vending machine, or laundromat emitting sound effects constantly. Quite the dystopian hellscape.

> gas pump Most of them play advertisements while you fuel up. I hate it. The only thing that I like about New Jersey forbidding me from touching a gas pump is that I'm not subjected to ads for diarrhea medication or low-APR loans every time I fuel up.

Great ready for the newest innovation, putting a small cellphone sized screen on the nozzle that you put into your vehicle. https://www.dekra.nl/en/smarter-nozzle/

Re: Ask HN: Does anyone use sound effects in their dev environment?

#124
Matlab plays a sound on error by default (on some systems through the internal speaker, bypassing volume controls) and I always found it irritating.

The only use case I see for them is something running in the background that takes a while and might get interrupted.

Re: Ask HN: Does anyone use sound effects in their dev environment?

#125

Earlier quoted context omitted.

Oh man, I'm jealous that you get cubicles. When I moved from Big Corp to startup land, I did not realize how much I would miss having a cubicle.

Corps don’t do cubicles anymore either, since the pandemic it’s all open spaces with hot desks

I bashed the cubicle 15 years ago - nowadays would kill to work with 2 more folks around, even if only a couple days a week.

(Coffee shops don't really work for me...)

Re: Ask HN: Does anyone use sound effects in their dev environment?

#126
post #119

Same, I was surprised to find out how hard it was to play a sound everytime the word ERROR appeared on my terminal. I even wanted to run a sound on the "positive case" ie a loop that is processing a few hundred items, could easily benefict from a subtle sound so you could feel when some request got hold... Like virtually all hardware does ie your vacuum cleaner has something stuck and is not operating at 100% etc. (I…

Use the ascii bell character "\a" and turn off the "visual bell" or whatever options in the terminal (I hate those things) so you can actually hear it beep and find joy.

Re: Ask HN: Does anyone use sound effects in their dev environment?

#127
I don't use anything, but each time my eyes hurt, I wonder if I should: with some sense of music and tones, I often wonder if I could develop enough audio feedback to be able to do tasks like opening apps, writing, compiling, and getting feedback. I also often wonder if that is something that the visually impaired already use.

Re: Ask HN: Does anyone use sound effects in their dev environment?

#128
Sometimes if I'm running some long running task I'll do `; say finished` afterwards so I get pinged when it wrapped up.

At once point I had a slightly more sophisticated command that would check the output and say completed or failed but it wasn't much more useful.

Post reply on HN