/ magland / rip-sound-analyzer
Sign in
magland / rip-sound-analyzer
rip-sound-analyzer / README.md
2.8 KBPreviewCodeBlameHistoryRaw

Rip Sound Analyzer#

A small browser app for studying the sound of tearing paper. Record yourself tearing a strip off an 11 inch sheet at different speeds, label each recording with its speed, and compare.

The working idea: a tear is a rapid sum of tiny, similar clicks. If so, tearing faster packs the same clicks into less time, and two things should not depend on speed:

  1. the total sound energy of the tear, and
  2. its frequency makeup.

The app measures both for every recording and shows how they change with tear duration.

Running#

npm install
npm run dev

Open the printed localhost URL in Chrome. Everything runs in the browser; recordings are stored in the browser's IndexedDB. There is no server and no account.

npm run build produces a static site in dist/ that can be hosted anywhere (HTTPS is required for microphone access, except on localhost).

npm test runs sanity checks of the analysis (Parseval, synthetic tears of different durations giving the same energy and spectrum, WAV round trip).

What it does#

Two frequency bands (set under Analysis settings): the energy band, default 15–20 kHz, is used for total energy, finding the tear, the level-over-time plot and the background comparison, because lower frequencies carry much more room and handling noise. The spectrum band, default 100 Hz–20 kHz, is used for median frequency, centroid and comparing spectrum shapes.

The “What this can tell you” tab in the app explains the method and its limits.

Layout#

↑↓ move↵openescclose