Clever Quest Lab Tools

Sound Effect Generator

Pick an instrument for a new bell, gong, chime or pluck sound, shape it, check its loudness and save it as WAV or MP3.

Pick an instrument

Hand bell

Length
 
Loudness
 
Peak
 
Click check
 

Shape the sound

Output and export

Opening the link rebuilds exactly the same sound from its settings.

MP3 files are encoded on your device with lamejs 1.2.1 (LGPL-3.0), embedded in this page.

Variants and recent sounds

    Recent sounds

      Sounds you make appear here (the last 12 are kept on this device).

      Runs on your device. Nothing you type or record is uploaded. Keeps working without a connection while the page is open. Works with touch. Saves your current sound settings, the Play after each change choice and your 12 most recent sounds on this device.

      Added

      How to use it

      Each instrument button makes a new random sound of that kind and plays it: a new variation seed and new values for pitch, decay time, brightness, mallet hardness, strike noise, beating, glide, reverb and stereo width, around the instrument's own settings; length and fade-out follow the new decay time. Random does the same with a random instrument. Mutate keeps the instrument and the seed and moves about half of those sliders by up to 8 % of their range, sometimes also the pitch by one semitone. Make 10 variants lists ten new sounds of the current instrument to compare. Generators in the style of sfxr make 8-bit game sounds; this page models struck and plucked instruments and measures the result.

      Settings

      How a sound is made

      Most instruments are a sum of partials, each a sine wave that dies away exponentially:

      x(t) = Σ aₖ · e^(−t · ln 1000 / Tₖ) · sin(2π fₖ t + φₖ)

      aₖ is the amplitude of partial k, fₖ its frequency (a multiple of the note, see the table), Tₖ the time in which it falls by 60 dB (times Decay time) and φₖ a start phase from the seed. Two partials fₖ ± d/2 with unequal levels beat d times a second. A glide uses the phase 2π fₖ (t + g τ (1 − e^(−t/τ))): the frequency starts at fₖ (1 + g) and settles with the time constant τ (0.35 s for the gong, 0.05 s for the kalimba, 0.3 s otherwise). Brightness B (−1 to +1) and hardness H (0 to 1) multiply aₖ by (fₖ / f₀)q with q = 0.6 B + 0.5 (H − 0.5), where f₀ is the struck note; at the default values q is 0. Each strike rises as sin² over its attack time (0.8 to 14 ms), so the slope at the start is zero; the strike noise is a Hann-windowed burst of Gaussian noise through a 2nd-order Butterworth band-pass filter.

      The plucked string uses the Karplus–Strong method with a shaped pluck: a delay line of fs/f samples starts with one period of the string's plucked shape (a triangle that peaks at 15 % of the string) plus a little noise from the seed, low-passed more for a softer pick. Every pass multiplies the signal by g and mixes each sample with the one before it (weights 1 − s and s, s = 0.5 by default, lower for a brighter string), so high harmonics fade first. g makes the fundamental fall by 60 dB in the decay time; linear interpolation gives the fractional part of the delay.

      The reverb is an FFT convolution with an impulse response made for the sound: Gaussian noise in three bands (below 600 Hz, 600 Hz to 3 kHz, above 3 kHz), each falling by 60 dB in its own reverberation time, with a 10 ms pre-delay, a 15 ms build-up and five early reflections, separately for each channel and 1.2 times as long as the longest reverberation time. Then a 2nd-order Butterworth high-pass filter at 20 Hz removes the lowest rumble, the width scales the difference between the channels, and the fade-out multiplies the last m samples by ½ (1 + cos(π i / (m − 1))), so the last sample is exactly zero.

      Instrument models
      InstrumentPartials (multiples of the note), pairs and the rest of the modelDefault note
      Gong1, 2.01, 2.97 (the first two as pairs 0.9 and 1.4 Hz apart); 2.38, 3.43, 4.15, 5.06 and 6.2 ring up over about 80 ms; pitch starts 1.2 % highC4, 261.6 Hz
      Church bellhum 0.5, prime 1, tierce 1.2, quint 1.5, nominal 2, then 3.01, 4, 5.34, 6; hum, prime and nominal as pairs 0.6, 0.8 and 0.5 Hz apartA4, 440 Hz
      Hand bell1, 2.62, 3, 5.2, 7.7; the first three as pairs 0.5, 0.8 and 0.4 Hz apartA5, 880 Hz
      Tubular bell0.62, 1.21, 2, 2.99, 4.17, 5.56, 7.14: bending modes 2 to 8 of a free bar (2.757, 5.404, 8.933 … times mode 1); no partial sits at the note, which is the pitch heard an octave below the strongest oneG4, 392 Hz
      Singing bowl1, 2.71, 5.15, 8.3, 12; the first four as pairs 1.5 to 3.8 Hz apartE4, 329.6 Hz
      Vibraphone1, 3.99, 9.85; the fundamental swings by 22 % 4.2 times a secondC5, 523.3 Hz
      Marimbatwo bars, G4 and D5, each 1, 3.93, 9.2G4, 392 Hz
      Music boxtwo teeth, E5 and B5, each 1, 2, 6.27; the main tones as pairs 0.5 Hz apartE5, 659.3 Hz
      Kalimba1, 2, 5.9 and a box resonance fixed at 285 Hz; pitch starts 0.4 % highA4, 440 Hz
      Glass1, 2.43, 4.55 as pairs 0.8, 1.3 and 2.0 Hz apartG5, 784 Hz
      Electric pianochord C4, G4, E5, each 1, 2, 3 and a short 6.9; left-right tremolo at 3 HzC4, 261.6 Hz
      Plucked stringKarplus–Strong with a shaped pluck: harmonics 1, 2, 3 … whose highs fade first; the fundamental falls by 60 dB in 3.5 sA3, 220 Hz
      Triangletwelve partials from 1 to 10.05, each as a pair 0.35 Hz apartE5, 659.3 Hz
      Wood block1, 1.52, 2.26, 3.51, gone by 60 dB in about 0.3 s; hollow body at 420 Hz; strike noise; a small roomD6, 1174.7 Hz
      Doorbelltone bars 1, 2.757, 5.404; ding-dong down a major third or a fourth, one ding, or E, C, D, GE5, 659.3 Hz
      Alert chime1, 2, 2.757, 5.4, the fundamental as a pair 0.2 Hz apart; one to three notes 0.14 s apartG5, 784 Hz

      Loudness, peak and the click check

      Integrated loudness follows ITU-R BS.1770: each channel goes through the K-weighting filter (a shelf of about +4 dB above 1.7 kHz and a high-pass near 38 Hz), the mean square is taken in 400 ms blocks every 100 ms and summed over the channels, blocks below −70 LUFS are dropped, then blocks more than 10 LU below the mean of the rest, and

      L = −0.691 + 10 · log₁₀(mean power of the remaining blocks)

      The page multiplies the sound by 10^((target − L) / 20) and measures again, up to four times, because the gates let other blocks through once the level changes. The sample peak may not exceed −1 dBFS; when it would, the gain stops there and the note under the readout says how far the loudness stayed below the target. Off scales the sound to a sample peak of −1 dBFS. −23 LUFS is the EBU R 128 target for broadcast programmes; for a sound that plays next to other audio, pick the level that audio uses.

      The click check calls a start clean when the first sample is at most 0.001 (−60 dBFS) and the energy above 6 kHz in the first 3 ms is under 1 % or at most four times its share between 10 and 40 ms. An end is clean when the last sample is at most 0.001. A plucked string starts brighter than it rings, because it damps its high harmonics within a few periods, so for it the 6 kHz rule alone gives Bright pluck start, not Sharp start. The energy below 150 Hz and above 6 kHz comes from the spectrum of the whole sound. Small speaker, for a phone or a small loudspeaker, uses a 2nd-order Butterworth high-pass at 150 Hz and a 4th-order low-pass at 5.5 kHz instead of the 20 Hz filter, and leaves out the marimba and music box partials from 5 kHz and the electric piano partials from 4.5 kHz.

      Example

      Example: doorbell at −16 LUFS loads the doorbell with the ding-dong a major third down (E5, then C5 0.55 s later), seed 2026, the instrument's own slider values, −16 LUFS, 44.1 kHz stereo and Small speaker off. The readout shows 2.60 s, −16.0 LUFS, a sample peak of −7.0 dBFS, a clean start and end, and under 0.01 % of the energy below 150 Hz and above 6 kHz. The peak stays far below the ceiling, so the target is met exactly. Switch on Small speaker and dashed lines in the spectrogram mark the band that is kept.

      Export and sharing

      WAV files are 16-bit PCM, rounded without dither. MP3 files are encoded on your device at a constant bit rate by lamejs 1.2.1, a JavaScript port of the LAME encoder under the LGPL-3.0 licence, embedded unchanged in this page. An MP3 decodes slightly longer than the WAV: the encoder adds a short delay at the start and fills its last frame of 1152 samples with silence. Files are named after the instrument and the seed, for example doorbell-2026.wav. Link to this sound holds every setting after the # of the address; opening it renders the same samples again.

      Limits

      Sources