d0a8b32Rip Sound Analyzer: record tears, inspect one, compare across speedsJeremy Magland 1# Rip Sound Analyzer
3A 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.
5The 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:
71. the total sound energy of the tear, and
82. its frequency makeup.
10The app measures both for every recording and shows how they change with tear duration.
12## Running
14```bash
15npm install
16npm run dev
17```
19Open 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.
21`npm run build` produces a static site in `dist/` that can be hosted anywhere (HTTPS is required for microphone access, except on localhost).
23`npm test` runs sanity checks of the analysis (Parseval, synthetic tears of different durations giving the same energy and spectrum, WAV round trip).
25## What it does
d8b88deRecord tab organised around five fixed speeds, one tear eachJeremy Magland 27- **Record**: five fixed speeds (very slow ~10 s to very fast <0.5 s), one tear each. Pick a speed, record it, check it, re-record or delete it. Capture is raw: Chrome's echo cancellation, noise suppression and auto gain are off, and samples come straight from the audio graph via an AudioWorklet at the mic's own sample rate (32-bit float, no compression). For each recording:
28 - **Tear range**: found automatically; drag across the level plot to mark it again, drag its edges, or type start/end times. Play the tear (with a moving playhead) or the whole recording.
29 - **Results**: duration, speed, energy, median frequency, centroid, mean power, peak/clipping, level above background.
30 - **Close-up**: waveform and spectrogram, with zoom buttons, to look for individual clicks.
31 - **Frequency makeup**: the tear's energy spectrum against the background.
32- **Compare**: energy vs tear duration, median frequency / centroid / mean power vs duration, spectra of all speeds overlaid (optionally shape only), a table and CSV export.
8bf83cfMeasure energy and find the tear in a 15–20 kHz bandJeremy Magland 34Two 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.
d0a8b32Rip Sound Analyzer: record tears, inspect one, compare across speedsJeremy Magland 36The “What this can tell you” tab in the app explains the method and its limits.
38## Layout
40- `src/analysis/` – FFT, tear detection, Welch spectra, energy and spectral statistics
41- `src/audio/` – microphone capture, WAV encode/decode, synthetic tears
42- `src/storage/` – IndexedDB
43- `src/components/` – UI, including a small canvas plotting component