Playhead waveform lab

A waveform shows a sound's level. Playhead adds what the sound is doing (its intensity, character, rhythm and structure) as curves, marks and a spectrogram on the waveform's own time axis. Compare the views, compose a strip of your own, and try the effects bench, whose tools act on the events and curves the analysis finds rather than on fixed frequencies. Thirteen game sound effects and three music test signals with known structure are built in; drop your own WAV, OGG, MP3 or FLAC files to compare. Nothing leaves this tab.

Take the listening test · 8 minutes: do Playhead's arranged impacts sound punchier, bigger or cleaner? Your answers go into the next paper.

Today

What the Unity inspector draws now: min and max per channel, linear, left on top.

Single curves

Each strip is one curve: a candidate for the line an editor could draw instead of the waveform.

Reading the badge. The number is how closely the curve's ups and downs follow loudness's, from 0 (unrelated) to 1 (moving in lockstep). Technically: the correlation between the two curves' column-to-column changes, over 400 columns with silence left out. moves on its own under 0.3, partly follows loudness 0.3 to 0.6, follows loudness 0.6 and above. A low number only says the curve is different, not that it is useful: random noise would also score near 0. The times next to it are where the curve sits furthest above loudness; click one and listen to judge whether that difference is real.

Short sound effects

What a 0.5 to 5 s sound is made of. Clips under 6 s are analysed every 2.9 ms instead of 11.6 ms, so a 5 ms click keeps its shape.

Rhythm and events

Where things happen. On the built-in signals the beat rows are scored against the true beats: F-measure with ±70 ms tolerance, where 1.00 means every beat found and nothing extra.

Structure

Sections found by comparing every moment with every other moment. A letter repeats when material returns.

Cross-field descriptors

Measures borrowed from machine diagnostics, seismology, ecoacoustics, voice science, optimal transport, information theory and impact acoustics. Most have a fixed value for noise or a steady tone, so the built-in descriptor tour shows each one doing exactly what the maths says.

Combined strips

Height carries the main curve and colour a second one, on a ramp that gets lighter as the value rises. These are the candidates for the actual preview.

Compose your own

Choose what goes on one strip: the waveform or a spectrogram behind, a colour, a line, up to three curves as separate waveform-like shapes or overlaid on the waveform, and the marks. The ordinary waveform and spectrogram are drawn underneath for comparison. The result is a look code that SFX Workbench and kurator understand, so a combination found here can be used there, and sent with your feedback.

Tracks in a folder

Layer up to three files as tracks under a folder, as in a DAW, and drag the clips in time. The folder track on top shows the whole: combined at once from the tracks' Playhead documents without analysing the mix, or from the analysed mix for reference. The other folder views show which track carries what, for building a sound from parts and finding where they get in each other's way.

Effects bench

Processing driven by the analysis. Each result joins the library and is analysed like any other file, so every view above can compare it with the original.

Library

Every loaded file at thumbnail size on one absolute scale. Click a row to inspect it above.

How the curves relate

Correlation of column-to-column changes for the selected file, 400 columns, silent columns left out. Values near 1 mean two curves move together and one of them is redundant on this material.

Curve guide

What each curve should reveal and where it is expected to mislead. Formulas and sources are in the research report.

CurveShould revealExpected to mislead on
C1 LoudnessLevel weighted the way ears weight it, comparable across assets (BS.1770 K-weighting, −60 to 0 LUFS)A sustained pad and a drum fill at the same loudness look identical
C2 ActivityBusyness at equal loudness: fills, grooves, bursts, a groove entering under an unchanged levelDense rolls buried under a riser can read calm; tremolo and granular textures read busy
C3 ArousalA single energy estimate: punchy, dynamic passages above compressed, static onesStays close to loudness; its noisiness term rewards hiss, wind and rain
C4 HarshnessRough, sharp, alarm-like moments raised above smooth sounds of equal loudnessBright masters are raised everywhere; hats and hiss add sharpness
C5 TensionBuild-ups, climaxes and releases, including tension rising on a loudness plateauShort SFX and static loops give it nothing to integrate; abrupt entries count as builds
C6 HarmonyClusters, suspensions, modulations and resolutions at constant dynamicsMeaningless on drums, noise and SFX (gated to zero); the least validated curve
C7 NoveltySection changes, drops, new layers, a single event inside an ambienceRepetition reads calm after a few bars; spiky by nature

Built-in signals

The SFX kit is 13 synthetic game sounds from 0.5 to 4 s, from a UI click to an explosion with debris, plus one file exported with typical faults. Each has known events and tags, and X5 scores against them. The probe suite holds loudness at −20 LUFS while character changes, so C1 stays flat and every other curve has to earn its movement. The cue arc is a 64 s, 120 BPM track with an intro, groove, build, drop, breakdown and outro; its beats, downbeats and sections are known. The tempo ramp accelerates from 96 to 144 BPM over 32 s, which a single-tempo beat tracker cannot follow.

Approximations in this prototype

  • Sone values use the ISO 532-1 core formula on 24 Bark bands with a Terhardt threshold, not the full standard. Sharpness uses DIN 45692 weighting.
  • Roughness is the 30–150 Hz envelope modulation share in 12 bands, calibrated so a 1 kHz, 60 dB tone with 100% AM at 70 Hz reads 1 asper. Fluctuation is calibrated the same way at 4 Hz.
  • Composite weights, the 25 s tension leak and the library reference ranges are starting values tuned on the built-in signals, not published constants.
  • Curves are not delayed to match listener response lag; that lag belongs to the ratings, not the sound.

Rhythm and structure methods

  • The rhythm onset envelope compresses mel energies with log(1 + 300·E/Elocal), so quiet hats count less than loud kicks, and gives low, mid and high frequencies equal weight.
  • Tempo comes from an 8 s autocorrelation tempogram with a one-octave prior around 120 BPM, as in librosa. R2 uses that one tempo with librosa's tightness of 100, so it cannot follow a tempo change.
  • R3 uses 4.5 s Fourier tempogram windows, limited to ±18% of the local tempo track. Downbeats assume 4/4 and pick the bar phase with the most low-frequency onsets and chord changes.
  • Sections use beat-length units when the pulse is clear, otherwise short blocks. Features are median-filtered over half the kernel, and the kernel spans 4 to 16 units each side.
  • Neural beat trackers (madmom, Beat This!) are more accurate on real music but need trained models. They make a good offline reference rather than something to port to C#.

Effects methods

  • Spectral tools use a short-time Fourier transform with Hann windows at 75% overlap (1024 points for clips under 6 s, 2048 otherwise) and real per-bin gains, so phase is kept.
  • De-harsh suppresses peaks more than 2 dB above a sixth-octave smoothed spectrum, weighted to 0.8–10 kHz, plus a top-end tilt when sharpness exceeds 1.75 acum. A gate driven by the harshness factor switches it on; release is 60 ms.
  • Layer remix applies soft Wiener masks built from the NMF layers, interpolated from 40 mel bands to FFT bins. Attack and body uses median-filter separation (Fitzgerald 2010), 17 frames by 17 bins.
  • Loudness matching uses ITU-R BS.1770 integrated loudness with its standard gates. Every output is lowered if it would clip.

Sound-effect methods

  • Events come from level re-attacks (8 dB within 15 ms) plus spectral onsets for new layers. Runs of three or more similar onsets closer than 0.4 s become one iterative event.
  • Tags follow Schaeffer's typology. N means more than half the loudness is pitched (YIN aperiodicity under 0.25, pitch above 60 Hz), Y means pitch or brightness glides, X means everything else. ′ marks events under 0.2 s and ″ marks grains or 8 to 40 Hz pulsing.
  • Attack, effective duration and temporal centre follow the Timbre Toolbox (simplified: 20% to 90% attack). Dynamic profiles follow Peeters and Deruty.
  • Thresholds were tuned on the built-in kit (24 of 25 tags) and then calibrated on real recordings with a held-out half; the kit score is optimistic.