Skip to content
o.o
Go back

Error Buzzer

Listen & Download

⚠️ Error Buzzer Sound

00:00.0 ELAPSED
bit
/
rate
/
ch
75%

Original volume: — adjust the slider to change playback volume

Ad Space

What Is This Sound?

This is a synthesized error buzzer — a short, descending two-note tone designed to communicate that something went wrong. The sound uses a square wave and a falling pitch to create an unmistakable “negative” signal that immediately registers as a warning, rejection, or failure.

Error sounds play a critical role in user interface design. When a form submission fails, a payment is declined, a file cannot be saved, or an action is forbidden, the user needs to know immediately. Visual indicators alone are often missed — a well-designed error sound ensures the feedback is noticed even when the user is not looking at the screen.

How Is an Error Sound Created with Code?

The error buzzer combines two design principles: a square wave for harmonic richness and a descending pitch for negative connotation.

The Complete Signal Chain

import * as Tone from "tone";

// Create a synth with a square wave and short envelope
const synth = new Tone.Synth({
  oscillator: { type: "square" },
  envelope: {
    attack: 0.001,
    decay: 0.15,
    sustain: 0,
    release: 0.05,
  },
});

synth.toDestination();

const now = Tone.now();

// Play a descending minor third: E3 → C3
synth.triggerAttackRelease("E3", "0.12", now);
synth.triggerAttackRelease("C3", "0.12", now + 0.15);

Design Decisions Explained

Square wave: Unlike the pure sine wave used in notification chimes, the square wave contains all odd harmonics (3rd, 5th, 7th, and so on). This gives it a buzzy, aggressive quality that immediately signals “this is not a pleasant sound — pay attention.” The harmonic richness also makes it audible on small, bass-limited speakers that might not reproduce a low sine wave well.

Descending minor third (E3 to C3): The interval from E3 (164.8 Hz) to C3 (130.8 Hz) is a minor third — one of the most emotionally charged intervals in music, associated with sadness, tension, and warning. Playing it in descending order reinforces the negative message: falling pitch universally signals deflation, failure, or retreat.

Short decay (0.15s): The rapid decay ensures the sound communicates urgency without lingering. An error sound should alert the user and get out of the way so they can address the problem.

Ad Space

The Science Behind Error Sounds

Descending Pitch and Negative Affect

Across cultures and even across species, descending pitch sequences are associated with negative outcomes. When animals vocalize distress, the pitch typically falls. When humans express disappointment, their speech intonation drops. This is not learned behavior — it reflects fundamental acoustic properties of the larynx under varying tension states.

In UI sound design, this cross-cultural association is leveraged deliberately. A descending tone says “no” without using words. Users understand the meaning instantly, regardless of their language or cultural background.

Square Wave Harmonics and Urgency

A square wave at frequency f contains harmonics at 3f, 5f, 7f, 9f, and so on, with amplitudes decreasing as 1/n. This means a square wave at E3 (164.8 Hz) also produces energy at 494 Hz, 824 Hz, 1153 Hz, and beyond. The dense harmonic content gives the sound a buzzy, gritty quality that the auditory system flags as potentially important.

From an evolutionary perspective, sounds rich in harmonics are associated with vocal warning calls and mechanical stress (things breaking, scraping, or buzzing). Our nervous system responds to these spectral characteristics with heightened alertness — exactly the response you want from an error sound.

The Minor Third Interval

The minor third has a frequency ratio of approximately 6:5. This is less consonant than the major third (5:4) used in the notification chime. The slight dissonance creates a feeling of incompleteness and tension. In Western music, minor keys are associated with sadness, gravity, and caution. The error buzzer leverages this association to reinforce its message without being genuinely unpleasant.

Low Register Placement

The E3-C3 range (130-165 Hz) sits in the lower midrange. Low-pitched sounds are perceived as more serious and authoritative than high-pitched ones. This register choice gives the error sound gravitas — it feels like a warning from the system, not a playful beep.

Common Uses

Technical Details

PropertyValue
FormatWAV (PCM 16-bit / 24-bit / 32-bit float)
Sample Rate44,100 Hz / 48,000 Hz
ChannelsMono / Stereo
Duration~300ms total
WaveformSquare
NotesE3 (164.8 Hz), C3 (130.8 Hz)
IntervalDescending minor third
EnvelopeA:0.001 D:0.15 S:0 R:0.05
GenerationTone.js / Web Audio API
LicenseFree for personal and commercial use

Ad Space

Frequently Asked Questions

How is this different from the notification sound?

The notification sound uses an ascending major triad with a sine wave — it signals something positive. The error sound uses a descending minor third with a square wave — it signals something negative. They are designed as complementary opposites in a UI sound system.

Can I make the error sound less harsh?

Yes. Replace the square wave with a triangle wave for a softer buzz, or increase the attack time to 0.01 seconds for a less abrupt onset. You can also raise the pitch (try E4 to C4) for a lighter tone. However, be careful not to make an error sound too pleasant — it needs to clearly communicate that something requires attention.

Should I use this for every type of error?

Consider severity levels. This buzzer works well for clear errors (failed submissions, invalid actions). For minor warnings (e.g., “are you sure?”), a single short tone may be more appropriate. Reserve the full descending buzzer for situations where the user needs to take corrective action.

Is this sound accessible?

Audio feedback should always be paired with visual indicators for users who are deaf or hard of hearing. This sound is designed as a supplement to visual error states (red borders, error messages, icons), not a replacement. Follow WCAG guidelines by ensuring error states are communicated through multiple channels.


Related Sounds

Share this post on:

Next Post
Notification Chime